29.05.2018, 00:44
PHP код:
bool:pArena[MAX_PLAYERS];
CMD:arena1(playerid, params[])
{
SetPlayerInterior(playerid, 1);
ResetPlayerWeapons(playerid);
for(new i = 0; i <= 26; i++)
{
GivePlayerWeapon(i,Armas[random(sizeof(Armas))], 100);
GivePlayerWeapon(i,Armas[random(sizeof(Armas))], 100);
GivePlayerWeapon(i,Armas[random(sizeof(Armas))], 100);
GivePlayerWeapon(i,Armas[random(sizeof(Armas))], 100);
}
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, playernome, sizeof (playernome));
format(TextoString, sizeof(TextoString), "|| %s » Foi para a Arena x1. {00BFFF}/arena1", playernome);
SendClientMessageToAll(COR_BRANCA, TextoString);
GameTextForPlayer(playerid,"~y~Voce esta na Arena de x1", 5000, 1);
new rand = random(sizeof(gNascerAlternandoDM1));
SetPlayerPos(playerid, gNascerAlternandoDM1[rand][0], gNascerAlternandoDM1[rand][1], gNascerAlternandoDM1[rand][2]);
pArena[playerid] = true;
return 1;
}
o motivo de esta sendo preso / procurado e em outro lugar :/
PHP код:
if(pArena[playerid] == true)
{
}
if(pArena[playerid] == false)
{
}
pArena[playerid] = true;
pArena[playerid] = false;