falling down
#1

Anybody knows what is the problem? Because when i press ,,spawn'' i spawn in the air....

http://pastebin.com/WQcZE0m3
Reply
#2

You're Z pos from (aka 1001.0391)
pawn Код:
{262.9825,77.4500,1001.0391}, // CHANGE ME
{262.9825,77.4500,1001.0391}, // CHANGE ME
{262.9825,77.4500,1001.0391} // CHANGE ME
Reply
#3

what number i need to put?
Reply
#4

That depends on where you want to spawn. Go to the Jail Place spawns and type /rs (raw save), and then go to Documents > GTA San Andreas User Files > rawpositions.txt and it will tell you there 3 Floats, the x, the y and the z. The first number before the first "," is the X, the second number before the second "," is the Y, the third number, which is the last one, is the z.

Floats are used with full stops, which represent coordinates. So go the Jail Cells and type /rs at each ones, and then put those coordinates with the ones you need to replace on the script where doreto said.
Reply
#5

Change your OnPlayerSpawn code to this

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(InJail[playerid] == 1)
    {
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerInterior(pId, 3);
        SetPlayerToTeamColour(playerid);
        new rand = random(sizeof(JailCellSpawns));
        SetPlayerPos(playerid, JailCellSpawns[rand][0], JailCellSpawns[rand][1], JailCellSpawns[rand][2]);
    }
return 1;
}
sorry for tab size but i'm using tablet
Reply
#6

THANKS
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)