14.02.2011, 09:18
Rebel son that is horrible code try this and i would also go
btw your facing angles need to be floats not intgers that is the mis match
pawn Код:
#define MAX_RSPAWNS 3
new Float:RandomSpawn[MAX_RSPAWNS][4] = {
{419.800018,2531.705322,16.157726,180.0},
{2041.805,-3113.831,7.442,180.0},
{1319.23620600,1254.57458500,10.37386700,0.0}
};
pawn Код:
public OnPlayerSpawn(playerid)
{
new rands = random(MAX_RSPAWNS);
SetPlayerPos(playerid, RandomSpawn[rands][0], RandomSpawn[rands][1], RandomSpawn[rands][2]);
SetPlayerFacingAngle(playerid, RandomSpawn[rands][3]);
return 1;
}