21.12.2010, 13:01
Well using sscanf and strcmp, just do:
pawn Код:
if(strcmp("/kick",cmdtext,true,5) == 0)
{
new var,reason[128];
if(sscanf(cmdtext,"sus",cmdtext,var,reason)) return SendClientMessage(playerid,color,"/kick playerid reason");
else
{
// Your kick function.
}
return 1;
}