Cant use admin commands
#1

I can't use my admin commands, ive set my level to 5 in the .ini file.. Still nothing works

What can cause it, and tell me which code i need to post.. I can post one of my admin commands and maybe you guys can see the problem

pawn Код:
dcmd_kick(playerid, params[])
{
    new pid;
    if(sscanf(params, "us", pid, params[2])) return SendClientMessage(playerid, Yellow, "Usage: /kick <playerid> <reason>");
    if(level[playerid] >= 1)
    {
        if(!IsPlayerConnected(pid)) return SendClientMessage(playerid, Red, "Player is not connected");
        new adminname[MAX_PLAYER_NAME], paramname[MAX_PLAYER_NAME], string[180];
        GetPlayerName(pid, paramname, sizeof(paramname));
        GetPlayerName(playerid, adminname, sizeof(adminname));
        format(string, sizeof(string), "%s has been kicked by %s for: %s", paramname, adminname, params[2]);
        SendClientMessageToAll(AdminColor, string);
        format(string, sizeof(string), "You have been kicked by %s for: %s", adminname, params[2]);
        SendClientMessage(pid, AdminColor, string);
    } else return 0;
    return 1;
}
Reply


Messages In This Thread
Cant use admin commands - by xir - 05.01.2011, 18:08
Re: Cant use admin commands - by veyron - 05.01.2011, 18:10
Re: Cant use admin commands - by iggy1 - 05.01.2011, 18:11
Re: Cant use admin commands - by xir - 05.01.2011, 18:13
Re: Cant use admin commands - by iggy1 - 05.01.2011, 18:15
Re: Cant use admin commands - by xir - 05.01.2011, 18:17
Re: Cant use admin commands - by veyron - 05.01.2011, 18:18
Re: Cant use admin commands - by iggy1 - 05.01.2011, 18:19
Re: Cant use admin commands - by xir - 05.01.2011, 18:22
Re: Cant use admin commands - by veyron - 05.01.2011, 18:25

Forum Jump:


Users browsing this thread: 1 Guest(s)