21.12.2010, 13:04
I think this might work, you should be able to type /kick 4 5 9 10 ( any number of parameters ) and kick them all
pawn Код:
new tmp[16];
tmp = strtok(cmdtext,idx);
if(!strcmp(tmp,"/kick",true))
{
new target;
tmp = strtok(cmdtext,idx);
while(strlen(tmp))
{
target = strval(tmp);
if(IsPlayerConnected(target))
{
Kick(target);
}
tmp = strtok(cmdtext, idx);
}
return 1;
}