05.01.2011, 18:08
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
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;
}