[Ajuda] CMD
#1

Eu quero que quem e administrador nгo possa ser kickado:

PHP Code:
CMD:kick(playeridparams[])
{
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid0xFF0000AA"[ADMCMD] Voce Nao E Um Administrador!");
    new 
Playermotivo[74], string[144];
    if(
sscanf(params"us[74]"Playermotivo)) return SendClientMessage(playerid0xFF0000AA"[ADMCMD] Use: /kick [ID] [MOTIVO]");
    if(!
IsPlayerConnected(Player) || playerid == Player) return SendClientMessage(playerid0xFF0000AA"[ADMCMD] Player Nгo Conectado! Ou E Vocк Mesmo!");
    
format(stringsizeof string"[ADMCMD] O Administrador %s Kickou %s Motivo: %s"pName(playerid), pName(Player), motivo);
    
SendClientMessageToAll(0xFF80FFAAstring);
    return 
TryEx(playeridPlayer1motivo);

Funзгo de administrador:

PHP Code:
if(<= Profissao[playerid] <= 8
Reply


Messages In This Thread
CMD - by hurubuh - 17.03.2019, 14:44
Re: CMD - by MituhBR - 17.03.2019, 14:59
Re: CMD - by hurubuh - 17.03.2019, 15:13
Re: CMD - by leobpo - 17.03.2019, 15:27

Forum Jump:


Users browsing this thread: 3 Guest(s)