24.10.2011, 03:34
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;
}
https://sampwiki.blast.hk/wiki/Random