All pastes #535140 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-06-04 00:36 UTC
rendered paste body
//Put these above Main()

forward SetPlayerRandomSpawn(playerid);

new Float:gRandomPlayerSpawns[9][3] = {
{000.0000,0000.0000,00.0000};
{000.0000,0000.0000,00.0000};
{000.0000,0000.0000,00.0000};
{000.0000,0000.0000,00.0000};
{000.0000,0000.0000,00.0000};
{000.0000,0000.0000,00.0000};
{000.0000,0000.0000,00.0000};
{000.0000,0000.0000,00.0000};
{000.0000,0000.0000,00.0000}
};


// Put these Under OnPlayerSpawn

 new rand = random(sizeof(gRandomPlayerSpawns));
 SetPlayerPos(playerid, gRandomPlayerSpawns[rand][0], gRandomPlayerSpawns[rand][1], gRandomPlayerSpawns[rand][2]);