21.09.2014, 12:28
For random spawns:
pawn Код:
new
Float:gSpawnPoints[][4] =
{
{0.0, 0.0, 0.0, 180.0},
{11.0, 12.0, 13.0, 17.0}
};
public OnPlayerSpawn(playerid)
{
new
randSpawn = random(sizeof(gSpawnPoints));
SetPlayerPos(playerid, gSpawnPoints[randSpawn][0], gSpawnPoints[randSpawn][1], gSpawnPoints[randSpawn][2]);
SetPlayerFacingAngle(playerid, gSpawnPoints[randSpawn][3]);
return 1;
}