SA-MP Forums Archive
How do I find the coordinates for where I want my players to spawn? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How do I find the coordinates for where I want my players to spawn? (/showthread.php?tid=100423)



How do I find the coordinates for where I want my players to spawn? - reashaun14 - 04.10.2009

You see I'm working on a samp server and I'm just now learning the pwn language, and when I was looking through it i found this.

public OnPlayerSpawn(playerid)
{
SetPlayerTime(playerid, h, minuty);
SetPlayerInterior(playerid,0);
ClearAnimations(playerid);
if(ded[playerid]==1)
{
SetPlayerPos(playerid, dedpos[playerid][0], dedpos[playerid][1], dedpos[playerid][2]);
ded[playerid]=0;
}
SetPlayerWorldBounds(playerid, 6666.6666, -6666.6666, 6666.6666, -6666.6666);
DisablePlayerCheckpoint(playerid);
SetTimerEx("PlayerObjectUpdate", 100, 1, "d", playerid);
return 1;
}
And what I wanted to ask is how do i find out the coordinates for where my player is standing?
Because i want to set where my player spawns somewhere else.



Re: How do I find the coordinates for where I want my players to spawn? - vitalij931 - 21.11.2009

Find a line "addplayerclass" and there should whole bunch of numbers (the guy,posX,Y,Z,RX,RY) you need posX,Y,Z hope I helped


Re: How do I find the coordinates for where I want my players to spawn? - ExoSanty - 21.11.2009

go to the place you want ingame en type /save
you can do something like /save somename (this is optional)

if you are on foot it will save AddPlayerClass(skin, coordinates), in a vehicle it will save AddStaticVehicle(vehicleid, coordinates, colors,...)

then open savedpositions.txt in your gta sa folder, there you have your coordinates...