SA-MP Forums Archive
how to set respawn area - 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)
+--- Thread: how to set respawn area (/showthread.php?tid=483130)



how to set respawn area - IbeatS - 24.12.2013

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


Re: how to set respawn area - Battlezone - 24.12.2013

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.


Re: how to set respawn area - IbeatS - 24.12.2013

Can you give me Ss when u are in pawn please


Re: how to set respawn area - operationroleplay - 24.12.2013

Use samp_debug


Re: how to set respawn area - IbeatS - 25.12.2013

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


Re: how to set respawn area - SilentSoul - 25.12.2013

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;
}