Changing filterscripts
#2

No, easily can be done like this.
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.
Reply


Messages In This Thread
Changing filterscripts - by Baboon - 25.11.2010, 12:46
Re: Changing filterscripts - by Zh3r0 - 25.11.2010, 13:15
Re: Changing filterscripts - by Slice - 25.11.2010, 13:23
Re: Changing filterscripts - by Baboon - 25.11.2010, 13:30
Re: Changing filterscripts - by Zh3r0 - 25.11.2010, 14:15
Re: Changing filterscripts - by Baboon - 25.11.2010, 14:20
Re: Changing filterscripts - by Slice - 25.11.2010, 14:25
Re: Changing filterscripts - by Baboon - 25.11.2010, 14:42
Re: Changing filterscripts - by Zh3r0 - 25.11.2010, 14:45
AW: Changing filterscripts - by Cank - 25.11.2010, 15:12

Forum Jump:


Users browsing this thread: 2 Guest(s)