my cmd doesnt work
#1

here is my cmd:
pawn Код:
CMD:test(playerid, params[])
{
    new id;
    new reason[128];
    new kick[128];
    new kickmsgtoadmin[128];
    new name[MAX_PLAYER_NAME];
    if(PInfo[playerid][Padmin] > 0)
    {
        if(sscanf(params,"uc",id,reason)) return SendClientMessage(playerid, -1, "UAGE: /kick <id> <reason>");
        GetPlayerName(id,name,sizeof(name));
        format(kick, sizeof(kick), "you have been kicked by %s for reason: %c", name, reason);
        SendClientMessage(id, ORANGE, kick);
        format(kickmsgtoadmin, sizeof(kickmsgtoadmin), "you have kicked %s for reason: %c", name, reason);
        SendClientMessage(playerid, -1, kickmsgtoadmin);
        Kick(id);
    } return true;
}
it just shows SERVER:unkown cmd
Reply


Messages In This Thread
my cmd doesnt work - by thefatshizms - 15.06.2012, 19:09
Re: my cmd doesnt work - by Djole1337 - 15.06.2012, 19:16
Re: my cmd doesnt work - by Kindred - 15.06.2012, 19:19
Re: my cmd doesnt work - by thefatshizms - 15.06.2012, 19:23
Re: my cmd doesnt work - by Elysian` - 15.06.2012, 19:27
Re: my cmd doesnt work - by thefatshizms - 15.06.2012, 19:59
Re: my cmd doesnt work - by Face9000 - 15.06.2012, 20:04
Re: my cmd doesnt work - by thefatshizms - 15.06.2012, 20:06
Re: my cmd doesnt work - by Face9000 - 15.06.2012, 20:09
Re: my cmd doesnt work - by thefatshizms - 15.06.2012, 20:13

Forum Jump:


Users browsing this thread: 3 Guest(s)