Saving Coordinates into the Script
#1

Hello guys,I wanted to change the place of player spawning when he got arrested to make it inside a jail cell,so i removed the current coordinates in
Code:
new Float:PrisonCells[][0] =
and applied the new coordinates,but now i dont respawn in the place when i jail myself to the place which i saved the new coordinates,

Code:
AddPlayerClass(3,1553.2662,-1653.8236,1718.9019,265.1515,0,0,0,0,0,0); // 
From this which i /save in-game to get the coordinates,i've choose the first three Coordinates 1553.2662,-1653.8236,1718.9019 and compiled the pawno,but didnt work.Then i've tried the same thign with the last three coordinates -1653.8236,1718.9019,265.1515,It didn't work as well.I got no idea what should i do to make someone spawn in the correct place i want to make.The above coordinates which are in red color are the real codes which i need to apply to make players spawn when getting arrest.Someone please help me with this.
Reply
#2

AddPlayerClass is built up like so:

AddPlayerClass(3,1553.2662,-1653.8236,1718.9019,265.1515,0,0,0,0,0,0); //

3 - skin id
1553.2662 - X coordinate (left > right on a top view of the map)
-1653.8236 - Y coordinate (up > down on a top view of the map)
1718.9019 - Z coordinate (height - so.. if you jump it is 1 Z)

Then you get the angle (265.1515) and the weapon slots and ammo (max 3 weapons + ammo)

So, the first three coordinates are the coordinates you need.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)