SetPlayerPos on Register
#1

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

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.
Reply
#3

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

Show us your registration code.
Reply
#5

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

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

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
}
Reply
#8

Ok thankyou
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)