All pastes #501380 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-22 00:54 UTC
rendered paste body
#define MAX_CELLS 7

new Float:PlayerCellSpawn[MAX_CELLS][5] = {
{215.5313,109.9000,999.0156,0.0000,10.0},
{219.5279,109.9000,999.0156,0.0000,10.0},
{223.5461,109.9000,999.0156,0.0000,10.0},
{227.4537,109.9000,999.0156,0.0000,10.0},
{198.1000,162.0693,1003.0300,180.0000,3.0},
{193.8782,174.9000,1003.0234,0.0000,3.0},
{198.1000,174.9000,1003.0234,0.0000,3.0}
};

public SetPlayerCellSpawn(playerid)
{
	new rand = random(sizeof(PlayerCellSpawn));
	SetPlayerPos(playerid, PlayerCellSpawn[rand][0], PlayerCellSpawn[rand][1], PlayerCellSpawn[rand][2]);
	SetPlayerFacingAngle(playerid, PlayerCellSpawn[rand][3]);
	SetPlayerInterior(playerid, PlayerCellSpawn[rand][floatround([4])]);
	return 1;
}