falling down - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: falling down (
/showthread.php?tid=459967)
falling down -
SampzzonE - 25.08.2013
Anybody knows what is the problem? Because when i press ,,spawn'' i spawn in the air....
http://pastebin.com/WQcZE0m3
Re: falling down -
doreto - 25.08.2013
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
Re: falling down -
SampzzonE - 25.08.2013
what number i need to put?
Re: falling down -
DanishHaq - 25.08.2013
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.
Re: falling down -
doreto - 25.08.2013
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
Re: falling down -
SampzzonE - 25.08.2013
THANKS