25.08.2011, 12:16
First of all you need multiple variables for that.
If you want when player is in Flame DM, And he dies and he will respawn in Flame.
Then here is it.
OnPlayerSpawn
If you want when player is in Flame DM, And he dies and he will respawn in Flame.
Then here is it.
OnPlayerSpawn
pawn Код:
if(DMZone[playerid] == 0)
{
new rand = random(sizeof(RandomPlayerSpawns));
SetPlayerPos(playerid, RandomPlayerSpawns[rand[0],RandomPlayerSpawns[rand]1],RandomPlayerSpawns[rand[2]);
}
if(DMZone[playerid] == 1)
{
SetPlayerPos(playerid, RandomPlayerSpawnsFlame[rand][0], RandomPlayerSpawnsFlame[rand][1], RandomPlayerSpawnsFlame[rand][2]);
}