Finding the spawn place in the pawno.
#1

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

Spawnlocations are usually defined in the AddPlayerClass-functions. (You can find them at OnGameModeInit).
Reply
#3

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

I did the /save thingy but I still did not find it.
Reply
#5

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

I actually did it, thanks for everyone who tried to help. <3
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)