Spawn button on player login
#1

How do you get rid of this spawn button when a player logs in:



Instead of having the ability to press the spawn button, I just want them to auto-spawn in
Reply
#2

SetSpawnInfo
SpawnPlayer

Also if you want to hide the <> and spawn button use TogglePlayerSpectating

When he connects set it to 1 and after he logs in put it to 0.
Reply
#3

you cant hide that on OnPlayerRequestClass
the only way is to create your own way.
Reply
#4

Well the SpawnPlayer(playerid); didn't work and auto-spawn the player in-game.
Reply
#5

Quote:
Originally Posted by mrtms
Посмотреть сообщение
Well the SpawnPlayer(playerid); didn't work and auto-spawn the player in-game.
Did you also use SetSpawnInfo ? Because you need to. Don't you want the player to log-in and then to spawn in after he logs in ?
Reply
#6

look even if you force the player to spawn here once he dies he will come back to the class selection and has to chose..
Reply
#7

So park, how would I go on about fixing that so that doesn't happen?
Reply
#8

I just added SetSpawnInfo, and it worked 100%. Someone tried to kill me and it still worked fine. I don't see any problems with it.
Reply
#9

yes, using SetSpawnInfo will avoid it as the spawn properties are set to the player.

But i meant if you use SpawnPlayer under OnPlayerRequestClass the player will have to go back to it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)