06.06.2013, 11:41
Well Im willing to script my simple deathmatch gamemode, but the thing is, I wanna make like 4 spawns and everytime a player log in he'll be spawned in different replaces.
EXAMPLE:
Player1: Spawned at Ganton.
Player2: Spawned at El Corona.
Well what function should I use? also yea I've tried random
EXAMPLE:
Player1: Spawned at Ganton.
Player2: Spawned at El Corona.
Well what function should I use? also yea I've tried random
Код:
public OnGameModeInit() { SetGameModeText("SDM v1.0"); new rn = random(2); if (rn == 1) // Spawn Ganton { AddPlayerClass(0,2485.5701,-1766.6910,13.5469,7.6177,0,0,0,0,0,0); // SpawnGanton } else // SpawnCorona { AddPlayerClass(0,1930.2146,-2070.7791,13.5498,353.2042,0,0,0,0,0,0); // SpawnCorona } return 1; }