So yea i got a script , it's supposed to detect the id of the player and use it to send it in a cmd
WHATS WRONG?
{$CLEO .cs}
0000: NOP
EPE_1
wait 0
if
0AB0: key_down 66 // KEY 1 NOT NUMPAD.
jf @PEPE_1
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor
jf @PEPE_1
0B2B: samp 1@ = get_player_id_by_actor_handle 0@ //gets the id of the player we are aiming.
0B36: samp 2@ = get_player_nickname 1@ // gets the nickname from 1@ = id of player aimed.
wait 1
0AF9: samp say_msg "/rob %s " 2@ //0AF8: samp add_message_to_chat "I'm aiming to %s - ID %d." color 0xFF6347 2@ 1@ // this will say the nickname and ID of targeted player.
wait 1
jump @PEPE_1
WHATS WRONG?
{$CLEO .cs}
0000: NOP
EPE_1
wait 0
if
0AB0: key_down 66 // KEY 1 NOT NUMPAD.
jf @PEPE_1
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor
jf @PEPE_1
0B2B: samp 1@ = get_player_id_by_actor_handle 0@ //gets the id of the player we are aiming.
0B36: samp 2@ = get_player_nickname 1@ // gets the nickname from 1@ = id of player aimed.
wait 1
0AF9: samp say_msg "/rob %s " 2@ //0AF8: samp add_message_to_chat "I'm aiming to %s - ID %d." color 0xFF6347 2@ 1@ // this will say the nickname and ID of targeted player.
wait 1
jump @PEPE_1
Last edited: