13.09.2013, 19:41
pawn Код:
forward MudarArena(playerid);
public MudarArena(playerid)
{
for(new i; i < MAX_PLAYERS; i++)
{
new passar;
if(passar[playerid] == 0) // Primeira Arena
{
rand = random(sizeof(SpawnA1));
SetPlayerPos(playerid, SpawnA1[rand][0], SpawnA1[rand][1], SpawnA1[rand][2]);
GetPlayerFacingAngle(playerid, SpawnA1[rand][3]);
QualArena = 1;
SetTimer("MudarArena", 900000, 1);
}
else if(passar[playerid] == 1) // Segunda Arena
{
rand = random(sizeof(SpawnA2));
SetPlayerPos(playerid, SpawnA2[rand][0], SpawnA2[rand][1], SpawnA2[rand][2]);
GetPlayerFacingAngle(playerid, SpawnA2[rand][3]);
QualArena = 2;
SetTimer("MudarArena", 900000, 1);
}
}
return 1;
}