CLEO Help Get player nickname from ID.

CLEO related
Status
Not open for further replies.

DavidRO99

Active member
Joined
Nov 5, 2017
Messages
60
Reaction score
8
Im trying to make a fake ban script, the use of it would be "/fakeban {banner} {id} {reason}" but I cant seem to get the player name from the id, as the output needs to be "Ban: {name from id} has been permanent banned by {banner}, reason {reason}."
 

veysileth

Active member
Joined
Mar 23, 2017
Messages
85
Reaction score
6
0B36: samp x@ = get_player_nickname y@

so like in chat
0AF8: samp add_message_to_chat "%s " color -1 x@
"nick"
 

noob213

Active member
Joined
Sep 15, 2017
Messages
88
Reaction score
6
get name through the command
Code:
:noname
0B35: samp 0@ = get_last_command_params
if 
0AD4: 1@ = scan_string 0@ format "%d" 2@
then
0B36: samp 3@ = get_player_nickname 2@
chatmsg "name %s" -1 3@
end
0B43: samp cmd_ret
 

DavidRO99

Active member
Joined
Nov 5, 2017
Messages
60
Reaction score
8
noob213 said:
get name through the command
Code:
:noname
0B35: samp 0@ = get_last_command_params
if 
0AD4: 1@ = scan_string 0@ format "%d" 2@
then
0B36: samp 3@ = get_player_nickname 2@
chatmsg "name %s" -1 3@
end
0B43: samp cmd_ret

Thanks!  :)
 
Status
Not open for further replies.
Top