Target id - 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: Target id (
/showthread.php?tid=403492)
Target id -
NicholasA - 30.12.2012
Hey i need some help with target ids.
Im using ZCMD and SSCANF.
Im wondering on how to make something like: /bimboeblopblopklop [ID]
It will do stuff to the player and will say to you "You havebimboeblopblopklop'd [PLAYER]"
If player is not connected it ll say something to you too
Re: Target id -
Feastahashi - 30.12.2012
Basic:
pawn Код:
CMD:command(playerid, params[])
{
new id;
if(sscanf(params, "d", id)) return Msg(playerid, color, "USAGE: /command <playerid>"); // if the command params aren't correct
kick(id); // The function which will affect the target id
//...
return 1;
}