CMD:vidat(playerid, params[])
{
if((PlayerInfo[playerid][Admin] < 1 || PlayerInfo[playerid][pFrente] >= 1)) return SendClientMessage(playerid, Vermelho, "Erro: Vocк nгo pode usar esse comando.");
new Float:POS[3];
GetPlayerPos(playerid,POS[0],POS[1],POS[2]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(GetDistanceBetweenPlayers(playerid,i) < 30)
{
new string[256];
SetPlayerHealth(i,100);
format(string, sizeof(string),"** %s deu vida para todos perto dele!", Nome(playerid));
SendClientMessage(i,AZUL_CLARO, string);
}
}
return 1;
}
CMD:coletet(playerid, params[])
{
if(PlayerInfo[playerid][Admin] >= 1 || PlayerInfo[playerid][pVip] >= 1 || PlayerInfo[playerid][pGerente] >= 1 || PlayerInfo[playerid][pFrente] >= 1) return SendClientMessage(playerid, Vermelho, "Erro: Vocк nгo pode usar esse comando.");
new Float:POS[3];
GetPlayerPos(playerid,POS[0],POS[1],POS[2]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(GetDistanceBetweenPlayers(playerid,i) < 30)
{
new string[256];
SetPlayerArmour(i, 100);
format(string, sizeof(string),"** %s deu colete para todos perto dele!", Nome(playerid));
SendClientMessage(i,AZUL_CLARO, string);
}
}
return 1;
}
pFrente,
EXEMPLO:
enum PlayerInfo
{
pAdmin,
pFrente,
pTeste,
pTeste1,
pTeste2
}
Lembrando que as definiзхes acima sгo exemplo e que o ъltimo elemento nгo possъi separadores como no caso usado a ","
enum pInfo
{
Firerocket,
rocketsmoke,
bool:DelayReport,
vehicleTime,
lastVehicle,
Vehicle,
VehicleExpira,
VehicleCreated,
VehicleLabel,
VehicleCreatedFree,
VehiclePrice,
EntrevistaInvite,
bool:Entrevista[2],
pStatusHelper,
pSinalizadores,
FilaRGT,
FilaHELPER,
gSpectateType,
LastReport,
SpawnArmour,
SpawnArmourExpira,
bool:ReloadPlayer,
pMaxTentativas,
bool:Congelado,
bool:ChatFaccao,
bool:DelayKick,
Float:LastPos[3],
TimerArrow,
pScore,
Admin,
pBOPE,
pEmprego,
pLogado,
pMorro,
pVapor,
pFogueteiro,
Bpm,
pMatou,
pMorreu,
pPM,
pNada,
pCV,
pADA,
pTCP,
pPCC,
pVip,
pPresoADM,
pGerente,
pFrente,
pHelper,
pReporter,
pTempoPreso,
pPresoLV,
pPresoSF,
Hosp,
pChoque,
pFaccoes,
pBlockChat,
pProcurado,
pPresoLS,
pMaconha,
pCocaina,
Penitenciaria,
bool:ChatVip,
bool:CityAdmin,
bool:DelayAsay,
pPunVIP,
VipExpira,
pBlockKick,
fkill,
Warns,
CanUseOnDeathAgain,
gSpectateID,
bool:DelayGov,
bool:DelayTaser,
Fogos,
bool:Assistindo
};
new PlayerInfo[MAX_PLAYERS][pInfo];
Que copiei o gm da gt viaja nгo, tou fazeno server de facзхes o leproso
|