03.08.2013, 17:00
I want to block all of the commands, including
Not only just the /stats. I want to block also the /kick command
pawn Код:
CMD:kick(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 3) {
new PID;
new reason[64];
new str[128];
new Playername[MAX_PLAYER_NAME], Adminname[MAX_PLAYER_NAME];
GetPlayerName(playerid, Adminname, sizeof(Adminname));
GetPlayerName(PID, Playername, sizeof(Playername));
if(sscanf(params, "us[64]", PID,reason)) return SendClientMessage(playerid, COLOR_ALB, "SINTAXA: /kick [playerid] [motiv]");
if(!IsPlayerConnected(PID)) return SendClientMessage(playerid, COLOR_ALB, "EROARE: Jucatorul nu este conectat");
format(str, sizeof(str), "'%s' a dat kick lui '%s'. Motiv: %s ", Adminname, Playername, reason);
SendClientMessageToAll(COLOR_PORTOCALIU, str);
Kick(PID);
}
else
{
SendClientMessage(playerid, COLOR_ALB, "EROARE: Nu ai permisiunea sa folosesti aceasta comanda");
}
return 1;
}