Just answer me a thing about STRTOK:
#6

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;
}
Reply


Messages In This Thread
Just answer me a thing about STRTOK: - by blackwave - 21.12.2010, 12:49
Re: Just answer me a thing about STRTOK: - by MadeMan - 21.12.2010, 12:51
Re: Just answer me a thing about STRTOK: - by JaTochNietDan - 21.12.2010, 12:51
Re: Just answer me a thing about STRTOK: - by blackwave - 21.12.2010, 12:58
Re: Just answer me a thing about STRTOK: - by JaTochNietDan - 21.12.2010, 13:01
Re: Just answer me a thing about STRTOK: - by Rachael - 21.12.2010, 13:04
Re: Just answer me a thing about STRTOK: - by blackwave - 21.12.2010, 13:09

Forum Jump:


Users browsing this thread: 1 Guest(s)