25.11.2010, 13:15
No, easily can be done like this.
Put this in your gamemode in the right callbacks.
pawn Код:
#define MAX_SPAWN_MAPS (3)
forward ChangeSpawn();
new SpawnTimer,
Spawn
;
public OnGameModeInit() SpawnTimer = SetTImer("ChangeSpawn",6*60*1000 );
public ChangeSpawn() Spawn = random( MAX_SPAWN_MAPS );
public OnPlayerSpawn( playerid )
{
if ( Spawn == 0 )
{
SetPlayerPos(...);
//Code..Code..Code...
}
if ( Spawn == 1 )
{
SetPlayerPos(...);
//Code..Code..Code...
}
if ( Spawn == 2 )
{
SetPlayerPos(...);
//Code..Code..Code...
}
if ( Spawn == 3 )
{
SetPlayerPos(...);
//Code..Code..Code...
}
return 1;
}
Put this in your gamemode in the right callbacks.