zcmd /kick doesnt works
#1

i've got this command:
pawn Код:
CMD:kick(playerid, params[])
{
    new tmp[256], tmp2[256],Index;
    tmp = strtok(params,Index);
    tmp2 = strtok(params,Index);

    if (pLevel[playerid] <= 0)
    {
        SendClientMessage(playerid, COLOR_RED, "SERVER: Unknown command.");
    }
    else
    {
        new player,playername[24],playername2[24],string[128];
        if(sscanf(params,"us",player,string))return SendClientMessage(playerid,COLOR_GREEN,"USAGE: /kick [PlayerName/ID] [Reason]");
        GetPlayerName(player,playername,24);
        GetPlayerName(playerid,playername2,24);
        format(string,sizeof(string),"%s have been kicked by %s. Reason: %s.",playername2,playername,string);
 
        SendClientMessageToAll(COLOR_GREEN, string);
        Kick( strval (params));
    }
    return true;
}
Does anybody knows what's wrong?
I haven't got sscanf
Reply


Messages In This Thread
zcmd /kick doesnt works - by svorpyx - 09.01.2010, 16:02
Re: zcmd /kick doesnt works - by pagie1111 - 09.01.2010, 16:28
Re: zcmd /kick doesnt works - by svorpyx - 09.01.2010, 16:40
Re: zcmd /kick doesnt works - by KnooL - 09.01.2010, 16:42
Re: zcmd /kick doesnt works - by svorpyx - 09.01.2010, 18:56
Re: zcmd /kick doesnt works - by dice7 - 09.01.2010, 18:58

Forum Jump:


Users browsing this thread: 2 Guest(s)