Resource icon

CLEO Release ReportPlayer.cs

CLEO related
Status
Not open for further replies.

Monstercat

Well-known member
Joined
Feb 26, 2013
Messages
281
Reaction score
6
Hey Today i'll show you a CLEO with that you can report players...

How it works:
If you Aim at a Player you have to press R
Then it reports the player you aiming at.

The Script:

Code:
{$CLEO .cs}
THREAD "REPORT"

:LOAD
wait 0
if
Player.Defined(0)
jf @LOAD
if 
  8AF7: get_samp_base_to 0@
then 
    0A93: end_custom_thread
end
repeat 
    wait 400
until 0AFA: is_samp_structures_available




:START
wait 0
if  
0ADC:   test_cheat "R"
jf @START
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @START
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: "/a %s ID:%d Hacker" 2@ 1@ 
wait 1000
jump @START

You can change the command to whatever you want (like changing /a to /report) but remember that you have the right variable

Note:
Go to option - format - right lower - Case converting - As is or lower.

Thanks to:
springfield
xzytro
Special Thanks to:
Opcode.eXe

If you like it leave a thanks :) :):)
 

Attachments

  • ReportPlayer.cs
    17.8 KB · Views: 155

LettiTV

Member
Joined
Feb 25, 2013
Messages
21
Reaction score
0
When I press spacebar + R i get Warning codes and nothing happens :( :(:(

crashcodej9qx1e4hck.png
 

Monstercat

Well-known member
Joined
Feb 26, 2013
Messages
281
Reaction score
6
You Need SAMPFUNCS
 

Attachments

  • sf_2_6.rar
    188 KB · Views: 94

Hidend

Expert
Joined
Mar 4, 2013
Messages
653
Reaction score
49
Hey Today i'll show you a CLEO with that you can report players...

How it works:
If you Aim at a Player you have to press R + Space
Then it reports the player you aiming at.

The Script:

Code:
{$CLEO .cs}

THREAD "ReportPlayer"

:NONAME_01
wait 0
0AD2: $target = player $PLAYER_CHAR targeted_actor
if
0457: player $PLAYER_CHAR aiming_at_actor $target
else_jump @NONAME_01
jump @NONAME_02 

:NONAME_02
wait 0
if
0AB0: key_pressed 32 //Change the key to whatever you want
0AB0: key_pressed 82 //Change the key to whatever you want
else_jump @NONAME_02
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 4@ = get_player_nickname 1@
0AF9: "/a ID:%d Hacker" 1@ // %d is the decimal variable for 1@ 
// or to report Name 0AF9: samp say_msg "/a %s Hacker" 4@ // %s is the string(text) variable for 4@
wait 5000
jump @NONAME_01

You can change the command to whatever you want (like changing /a to /report) but remember that you have the right variable

Note:
Go to option - format - right lower - Case converting - As is or lower.

Thanks to:
springfield
xzytro
Opcode.eXe

If you like it leave a thanks :) :):)

Upcoming Bugfix:
The ID:-1 Bug.
The non aim report bug.
I get the "The non aim report bug" i think, i aim player, and put "space + 7" and i get message in samp i don't `put a id to report... Why?
 

xzytro

God
Joined
Apr 1, 2013
Messages
2,294
Reaction score
7
that i don't put an id to report
That's supposed to be the bug about the id -1 bug he wrote up there in the "upcoming fixes".

I've got no idea (yet) about that id -1 bug, but by reading the codeflow i could clearly understand the reason why the "non-aim report bug" happens. You just made a mistake at a spot where there is a jump and if condition at the same time (just like you told me a week ago, these jumps are confusing you a lot).
 

Monstercat

Well-known member
Joined
Feb 26, 2013
Messages
281
Reaction score
6
Ahh wait i think the non aim bug is here:

0AB0: key_pressed 32 //Change the key to whatever you want
0AB0: key_pressed 82 //Change the key to whatever you want
else_jump @NONAME_02 to @NONAME_01

isnt it?
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,488
Reaction score
231
Location
( ͡° ͜ʖ ͡°)
Code:
{$CLEO .cs}
THREAD "REPORT"

:LOAD
wait 0
if
Player.Defined(0)
jf @LOAD
if 
  8AF7: get_samp_base_to 0@
then 
    0A93: end_custom_thread
end
repeat 
    wait 400
until 0AFA: is_samp_structures_available




:START
wait 0
if  
0ADC:   test_cheat "R"
jf @START
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @START
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "/a %s CHEATER" 2@ 
wait 1000
jump @START
 

Monstercat

Well-known member
Joined
Feb 26, 2013
Messages
281
Reaction score
6
There is an .txt in the SannyBuilder installation path called opcodes.txt
C:program Files (x86)Sanny Builder 3datasaopcodes.txt
 
Status
Not open for further replies.
Top