19.03.2013, 00:36
try to use this:
or the most fastest way sscanf
https://sampforum.blast.hk/showthread.php?tid=120356
pawn Код:
tmp = strtok(cmdtext,idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, LIGHTBLUE2, "Usage: /mute[PlayerID]");
SendClientMessage(playerid, orange, "Function: Mutes a player");
return 1;
}
target = ReturnUser(tmp);
https://sampforum.blast.hk/showthread.php?tid=120356
pawn Код:
CMD:mute(playerid, params[])
{
new target;
if(sscanf(params, "u", target)) return SendClientMessage(playerid, red, "Usage:/mute [ID]");
//do your cmd here
return 1;
}