28.12.2013, 16:34
pawn Код:
new Float:RandomSpawn[][3] =
{
{2327.1094,-1169.7896,28.0864},
{2327.1094,-1169.7896,28.0864},
{2327.1094,-1169.7896,28.0864}
};
forward StartFire();
SetTimer("StartFire",60000,1);
public StartFire()
{
new
rand = random(sizeof(RandomSpawn))
;
CreateFire(RandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2]);
SendClientMessageToAll(COLOR_WHITE, "A BIG FIRE HAS STARTED !");
for(new x = 0; x < MAX_PLAYERS; x++)
{
if(IsPlayerConnected(x)) SetPlayerCheckpoint(x, RandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2], 3.0);
}
return 1;
}