A Andu_1211 New member Joined May 21, 2022 Messages 1 Reaction score 0 May 21, 2022 #1 So right now, the player's whole name needs to be typed in order for this to work, how do I make it so I only use the ID? Attachments LicenceChecker.cs 22.4 KB · Views: 6
So right now, the player's whole name needs to be typed in order for this to work, how do I make it so I only use the ID?
Parazitas God Staff member Joined Jan 2, 2017 Messages 3,315 Solutions 7 Reaction score 935 Location Lithuania May 21, 2022 #2 PHP: :MyCommand // Use: /MyCommand [PlayerID] 0B35: samp 31@ = get_last_command_params if 0AD4: $NOT_USED = scan_string 31@ format "%d" 30@ then 0B36: samp 29@ = get_player_nickname 30@ chatmsg "%s" -1 29@ end 0B43: samp cmd_ret Upvote 0 Downvote
PHP: :MyCommand // Use: /MyCommand [PlayerID] 0B35: samp 31@ = get_last_command_params if 0AD4: $NOT_USED = scan_string 31@ format "%d" 30@ then 0B36: samp 29@ = get_player_nickname 30@ chatmsg "%s" -1 29@ end 0B43: samp cmd_ret