how to set respawn area
#1

I am working in my server and want to know how to set place where the new player will respawn there
Reply
#2

Go to your GTA folder, open debug.exe, launch debug,then go to your desired area and type /save.
After that exit then go to your documents/gta san andreas user files/samp you will find a text file named saved positions, open it and you will find the coordinates, copy that line and add it under OnGameModeInit.
Reply
#3

Can you give me Ss when u are in pawn please
Reply
#4

Use samp_debug
Reply
#5

I used it and got the code but how to put it in pawn
Reply
#6

public OnPlayerSpawn
https://sampwiki.blast.hk/wiki/SetPlayerPos
Example :
pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerPos(playerid,x,y,z);//change x,y ,z to your floats you got from /save logs
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)