How to Save Spawn - 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 Save Spawn (
/showthread.php?tid=382804)
How to Save Spawn -
DerickClark - 05.10.2012
how to Save a Spawn like u join a sever u pick a class and u spawn
i need help on spawning
Re: How to Save Spawn -
Socan - 05.10.2012
Go in game and do /save. Then go to your searchbar in the startup menu and type 'savedpositions' then click that and you have your position.
Re: How to Save Spawn -
0utLaW_ - 05.10.2012
Open sa-mp debug.
Goto any place you want to and type /save
It will save the co-ordinates to a folder in Mydocuments/GTA-SAUserFiles/SA-MP
Get the co-ordinates
Search "OnPlayerSpawn"
Add "SetPlayerPos - co-ordinates" or check any gamemode it is like
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
printf("OnPlayerRequestClass(%d, %d)", playerid, classid);
// Random
// TextDrawHideForPlayer(playerid,login);
SetPlayerPos(playerid, 2000.3337, 1586.2427, 17.6131);
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 47.6315);
SetPlayerCameraPos(playerid, 1996.8337, 1590.2427, 19.1131);
SetPlayerCameraLookAt(playerid, 2000.3337, 1586.2427, 17.6131);
return 1;
}