Little Help
#3

Rebel son that is horrible code try this and i would also go
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;
}
btw your facing angles need to be floats not intgers that is the mis match
Reply


Messages In This Thread
Little Help - by Libra_PL - 14.02.2011, 05:36
Re: Little Help - by -Rebel Son- - 14.02.2011, 05:42
Re: Little Help - by (SF)Noobanatior - 14.02.2011, 09:18

Forum Jump:


Users browsing this thread: 1 Guest(s)