SA-MP Forums Archive
How to Change Spawn Point when Login or Register - 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 Point when Login or Register (/showthread.php?tid=491627)



How to Change Spawn Point when Login or Register - gonzalo12 - 31.01.2014

Aigh, the Title says all so, how to change that, its on the GAMEMODE? or in other folder.. i want the line, to put the a new spawn for my server..


Thank you!


Re: How to Change Spawn Point when Login or Register - Smileys - 31.01.2014

OnPlayerRequestClass, change those coordinates to yours.

also do

SetPlayerPos( playerid, yourxcoord, yourycoord, yourzcoord ); at onplayerspawn.


AW: How to Change Spawn Point when Login or Register - ReD_HunTeR - 31.01.2014

there is something on In .pwn file:-

OnDialogResponse
{
if(dialogid == DIALOG_LOGIN)
{
if(success)
{
SetPlayerPos(playerid, x, y, z);
}
}
return 1;
}


Re: How to Change Spawn Point when Login or Register - Beckett - 31.01.2014

OnDialogResponse when player's Login/Register dialog is success then spawn him, simple as that.

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