03.12.2012, 02:34
pawn Код:
new
Permissao[MAX_PLAYERS]
;
if(strcmp(cmdtext, "/darpermicaodragon", true) == 0)
{
new
PlayerID[24],
NomeADM[24],
Celula[124]
;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, -1, "USE: /darpermicaodragon [ id ]");
new IDPlayer;
IDPlayer = ReturnUser(tmp);
if(!IsPlayerConnected(IDPlayer)) return SendClientMessage(playerid, -1, "ID Nгo conectado");
if(IDPlayer != INVALID_PLAYER_ID)
{
GetPlayerName(IDPlayer, PlayerID, sizeof(PlayerID));
GetPlayerName(playerid, NomeADM, sizeof(NomeADM));
Permissao[IDPlayer] = 1;
format(Celula, sizeof(Celula), "Vocк deu a permissгo ao player %s usar o /clandragonkit", PlayerID);
SendClientMessage(playerid, -1, Celula);
format(Celula, sizeof(Celula), "O Admin %s deu permissгo a vocк a usar o comando /clandragonkit", NomeADM);
SendClientMessage(IDPlayer, -1, Celula);
}
return true;
}
if(strcmp(cmdtext, "/clandragonkit", true) == 0)
{
if(Permissao[playerid] != 1) return SendClientMessage(playerid, -1, "Vocк nгo tem permissгo para usar esse comando. Peзa a um Admin !");
SendClientMessage(playerid, -1, "Vocк pegou o Dragon KIT !");
GivePlayerWeapon(playerid, 26/*Eagle*/, 500/*500 Balas*/); // ID da Arma, Balas...
Permissao[playerid] = 0;
// bota o resto das armas ai !
return true;
}