CLEO Help Closed

CLEO related
Status
Not open for further replies.

_C1ph3r_

Active member
Joined
Feb 5, 2017
Messages
91
Reaction score
3
Closed, because one of my friend want it to be "Secret"
 

mistery

Well-known member
Joined
Apr 23, 2014
Messages
262
Reaction score
5
RE: Help with this code

nice thanks for trying with that script
i couldn't make it work either
i belive there are private versions of this, but they won't be released anytime soon...maybe never
 

RyanCollier

Active member
Joined
Jul 30, 2016
Messages
109
Reaction score
1
RE: Help with this code

mistery said:
nice thanks for trying with that script
i couldn't make it work either
i belive there are private versions of this, but they won't be released anytime soon...maybe never

Follow the step which he already told us in the topic, it might work i'm gonna post my code too
 

_C1ph3r_

Active member
Joined
Feb 5, 2017
Messages
91
Reaction score
3
RE: Help with this code

mistery said:
nice thanks for trying with that script
i couldn't make it work either
i belive there are private versions of this, but they won't be released anytime soon...maybe never
Any ideas ? Have u tried my code ?


RyanCollier said:
WillSay said:
Máy thanh niên VN clone vào làm trò màu
Topic nào của ng nước ngoài hay của t hay của bất cứ ai cũng có vết răng mày vậy chó ?
WTF language is that ? I need help ? Please post your code so everybody could talk about this stupid ideas to making a stupid cleo ?

P.S: And also stop use that language !
 

mistery

Well-known member
Joined
Apr 23, 2014
Messages
262
Reaction score
5
RE: Help with this code

yeah but the big problem is that the spectator can(and will)change his camera position while spectating someone,thus this will never work,look i explain:

if you are somewhere random on the map and there are many players around you(like in russian 1000/1000 servers) and someone is spectating you,the script will take the closest ped from those many peds that are around you,you don't know if the script takes the spectator as the closest ped.Chances are it will not.
also,let's say that by miracle the script choses the spectator as the closest ped.Then what? the spectator will move his mouse and will move the camera,and next time you will try the script it won't take the spectator again..

if you wanna test this alone with a friend that spectates you,then it might detect it as spectator,but if you wanna use it on big servers...no way
 

Edvincik

Well-known member
Joined
Mar 15, 2016
Messages
399
Reaction score
26
RE: Help with this code

_C1ph3r_ said:
Hi all, i was trying to make something called "Spec Warning"... and it here but seems like it doesn't work
I've done many research on this project and i found that to detect the admin while they're watching u must have this steps

Step 1: Fake location, coordinates
Step 2: Loop Step 1
Step 3: Check !
Step 4: Print or add message on the screen so the user could realize that they're being watched by admin

Download: In Attachment ( For someone who want to try it )

And i made this from a mess with Snippets, old code, scratch...
Here is the code, could someone give me ideas or check if it work...
Code:
{$CLEO .cs}
0B34: "warningspec" @AntiSpec
0BE2: raknet setup_outcoming_packet_hook @packet_manage
thread "_C1ph3r_"
0000: NOP

9@ = 0
10@ = 0

:AntiSpecLoop
wait 0
if 9@ == 1
then
if or
key_down 2
key_down 1
then
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
call @SendFakeSpecSync 3 0@ 1@ 2@
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to $asd closest_ped_to 18@
if and 
056D:   actor 18@ defined 
00EC:   actor 18@ sphere 0 near_point 0@ 1@ radius 4.0 4.0
then
actor.StorePos(18@, 4@ , 5@ ,6@)
050A: 7@ = distance_between_XYZ 0@ 1@ 2@ and_XYZ 4@ 5@ 6@
if 
7@ < 4.0
then 
0AF8: samp add_message_to_chat "{FF0000}WARNING!!!: Player %d is watching you" 18@
0AF8: samp add_message_to_chat "{FF0000}Last Distance: %d" 7@
wait 100
end
end
end
end
jump @AntiSpecLoop

:AntiSpec
if 9@ == 0
then 
wait 1000
printf "~b~SpecWarning by _C1ph3r_ ~r~ON~b~!" time 1500
wait 1750
9@ = 1
else
wait 1000
printf "~b~SpecWarning by _C1ph3r_ ~r~OFF~b~!" time 1500
wait 1750
9@ = 0
end                   
SAMP.CmdRet

:SendFakeSpecSync
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
alloc 3@ 18
0C0D: struct 3@ offset 0 size 2 = 0 // sLeftRightKeys;
0C0D: struct 3@ offset 2 size 2 = 0 // sUpDownKeys;
0C0D: struct 3@ offset 4 size 2 = 0 // sKeys;
0C0D: struct 3@ offset 6 size 4 = 0@ //fPosition[X];
0C0D: struct 3@ offset 10 size 4 = 1@ // fPosition[Y];
0C0D: struct 3@ offset 14 size 4 = 2@ //fPosition[Z];
0B3D: raknet 4@ = new_bit_stream 
0B40: raknet bit_stream 4@ write 212 type 0 size 1
0B40: raknet bit_stream 4@ write 3@ type 5 size 18 
0B8B: raknet send bit_stream 4@
0B3E: raknet delete_bit_stream 4@
free 3@
ret 0

:packet_manage 
0BE5: raknet 1@ = get_hook_param 1
if and
9@ == 1 
1@ == 200
then
if 
10@ == 0
then
0BE0: raknet hook_ret false 
else
0BE0: raknet hook_ret true
end
else
0BE0: raknet hook_ret true
end
if and
9@ == 1 
1@ == 207
then
if 
10@ == 0
then
0BE0: raknet hook_ret false 
else
0BE0: raknet hook_ret true
end
else
0BE0: raknet hook_ret true
end

 Thanks for reading !
It should work then u shooting or aiming am i right?
Talking about this code
 

_C1ph3r_

Active member
Joined
Feb 5, 2017
Messages
91
Reaction score
3
RE: Help with this code

mistery said:
yeah but the big problem is that the spectator can(and will)change his camera position while spectating someone,thus this will never work,look i explain:

if you are somewhere random on the map and there are many players around you(like in russian 1000/1000 servers) and someone is spectating you,the script will take the closest ped from those many peds that are around you,you don't know if the script takes the spectator as the closest ped.Chances are it will not.
also,let's say that by miracle the script choses the spectator as the closest ped.Then what? the spectator will move his mouse and will move the camera,and next time you will try the script it won't take the spectator again..

if you wanna test this alone with a friend that spectates you,then it might detect it as spectator,but if you wanna use it on big servers...no way
No you wrong !
When the admin start to write /spec
the camera position will set at my ped and it's default so it will have the closest distance about 3-4 metres from my actor ped and the script is fast enough to detect it !
For the second problem ( 1000/1000 players ) You could increase it by adding a list of admins so the script just check the name of Ped in your list ( .ini ) And it could be able to work !
Big server is okay ! i'm working with my friend in NGG Gaming


Edvincik said:
_C1ph3r_ said:
Hi all, i was trying to make something called "Spec Warning"... and it here but seems like it doesn't work
I've done many research on this project and i found that to detect the admin while they're watching u must have this steps

Step 1: Fake location, coordinates
Step 2: Loop Step 1
Step 3: Check !
Step 4: Print or add message on the screen so the user could realize that they're being watched by admin

Download: In Attachment ( For someone who want to try it )

And i made this from a mess with Snippets, old code, scratch...
Here is the code, could someone give me ideas or check if it work...
Code:
{$CLEO .cs}
0B34: "warningspec" @AntiSpec
0BE2: raknet setup_outcoming_packet_hook @packet_manage
thread "_C1ph3r_"
0000: NOP

9@ = 0
10@ = 0

:AntiSpecLoop
wait 0
if 9@ == 1
then
if or
key_down 2
key_down 1
then
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
call @SendFakeSpecSync 3 0@ 1@ 2@
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to $asd closest_ped_to 18@
if and 
056D:   actor 18@ defined 
00EC:   actor 18@ sphere 0 near_point 0@ 1@ radius 4.0 4.0
then
actor.StorePos(18@, 4@ , 5@ ,6@)
050A: 7@ = distance_between_XYZ 0@ 1@ 2@ and_XYZ 4@ 5@ 6@
if 
7@ < 4.0
then 
0AF8: samp add_message_to_chat "{FF0000}WARNING!!!: Player %d is watching you" 18@
0AF8: samp add_message_to_chat "{FF0000}Last Distance: %d" 7@
wait 100
end
end
end
end
jump @AntiSpecLoop

:AntiSpec
if 9@ == 0
then 
wait 1000
printf "~b~SpecWarning by _C1ph3r_ ~r~ON~b~!" time 1500
wait 1750
9@ = 1
else
wait 1000
printf "~b~SpecWarning by _C1ph3r_ ~r~OFF~b~!" time 1500
wait 1750
9@ = 0
end                   
SAMP.CmdRet

:SendFakeSpecSync
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
alloc 3@ 18
0C0D: struct 3@ offset 0 size 2 = 0 // sLeftRightKeys;
0C0D: struct 3@ offset 2 size 2 = 0 // sUpDownKeys;
0C0D: struct 3@ offset 4 size 2 = 0 // sKeys;
0C0D: struct 3@ offset 6 size 4 = 0@ //fPosition[X];
0C0D: struct 3@ offset 10 size 4 = 1@ // fPosition[Y];
0C0D: struct 3@ offset 14 size 4 = 2@ //fPosition[Z];
0B3D: raknet 4@ = new_bit_stream 
0B40: raknet bit_stream 4@ write 212 type 0 size 1
0B40: raknet bit_stream 4@ write 3@ type 5 size 18 
0B8B: raknet send bit_stream 4@
0B3E: raknet delete_bit_stream 4@
free 3@
ret 0

:packet_manage 
0BE5: raknet 1@ = get_hook_param 1
if and
9@ == 1 
1@ == 200
then
if 
10@ == 0
then
0BE0: raknet hook_ret false 
else
0BE0: raknet hook_ret true
end
else
0BE0: raknet hook_ret true
end
if and
9@ == 1 
1@ == 207
then
if 
10@ == 0
then
0BE0: raknet hook_ret false 
else
0BE0: raknet hook_ret true
end
else
0BE0: raknet hook_ret true
end

 Thanks for reading !
It should work then u shooting or aiming am i right?
Talking about this code
No, As u can see in my code:
when u type /warningspec
Code:
0B34: "warningspec" @AntiSpec

the script start to change 9@ 10@ to 1 so the script is actived and start to fake the coordinate, location ( Pos ) and loop the check if anyone is near you
 

Edvincik

Well-known member
Joined
Mar 15, 2016
Messages
399
Reaction score
26
RE: Help with this code

_C1ph3r_ said:
mistery said:
yeah but the big problem is that the spectator can(and will)change his camera position while spectating someone,thus this will never work,look i explain:

if you are somewhere random on the map and there are many players around you(like in russian 1000/1000 servers) and someone is spectating you,the script will take the closest ped from those many peds that are around you,you don't know if the script takes the spectator as the closest ped.Chances are it will not.
also,let's say that by miracle the script choses the spectator as the closest ped.Then what? the spectator will move his mouse and will move the camera,and next time you will try the script it won't take the spectator again..

if you wanna test this alone with a friend that spectates you,then it might detect it as spectator,but if you wanna use it on big servers...no way
No you wrong !
When the admin start to write /spec
the camera position will set at my ped and it's default so it will have the closest distance about 3-4 metres from my actor ped and the script is fast enough to detect it !
For the second problem ( 1000/1000 players ) You could increase it by adding a list of admins so the script just check the name of Ped in your list ( .ini ) And it could be able to work !
Big server is okay ! i'm working with my friend in NGG Gaming


Edvincik said:
_C1ph3r_ said:
Hi all, i was trying to make something called "Spec Warning"... and it here but seems like it doesn't work
I've done many research on this project and i found that to detect the admin while they're watching u must have this steps

Step 1: Fake location, coordinates
Step 2: Loop Step 1
Step 3: Check !
Step 4: Print or add message on the screen so the user could realize that they're being watched by admin

Download: In Attachment ( For someone who want to try it )

And i made this from a mess with Snippets, old code, scratch...
Here is the code, could someone give me ideas or check if it work...
Code:
{$CLEO .cs}
0B34: "warningspec" @AntiSpec
0BE2: raknet setup_outcoming_packet_hook @packet_manage
thread "_C1ph3r_"
0000: NOP

9@ = 0
10@ = 0

:AntiSpecLoop
wait 0
if 9@ == 1
then
if or
key_down 2
key_down 1
then
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
call @SendFakeSpecSync 3 0@ 1@ 2@
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to $asd closest_ped_to 18@
if and 
056D:   actor 18@ defined 
00EC:   actor 18@ sphere 0 near_point 0@ 1@ radius 4.0 4.0
then
actor.StorePos(18@, 4@ , 5@ ,6@)
050A: 7@ = distance_between_XYZ 0@ 1@ 2@ and_XYZ 4@ 5@ 6@
if 
7@ < 4.0
then 
0AF8: samp add_message_to_chat "{FF0000}WARNING!!!: Player %d is watching you" 18@
0AF8: samp add_message_to_chat "{FF0000}Last Distance: %d" 7@
wait 100
end
end
end
end
jump @AntiSpecLoop

:AntiSpec
if 9@ == 0
then 
wait 1000
printf "~b~SpecWarning by _C1ph3r_ ~r~ON~b~!" time 1500
wait 1750
9@ = 1
else
wait 1000
printf "~b~SpecWarning by _C1ph3r_ ~r~OFF~b~!" time 1500
wait 1750
9@ = 0
end                   
SAMP.CmdRet

:SendFakeSpecSync
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
alloc 3@ 18
0C0D: struct 3@ offset 0 size 2 = 0 // sLeftRightKeys;
0C0D: struct 3@ offset 2 size 2 = 0 // sUpDownKeys;
0C0D: struct 3@ offset 4 size 2 = 0 // sKeys;
0C0D: struct 3@ offset 6 size 4 = 0@ //fPosition[X];
0C0D: struct 3@ offset 10 size 4 = 1@ // fPosition[Y];
0C0D: struct 3@ offset 14 size 4 = 2@ //fPosition[Z];
0B3D: raknet 4@ = new_bit_stream 
0B40: raknet bit_stream 4@ write 212 type 0 size 1
0B40: raknet bit_stream 4@ write 3@ type 5 size 18 
0B8B: raknet send bit_stream 4@
0B3E: raknet delete_bit_stream 4@
free 3@
ret 0

:packet_manage 
0BE5: raknet 1@ = get_hook_param 1
if and
9@ == 1 
1@ == 200
then
if 
10@ == 0
then
0BE0: raknet hook_ret false 
else
0BE0: raknet hook_ret true
end
else
0BE0: raknet hook_ret true
end
if and
9@ == 1 
1@ == 207
then
if 
10@ == 0
then
0BE0: raknet hook_ret false 
else
0BE0: raknet hook_ret true
end
else
0BE0: raknet hook_ret true
end

 Thanks for reading !
It should work then u shooting or aiming am i right?
Talking about this code
No, As u can see in my code:
when u type /warningspec
Code:
0B34: "warningspec" @AntiSpec

the script start to change 9@ 10@ to 1 so the script is actived and start to fake the coordinate, location ( Pos ) and loop the check if anyone is near you



Okay,i will test your script later


_C1ph3r_ said:
mistery said:
yeah but the big problem is that the spectator can(and will)change his camera position while spectating someone,thus this will never work,look i explain:

if you are somewhere random on the map and there are many players around you(like in russian 1000/1000 servers) and someone is spectating you,the script will take the closest ped from those many peds that are around you,you don't know if the script takes the spectator as the closest ped.Chances are it will not.
also,let's say that by miracle the script choses the spectator as the closest ped.Then what? the spectator will move his mouse and will move the camera,and next time you will try the script it won't take the spectator again..

if you wanna test this alone with a friend that spectates you,then it might detect it as spectator,but if you wanna use it on big servers...no way
No you wrong !
When the admin start to write /spec
the camera position will set at my ped and it's default so it will have the closest distance about 3-4 metres from my actor ped and the script is fast enough to detect it !
For the second problem ( 1000/1000 players ) You could increase it by adding a list of admins so the script just check the name of Ped in your list ( .ini ) And it could be able to work !
Big server is okay ! i'm working with my friend in NGG Gaming


Edvincik said:
_C1ph3r_ said:
Hi all, i was trying to make something called "Spec Warning"... and it here but seems like it doesn't work
I've done many research on this project and i found that to detect the admin while they're watching u must have this steps

Step 1: Fake location, coordinates
Step 2: Loop Step 1
Step 3: Check !
Step 4: Print or add message on the screen so the user could realize that they're being watched by admin

Download: In Attachment ( For someone who want to try it )

And i made this from a mess with Snippets, old code, scratch...
Here is the code, could someone give me ideas or check if it work...
Code:
{$CLEO .cs}
0B34: "warningspec" @AntiSpec
0BE2: raknet setup_outcoming_packet_hook @packet_manage
thread "_C1ph3r_"
0000: NOP

9@ = 0
10@ = 0

:AntiSpecLoop
wait 0
if 9@ == 1
then
if or
key_down 2
key_down 1
then
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
call @SendFakeSpecSync 3 0@ 1@ 2@
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to $asd closest_ped_to 18@
if and 
056D:   actor 18@ defined 
00EC:   actor 18@ sphere 0 near_point 0@ 1@ radius 4.0 4.0
then
actor.StorePos(18@, 4@ , 5@ ,6@)
050A: 7@ = distance_between_XYZ 0@ 1@ 2@ and_XYZ 4@ 5@ 6@
if 
7@ < 4.0
then 
0AF8: samp add_message_to_chat "{FF0000}WARNING!!!: Player %d is watching you" 18@
0AF8: samp add_message_to_chat "{FF0000}Last Distance: %d" 7@
wait 100
end
end
end
end
jump @AntiSpecLoop

:AntiSpec
if 9@ == 0
then 
wait 1000
printf "~b~SpecWarning by _C1ph3r_ ~r~ON~b~!" time 1500
wait 1750
9@ = 1
else
wait 1000
printf "~b~SpecWarning by _C1ph3r_ ~r~OFF~b~!" time 1500
wait 1750
9@ = 0
end                   
SAMP.CmdRet

:SendFakeSpecSync
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
alloc 3@ 18
0C0D: struct 3@ offset 0 size 2 = 0 // sLeftRightKeys;
0C0D: struct 3@ offset 2 size 2 = 0 // sUpDownKeys;
0C0D: struct 3@ offset 4 size 2 = 0 // sKeys;
0C0D: struct 3@ offset 6 size 4 = 0@ //fPosition[X];
0C0D: struct 3@ offset 10 size 4 = 1@ // fPosition[Y];
0C0D: struct 3@ offset 14 size 4 = 2@ //fPosition[Z];
0B3D: raknet 4@ = new_bit_stream 
0B40: raknet bit_stream 4@ write 212 type 0 size 1
0B40: raknet bit_stream 4@ write 3@ type 5 size 18 
0B8B: raknet send bit_stream 4@
0B3E: raknet delete_bit_stream 4@
free 3@
ret 0

:packet_manage 
0BE5: raknet 1@ = get_hook_param 1
if and
9@ == 1 
1@ == 200
then
if 
10@ == 0
then
0BE0: raknet hook_ret false 
else
0BE0: raknet hook_ret true
end
else
0BE0: raknet hook_ret true
end
if and
9@ == 1 
1@ == 207
then
if 
10@ == 0
then
0BE0: raknet hook_ret false 
else
0BE0: raknet hook_ret true
end
else
0BE0: raknet hook_ret true
end

 Thanks for reading !
It should work then u shooting or aiming am i right?
Talking about this code
No, As u can see in my code:
when u type /warningspec
Code:
0B34: "warningspec" @AntiSpec

the script start to change 9@ 10@ to 1 so the script is actived and start to fake the coordinate, location ( Pos ) and loop the check if anyone is near you



Okay,i will test your script later
 

_C1ph3r_

Active member
Joined
Feb 5, 2017
Messages
91
Reaction score
3
RE: Help with this code

Yeah, i just don't have time to check it out ! So please test it and give me the result if it work or not ! So i could change and make it better
also if u have any ideas just tell me !
 

Edvincik

Well-known member
Joined
Mar 15, 2016
Messages
399
Reaction score
26
RE: Help with this code

_C1ph3r_ said:
Yeah, i just don't have time to check it out ! So please test it and give me the result if it work or not ! So i could change and make it better
also if u have any ideas just tell me !

For example if it would work is it possible to somehow dont take player if its near u but visible,just warn u when it near u and invisible
 

_C1ph3r_

Active member
Joined
Feb 5, 2017
Messages
91
Reaction score
3
RE: Help with this code

Edvincik said:
_C1ph3r_ said:
Yeah, i just don't have time to check it out ! So please test it and give me the result if it work or not ! So i could change and make it better
also if u have any ideas just tell me !

For example if it would work is it possible to somehow dont take player if its near u but visible,just warn u when it near u and invisible
Could possible ! But it depends on which cleo does that player use
There are many types of invisible:
1, Underground
2, Nop
3, Others thing: Fake position,...
 

_C1ph3r_

Active member
Joined
Feb 5, 2017
Messages
91
Reaction score
3
RE: Help with this code

WTF  :surprised: Language are u guys using ???
I use Google Translator and i receive this, Can someone tell me the full story, why they're using that language in my topic ?

Willsay said:
"Youth VN machine as a game clone color"
Ryancollier reply:
"Topic of Foreign ng of t or of anyone with this eyebrow dog teeth marks?"
Willsay reply:
"Stick your ears rather unfortunately nien VN xam ash cans colors representing nen lam itchy eyes due ma =)) clone roi tu tu lap topic rep cmt =)))))))))"

Willsay said:
"Youth too large gray machine clone reduce household oi =)) self clone themselves as strangers rep cmt not see shame =))))"
Ryancollier reply:
"Clone Smile))) vc Comedy, apple also where the fuck wants to speak Vietnamese, asked her to watch ngta topic to cooperate well done fuck, bold eyebrows Vietnam blood too! Easter, young buffalo came from within facebook ugbase Smile"
Willsay reply:
"UA in Fb I have nc with you why I do not know, huh ha back "milk Harrows" =)))))) 2003 hihi you do not know who is spreading rumors in 2003 and then my friend:)))"
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
RE: Help with this code

There is no player actor created for the spec person, so searching for the closest ped, near ped etc. doesn't help with anything.
 

_C1ph3r_

Active member
Joined
Feb 5, 2017
Messages
91
Reaction score
3
RE: Help with this code

springfield said:
There is no player actor created for the spec person, so searching for the closest ped, near ped etc. doesn't help with anything.
So what should i do ? Do you have any ideas better than this dummy topic ? Please give me ideas so i could train my skills


springfield said:
There is no player actor created for the spec person, so searching for the closest ped, near ped etc. doesn't help with anything.
... Please, reply me, i need your help to make this
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
RE: Help with this code

I don't know if there's a way to detect it, never tried. But i know there's no updates from the spectating player, neither is he streamed, so lookin' for the ped is no help.
 

_C1ph3r_

Active member
Joined
Feb 5, 2017
Messages
91
Reaction score
3
RE: Help with this code

springfield said:
I don't know if there's a way to detect it, never tried. But i know there's no updates from the spectating player, neither is he streamed, so lookin' for the ped is no help.
Maybe it's impossible ( at least now ? )
 

Edvincik

Well-known member
Joined
Mar 15, 2016
Messages
399
Reaction score
26
RE: Help with this code

Maybe we can somehow check distance between ourself and spectator, for example in the server where i am playing is command to follow player, and for example if you are following him and random distance like 0.58km between us if he starts spectating me distance lowers to 0.00km and maybe warning could apear if distance between players changes to 0.00km?
 

mistery

Well-known member
Joined
Apr 23, 2014
Messages
262
Reaction score
5
RE: Help with this code

Edvincik said:
Maybe we can somehow check distance between ourself and spectator, for example in the server where i am playing is command to follow player, and for example if you are following him and random distance like 0.58km between us if he starts spectating me distance lowers to 0.00km and maybe warning could apear if distance between players changes to 0.00km?

nope,same as above
i wonder if there's any way to check the radar and see if a player's square dissapears...maybe this would be the solution?
or maybe...hmm...got an idea
 

_C1ph3r_

Active member
Joined
Feb 5, 2017
Messages
91
Reaction score
3
RE: Help with this code

mistery said:
Edvincik said:
Maybe we can somehow check distance between ourself and spectator, for example in the server where i am playing is command to follow player, and for example if you are following him and random distance like 0.58km between us if he starts spectating me distance lowers to 0.00km and maybe warning could apear if distance between players changes to 0.00km?

nope,same as above
i wonder if there's any way to check the radar and see if a player's square dissapears...maybe this would be the solution?
or maybe...hmm...got an idea
Nope ! Roleplay server won't show player icon on radar when the spectator is watching u ! 
They just see you, nothing much !
And i ask an admin to show their gamemode source ( Small Server, we also have known each other for a long time... )
I guess we could make one better version of this cleo depend on the server scripts !
So we could make it if you know anyone in Staff team of that server  :LOL:
Code:
CMD:spec(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] < 2 && PlayerInfo[playerid][pHelper] < 3 && !GetPVarType(playerid, "pWatchdogWatching"))
	{
		SendClientMessageEx(playerid, COLOR_GREY, "You don't have permission to use this command.");
		return 1;
	}

	if(strcmp(params, "off", true) == 0)
	{
		if(Spectating[playerid] > 0 && PlayerInfo[playerid][pAdmin] >= 2 || PlayerInfo[playerid][pHelper] >= 3 && Spectating[playerid] > 0)
		{
		    if(GetPVarType(playerid, "pWatchdogWatching"))
			{
			    SendClientMessage(playerid, COLOR_WHITE, "You have stopped DM Watching.");
				DeletePVar(playerid, "pWatchdogWatching");
			}
			GettingSpectated[Spectate[playerid]] = INVALID_PLAYER_ID;
			Spectating[playerid] = 0;
			Spectate[playerid] = INVALID_PLAYER_ID;
			SetPVarInt(playerid, "SpecOff", 1 );
			TogglePlayerSpectating(playerid, false);
			SetCameraBehindPlayer(playerid);
			return 1;
		}
		else
		{
			SendClientMessageEx(playerid, COLOR_GREY, "You're not spectating anyone.");
			return 1;
		}
	}

	new giveplayerid;
	if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_GREY, "Usage: /spec (playerid/off)");
	if(IsPlayerConnected(giveplayerid))
	{
	    if((PlayerInfo[playerid][pHelper] >= 3 && !(2 <= PlayerInfo[giveplayerid][pHelper] <= 4)) && !GetPVarType(playerid, "pWatchdogWatching"))
	    {
	        SendClientMessageEx(playerid, COLOR_GREY, "You can only spectate other advisors");
			return 1;
		}
		if(GetPVarType(playerid, "pWatchdogWatching") && (GetPVarInt(playerid, "pWatchdogWatching") != giveplayerid))
		{
		    SendClientMessageEx(playerid, COLOR_GREY, "You can only spectate the person you are DM Watching.");
			return 1;
		}
		if(PlayerInfo[giveplayerid][pAdmin] == 99999 && !GetPVarType(giveplayerid, "EASpecable")) return SendClientMessageEx(playerid, COLOR_WHITE, "You cannot spectate this person.");
		if(PlayerInfo[playerid][pAdmin] >= 4 && Spectate[giveplayerid] != INVALID_PLAYER_ID && Spectating[giveplayerid] == 1)
		{
			new string[128];
			format(string, sizeof(string), "Admin %s is speccing %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(Spectate[giveplayerid]));
			SendClientMessageEx(playerid, COLOR_GREEN, string);
			return 1;
		}
		SpectatePlayer(playerid, giveplayerid);
	}
	else
	{
		SendClientMessageEx(playerid, COLOR_WHITE, "Target is not available.");
	}
	return 1;
}
 
Status
Not open for further replies.
Top