01.10.2014, 16:02
I'd suggest you to use sscanf (click here to get to the sscanf topic)
in addition (if you're not using it) I'd use zcmd personally (you can use whatever you want, though - zcmd here)
with zcmd it would look like the following:
(just example code, you should add more specifications to this command (like admin, etc. you know))
in addition (if you're not using it) I'd use zcmd personally (you can use whatever you want, though - zcmd here)
with zcmd it would look like the following:
pawn Код:
CMD:kick(playerid, params[])
{
new pid;
if(!sscanf(params, "i", pid))
{
Kick(pid);
}
else
{
SendClientMessage(playerid, 0x999999AA, "useage: /kick [playerid]");
}
return 1;
}