17.03.2019, 14:44
Eu quero que quem e administrador nгo possa ser kickado:
Funзгo de administrador:
PHP Code:
CMD:kick(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000AA, "[ADMCMD] Voce Nao E Um Administrador!");
new Player, motivo[74], string[144];
if(sscanf(params, "us[74]", Player, motivo)) return SendClientMessage(playerid, 0xFF0000AA, "[ADMCMD] Use: /kick [ID] [MOTIVO]");
if(!IsPlayerConnected(Player) || playerid == Player) return SendClientMessage(playerid, 0xFF0000AA, "[ADMCMD] Player Nгo Conectado! Ou E Vocк Mesmo!");
format(string, sizeof string, "[ADMCMD] O Administrador %s Kickou %s Motivo: %s", pName(playerid), pName(Player), motivo);
SendClientMessageToAll(0xFF80FFAA, string);
return TryEx(playerid, Player, 1, motivo);
}
PHP Code:
if(7 <= Profissao[playerid] <= 8)