CLEO Help spec info?

CLEO related
Status
Not open for further replies.

mistery

Well-known member
Joined
Apr 23, 2014
Messages
262
Reaction score
5
hey , can i make a cleo that tells me if someone(and maybe, who) is spectating me? i heard something like ..you need to know the server's spectator's x y z?
anti spec already exists(saw a piece of code somewhere on forum) and i thought maybe this is possible too
 

RyanCollier

Active member
Joined
Jul 30, 2016
Messages
109
Reaction score
1
mistery said:
hey , can i make a cleo that tells me if someone(and maybe, who) is spectating me? i heard something like ..you need to know the server's spectator's x y z?
anti spec already exists(saw a piece of code somewhere on forum) and i thought maybe this is possible too
I'm working on this project, i'm vietnamese i maybe if u want u could join my team and we can do it together, it's about the coordiantes and x y z of the spectator in your server. And its name isn't anti spec ; anti spec is stop admin spectating at u, not warn u if they're watching u


Parazitas said:
It is possible. Mostly observer's body is after you
I think the scripter ( PAWNO ) could change the location of the body of that spectator... And then set the camera back on your head so they could watch u...
 

mistery

Well-known member
Joined
Apr 23, 2014
Messages
262
Reaction score
5
RyanCollier said:
mistery said:
hey , can i make a cleo that tells me if someone(and maybe, who) is spectating me? i heard something like ..you need to know the server's spectator's x y z?
anti spec already exists(saw a piece of code somewhere on forum) and i thought maybe this is possible too
I'm working on this project, i'm vietnamese i maybe if u want u could join my team and we can do it together, it's about the coordiantes and x y z of the spectator in your server. And its name isn't anti spec ; anti spec is stop admin spectating at u, not warn u if they're watching u


Parazitas said:
It is possible. Mostly observer's body is after you
I think the scripter ( PAWNO ) could change the location of the body of that spectator... And then set the camera back on your head so they could watch u...


i know it's not anti spec, i said anti spec already exists
but how shall i get the coords of spectator? by trial and error? 
i'd try asking the server's owner for x y z, but i doubt he's so stupid to give them to me ))
 

RyanCollier

Active member
Joined
Jul 30, 2016
Messages
109
Reaction score
1
mistery said:
RyanCollier said:
mistery said:
hey , can i make a cleo that tells me if someone(and maybe, who) is spectating me? i heard something like ..you need to know the server's spectator's x y z?
anti spec already exists(saw a piece of code somewhere on forum) and i thought maybe this is possible too
I'm working on this project, i'm vietnamese i maybe if u want u could join my team and we can do it together, it's about the coordiantes and x y z of the spectator in your server. And its name isn't anti spec ; anti spec is stop admin spectating at u, not warn u if they're watching u


Parazitas said:
It is possible. Mostly observer's body is after you
I think the scripter ( PAWNO ) could change the location of the body of that spectator... And then set the camera back on your head so they could watch u...


i know it's not anti spec, i said anti spec already exists
but how shall i get the coords of spectator? by trial and error? 
i'd try asking the server's owner for x y z, but i doubt he's so stupid to give them to me ))


Admin know it ! Don't ask the server owner !
Just make a cleo that save your coord and send to some admins - who u have known well for a long time, like your brother ...
And Tell him, spec u and active the cleo... then send u the coord !
 

mistery

Well-known member
Joined
Apr 23, 2014
Messages
262
Reaction score
5
RyanCollier said:
mistery said:
RyanCollier said:
mistery said:
hey , can i make a cleo that tells me if someone(and maybe, who) is spectating me? i heard something like ..you need to know the server's spectator's x y z?
anti spec already exists(saw a piece of code somewhere on forum) and i thought maybe this is possible too
I'm working on this project, i'm vietnamese i maybe if u want u could join my team and we can do it together, it's about the coordiantes and x y z of the spectator in your server. And its name isn't anti spec ; anti spec is stop admin spectating at u, not warn u if they're watching u


Parazitas said:
It is possible. Mostly observer's body is after you
I think the scripter ( PAWNO ) could change the location of the body of that spectator... And then set the camera back on your head so they could watch u...


i know it's not anti spec, i said anti spec already exists
but how shall i get the coords of spectator? by trial and error? 
i'd try asking the server's owner for x y z, but i doubt he's so stupid to give them to me ))


Admin know it ! Don't ask the server owner !
Just make a cleo that save your coord and send to some admins - who u have known well for a long time, like your brother ...
And Tell him, spec u and active the cleo... then send u the coord !


is that simple? lool ok i'll try
 

mistery

Well-known member
Joined
Apr 23, 2014
Messages
262
Reaction score
5
ok so i got the coords
first i got my coords , me staying still in a random place near lvps

my coords:
x: 1958.6022
y: 2162.1301
z: 10.8203
angle: 271.3515

then i got the coords from spectator , me staying still in the same place

spec coords:
x: 1955.1075
y: 2162.0479
z: 31.5952
angle: 115.0000

so i see the difference ( my coords - spec coords):
x: 3.4947
y: 0.0822
z: -20.7749
angle: 156.3515

now , how to check if there is any player at those coords?
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
^ i know the same, server doesn't send your those updates, it doesn't stream the player for you, so there's no updates from that player.

If you somehow can do get those coords through some server command, game mode glitch, use
Code:
00EC:   actor $PLAYER_ACTOR sphere 0 near_point 1812.369 -1929.922 radius 80.0 80.0
 

mistery

Well-known member
Joined
Apr 23, 2014
Messages
262
Reaction score
5
@springfield
Code:
00EC:   actor $PLAYER_ACTOR sphere 0 near_point 1812.369 -1929.922 radius 80.0 80.0
how to use that command?
for now , i just want it to work only in the place from where i got the coords, just for my server . just for test.
and i thought maybe  this will work?
Code:
{$CLEO}

0000:
1@ = 0.0
2@ = 0.0
3@ = 0.0
4@ = 0.0
5@ = 0.0
6@ = 0.0
7@ = 0.0
wait 0
if and
056D: actor $PLAYER_ACTOR defined
key_down 45 //insert
then
wait 0   
0A8D: 29@ = read_memory 0xB74490 size 4 virtual_protect 0
000A: 29@ += 0x4
0A8D: 29@ = read_memory 29@ size 4 virtual_protect 0
for 30@ = 0 to 35584 step 0x100
    0A8D: 31@ = read_memory 29@ size 1 virtual_protect 0
    000A: 29@ += 0x1
    if and
        0029:  31@ >= 0x00 
        001B:  0x80 > 31@
    then 
        005A: 31@ += 30@
if 
056D: actor 31@ defined
then
actor.StorePos($PLAYER_ACTOR, 1@ , 2@ ,3@)
actor.StorePos(31@, 4@ , 5@ ,6@)
0509: 7@ = distance_between_XY 1@ 2@ and_XY 4@ 5@
0009: 4@ += 3.4947
0009: 5@ += 0.0822
0009: 6@ += -20.7749
if and 
7@ < 3.5 //7@ == 3.495666593083499
0045: 1@ == 4@
0045: 2@ == 5@
0045: 3@ == 6@
then
print "{FFFF00}Someone is spectating you" -1
    else
print "{FFFF00}Nobody is spectating you" -1
end
end
end
end
END
 

RyanCollier

Active member
Joined
Jul 30, 2016
Messages
109
Reaction score
1
mistery said:
@springfield
Code:
00EC:   actor $PLAYER_ACTOR sphere 0 near_point 1812.369 -1929.922 radius 80.0 80.0
how to use that command?
for now , i just want it to work only in the place from where i got the coords, just for my server . just for test.
and i thought maybe  this will work?
Code:
{$CLEO}

0000:
1@ = 0.0
2@ = 0.0
3@ = 0.0
4@ = 0.0
5@ = 0.0
6@ = 0.0
7@ = 0.0
wait 0
if and
056D: actor $PLAYER_ACTOR defined
key_down 45 //insert
then
wait 0   
0A8D: 29@ = read_memory 0xB74490 size 4 virtual_protect 0
000A: 29@ += 0x4
0A8D: 29@ = read_memory 29@ size 4 virtual_protect 0
for 30@ = 0 to 35584 step 0x100
    0A8D: 31@ = read_memory 29@ size 1 virtual_protect 0
    000A: 29@ += 0x1
    if and
        0029:  31@ >= 0x00 
        001B:  0x80 > 31@
    then 
        005A: 31@ += 30@
if 
056D: actor 31@ defined
then
actor.StorePos($PLAYER_ACTOR, 1@ , 2@ ,3@)
actor.StorePos(31@, 4@ , 5@ ,6@)
0509: 7@ = distance_between_XY 1@ 2@ and_XY 4@ 5@
0009: 4@ += 3.4947
0009: 5@ += 0.0822
0009: 6@ += -20.7749
if and 
7@ < 3.5 //7@ == 3.495666593083499
0045: 1@ == 4@
0045: 2@ == 5@
0045: 3@ == 6@
then
print "{FFFF00}Someone is spectating you" -1
    else
print "{FFFF00}Nobody is spectating you" -1
end
end
end
end
END
[font=Monaco, Consolas, Courier, monospace]00EC:   actor $PLAYER_ACTOR sphere 0 near_point 1812.369 -1929.922 radius 80.0 80.0[/font]
[font=Monaco, Consolas, Courier, monospace]Change the "1812.369 -1929.922" to your X Y or X Z of the coordinates of the spectators on your server ( one of X, Y, Z must be delete if i'm right, i did it a long time ago but i forgot, it just need the X Y or X Z ) 
And the $Player_Actor should be a valueable data like @1 or something which u must get before print the message so the $PLAYER_ACTOR should be the admin, spectator or something ( not their name ! It's type of their ped or something... )
Maybe i'm wrong :)
[/font]
 

mistery

Well-known member
Joined
Apr 23, 2014
Messages
262
Reaction score
5
i tested
insta crash lol

i changed it a little bit but..shit it's working backwards
admin can tell when player is in range but player can't tell when admin is in range ayy lmao
 

RyanCollier

Active member
Joined
Jul 30, 2016
Messages
109
Reaction score
1
mistery said:
i tested
insta crash lol

i changed it a little bit but..shit it's working backwards
admin can tell when player is in range but player can't tell when admin is in range ayy lmao
Try again :)
Work hard and u will be successful :)
Sadly, i'm trying to
 

mistery

Well-known member
Joined
Apr 23, 2014
Messages
262
Reaction score
5
eh i'll see , for now it's not really working
only to check for ordinary streamed players, not spectating
i'll leave this here maybe someone wanna try

Code:
{$CLEO}

0000:

:check
1@ = 0.0
2@ = 0.0
3@ = 0.0
4@ = 0.0
5@ = 0.0
6@ = 0.0
7@ = 0.0
wait 0
if and
056D:   actor $PLAYER_ACTOR defined
key_down 49 //1
then
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to $asd closest_ped_to 0@
if and 
056D:   actor 0@ defined
00EC:   actor 0@ sphere 0 near_point 1955.1075 2162.0479 radius 4.0 4.0
then
actor.StorePos($PLAYER_ACTOR, 1@ , 2@ ,3@)
actor.StorePos(0@, 4@ , 5@ ,6@)
050A: 7@ = distance_between_XYZ 1@ 2@ 3@ and_XYZ 4@ 5@ 6@
if 
7@ < 4.0
then 
0AF8: samp add_message_to_chat "{FF0000}Closest player: %d" 0@
0AF8: samp add_message_to_chat "{FF0000}Distance to player: %d" 7@
wait 100
end
end
end
jump @check
 

PlasticBottle

Active member
Joined
Jul 13, 2016
Messages
162
Reaction score
1
There's something you didn't think of

That difference of coords, I'm not sure but I think it varies if the spectator moves the camera. I know this because on a server I play, if you /locate a player who's spectating you, you see that he is at about "5 meters to your N/S/E/W", when he moves the camera then you /locate him again, the "5 meters" changes a bit, it usually goes from 3 to max 15
 

mistery

Well-known member
Joined
Apr 23, 2014
Messages
262
Reaction score
5
yes this is true
but i only tried when both player and spectator camera are not moved after typing /spec, so it doesn't varies(in this case only)
if i can get this particular case to work,then i'll think about camera movement too
 

afattahniz

Active member
Joined
Jun 8, 2015
Messages
74
Reaction score
0
anyway i also need to find if admin spectating somebody? so i have an idea but i don't know how to code, whenever admins spec somebody there map icon is not shown in the radar so i would like to know if there is any opcodes to check whether player map icon in the world or not?? thats how i can know admin is in spec mode or in another virtual world?
 
Status
Not open for further replies.
Top