Different spawns
#1

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

Код:
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;


}
Reply


Messages In This Thread
Different spawns - by DaniceMcHarley - 06.06.2013, 11:41
AW: Different spawns - by HurtLocker - 06.06.2013, 11:45
Re: Different spawns - by DaniceMcHarley - 06.06.2013, 11:47
Re: Different spawns - by jordy.kiesebrink - 06.06.2013, 11:49
Re: Different spawns - by DaniceMcHarley - 06.06.2013, 12:02
Re: Different spawns - by jordy.kiesebrink - 06.06.2013, 12:04

Forum Jump:


Users browsing this thread: 2 Guest(s)