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}."
: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
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