How To Make Player Spawn In Custom Loc.
#3

pawn Код:
public OnPlayerSpawn(playerid)
{
     new randomspawn = random( number of your spawns );
     switch ( randomspawn )
     {
          case 1 : SetPlayerPos( playerid , x , y , z ) ; // Random Spawn 1
          case 2 : SetPlayerPos( playerid , x , y , z ) ; // Random Spawn 2
          // add more if you want
     }
     return 1;
}
or just follow the samp wiki one

https://sampwiki.blast.hk/wiki/Random
Reply


Messages In This Thread
How To Make Player Spawn In Custom Loc. - by 15outland - 24.10.2011, 02:45
Re: How To Make Player Spawn In Custom Loc. - by StuffBoy - 24.10.2011, 03:14
Re: How To Make Player Spawn In Custom Loc. - by Kitten - 24.10.2011, 03:34

Forum Jump:


Users browsing this thread: 1 Guest(s)