20.01.2012, 18:24
Quote:
Change
pawn Код:
pawn Код:
|
Maybe this would work better;
pawn Код:
new Float:HydraSpawns[10][4] = {
{307.7739,1805.6658,18.5583,2},
{309.0186,2054.4512,18.5585,179},
//The rest of them
}
public OnPlayerSpawn(playerid)
{
if(IsInVDM[playerid] == 1)
{
new rand = random(sizeof(HydraSpawns));
SetPlayerPos(playerid, HydraSpawns[rand][0], HydraSpawns[rand][1], HydraSpawns[rand][2]);
SetPlayerFacingAngle(playerid, HydraSpawns[rand][3]);
SetCameraBehindPlayer(playerid);
}
}