SA-MP Forums Archive
SetPlayerPos on 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SetPlayerPos on Register (/showthread.php?tid=252475)



SetPlayerPos on Register - dillo1000 - 01.05.2011

How do I make players spawn in a certain place after they have registered?


Re: SetPlayerPos on Register - Tommy_Mandaz - 01.05.2011

I guess with onplayerspawn? It really depends on your registration system, does it spawn them after they finish or does it start one of those tutorial things? If it just spawns them, then im guessing you should look under onplayerspawn.


Re: SetPlayerPos on Register - dillo1000 - 01.05.2011

What happens is they register then they spawn and they end up falling under the map? and spawning in blueberry or something


Re: SetPlayerPos on Register - austin070 - 01.05.2011

Show us your registration code.


AW: SetPlayerPos on Register - [DR]Reaper[GEARS] - 01.05.2011

Just do in OnPlayerSpawn a SetPlayerPos(playerid, your coordinates its verry simple : D


Re: SetPlayerPos on Register - dillo1000 - 01.05.2011

@Reaper I dont want them to spawn there if they are already registered


Re: SetPlayerPos on Register - Tommy_Mandaz - 01.05.2011

okay umm after they register make a variable and make it value 1 something like:
pawn Код:
justregistered[playerid] = 1;
Then in onplayerspawn do this:
pawn Код:
if(justregistered[playerid] == 1)
{
    SetPlayerPos(playerid, x, y, z);
    justregistered[playerid] = 0;
}
else
{
    //Your Other Code Here
}



Re: SetPlayerPos on Register - dillo1000 - 01.05.2011

Ok thankyou