Finding the spawn place in the pawno. -
PrinceOfPersia - 26.01.2015
So yea guys, I am looking for the spawn place but I can not find it, I searched in OnPlayerSpawn and still did not find it.
Can someone help me finding it? I want to replace it actually with another place.
Thanks.
Re: Finding the spawn place in the pawno. -
Schneider - 26.01.2015
Spawnlocations are usually defined in the AddPlayerClass-functions. (You can find them at OnGameModeInit).
Re: Finding the spawn place in the pawno. -
RayC - 26.01.2015
Or search for SetPlayerPos.
You can try to log in game, and when you spawn at the spawnpoint, type /save, then take those cords from your savedpositions.txt and try to find it in the script
Re: Finding the spawn place in the pawno. -
PrinceOfPersia - 26.01.2015
I did the /save thingy but I still did not find it.
Re: Finding the spawn place in the pawno. -
andrewgrob - 26.01.2015
go to C:\Documents and Settings\yourname\My Documents\GTA San Andreas User Files\SAMP
inside you will find savedpositions text document
if u did /save here
u have to do /save here ...... not just /save you need to name it
inside the savedpositions do u will see this .. i have just done it for you
AddPlayerClass(0,-66.1013,-430.5003,479.0896,256.5346,0,0,0,0,0,0); // here
now i dont know what you are trying to do but if you want to go to that position, do this
on cmd text ... create a goto/teleport cmd , take the x,y,z from the first 3 cords.. like above
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/go1", cmdtext, true, 3) == 0)
{
SetPlayerPos(playerid, -66.1013,-430.5003,479.0896);
return 1;
}
return 0;
}
hope this helps.. it will work if you do it
Re: Finding the spawn place in the pawno. -
PrinceOfPersia - 27.01.2015
I actually did it, thanks for everyone who tried to help. <3