[Ajuda] Comando /SetarAdmin
#2

Aki amigo:
Quote:

CMDetaradmin(playerid, params[]){
if(!IsPlayerAdmin(playerid) && Player[playerid][Admin] < 5 ) return SendClientMessage(playerid, COR_VERMELHO, "| ERRO | Vocк Nгo Tem Permissгo");
new PlayerIDSetado, Level , Mensagem[256];
if ( sscanf( params, "ud", PlayerIDSetado, Level )) return SendClientMessage(playerid, COR_VERMELHO, "| ERRO | Use /SetarAdmin [ Id ] [ Level ]");
if (!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COR_VERMELHO, "| ERRO | O(a) Jogador(a) Nao Esta Conectado");
if(Level < 0 || Level > 5) return SendClientMessage(playerid,-COR_VERMELHO,"| ERRO | Use Level De 1 А 5");
format(Mensagem, sizeof(Mensagem), "| ADMIN | %s Setou Level De %s Para %d", GetPlayerNameEx(playerid),GetPlayerNameEx(PlayerID Setado), Level);
SendClientMessageToAll(COR_AZUL, Mensagem);

Player[PlayerIDSetado][Admin] = Level;
return 1;
}

Reply


Messages In This Thread
Comando /SetarAdmin - by MatheusFirmino - 11.01.2017, 17:07
Re: Comando /SetarAdmin - by Carlos001 - 11.01.2017, 17:52
Re: Comando /SetarAdmin - by MatheusFirmino - 11.01.2017, 18:01
Re: Comando /SetarAdmin - by BobbMarley - 11.01.2017, 18:25

Forum Jump:


Users browsing this thread: 2 Guest(s)