Help needed - : -
#1

pawn Код:
else if(gTeam[playerid] >= 9)
    {
        TogglePlayerControllable(playerid,0);
        new Random = random(sizeof(RandomSpawns));
        SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
        SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
        SetCameraBehindPlayer(playerid);
    }
The above code is forcing the civilians to spawn randomly (Coords are given on a
pawn Код:
new
but the problem is that they spawn in LV in a 24/7 store . Why ?
Reply
#2

show me the randomspawns float.
Reply
#3

pawn Код:
new Float:RandomSpawns[][] =
{

{-2638.4055,229.7158,4.3281,109.5973},
{-2500.0615,389.3120,27.7656,48.3531},
{-2124.8713,649.1783,52.3704,83.0798},
{-2243.8044,943.8950,66.6484,88.6631},
{-2243.4663,753.3155,49.4393,86.9318},
{-2442.1355,746.6382,35.0156,176.9609},
{-1984.5894,138.2576,27.6875,90.5403}

};
All of them are in SF
Reply
#4

bump
Reply
#5

Where did you place it? Is it under OnPlayerSpawn callback? And if it is, make sure that after setting the position, it doesn't set another position at the bottom of the callback.
Reply
#6

yes under onplayerspawn callback and that function is at the bottom .
..
Reply
#7

no-one is helping tho...
Reply
#8

Are you setting the team correctly ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)