Question. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Question. (
/showthread.php?tid=562169)
Question. -
HY - 07.02.2015
Hello.
I saw on few servers, and I don't know how to do.
How can I use a command on player's name or ID. For example:
pawn Код:
/Ban [Player ID/Part Of Name]
+Rep.
Re: Question. -
M4D - 07.02.2015
pawn Код:
sscanf(params,"u",targetid)
Quote:
The q, r, and u specifiers search for a user by name or ID.
|
https://github.com/Y-Less/sscanf/wiki/Users
Re: Question. -
HY - 07.02.2015
Lol.
I'd never used "u" for names, I thought it's only for player IDs.
But now I know. Thank you!
+Rep.
Edit: I gave you rep, I can't right now. When I can, i'll gave.