I'm making a cleo, this cleo type msj in chat when a target a player with a gun.
This is the cleo code:
So, i need only work if i see the nickname over the other player, if i don't see the name show the message "You need close to the player to see the /id", ¿Anyone can help me?
Sory for my bad english.
This is the cleo code:
Code:
{$CLEO .cs}
0000: "/id"
:idapuntar
wait 1000
if and
0AD2: 0@ = player $PLAYER_CHAR targeted_char
0AB0: 66
jf @idapuntarcmd
0B2B: samp 1@ = get_player_id_by_CHAR_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "/id %d" 1@
:idapuntarcmd
jump @idapuntar}
Sory for my bad english.