SA-MP Forums Archive
How to change spawn place - 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 change spawn place (/showthread.php?tid=371336)



How to change spawn place - Starky Yakavetta - 23.08.2012

Can somebody explain me how to change spawn when player registers...


Re: How to change spawn place - Akira297 - 23.08.2012

'OnPlayerSpawn'

Код:
SetPlayerPos(playerid, -x,y,z);



Re: How to change spawn place - clarencecuzz - 23.08.2012

You would need something resembling this:
pawn Код:
public OnPlayerSpawn(playerid)
{
    if(Registered[playerid] == 1)
    {
        SetPlayerPos(playerid, X, Y, Z);
    }
    return 1;
}
http://www.wiki.sa-mp.com/wiki/AddPlayerClass is another way you can change spawn points, only regarding that you don't have any positions under OnPlayerSpawn.


Re: How to change spawn place - Starky Yakavetta - 23.08.2012

tnx a lot