SA-MP Forums Archive
Spawn at previous location problem - 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: Spawn at previous location problem (/showthread.php?tid=409455)



Spawn at previous location problem - Sellize - 21.01.2013

Hey guys i got my position saving etc. all setup but how do i make it so that whenever the player joins, it will set his pos to the saved coords? (No class selection, standard skinid: 1) script: http://pastebin.com/VD2TKhni


Re: Spawn at previous location problem - Jeffry - 21.01.2013

Add:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SpawnPlayer(playerid);
    return 1;
}
//I don't know if this is being called when entering the class selection...worth a try anyway. ^^
If this doesn't work, try to use SpawnPlayer at OnPlayerConnect, and if this also does not work, set a short timer at OnPlayerConnect which will then call SpawnPlayer.