How do I find the coordinates for where I want my players to spawn?
#1

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.
Reply
#2

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
Reply
#3

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...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)