Spawn button on player login - 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: Spawn button on player login (
/showthread.php?tid=416310)
Spawn button on player login -
mrtms - 16.02.2013
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
Re: Spawn button on player login -
InfiniTy. - 16.02.2013
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.
Re: Spawn button on player login -
park4bmx - 16.02.2013
you cant hide that on
OnPlayerRequestClass
the only way is to create your own way.
Re: Spawn button on player login -
mrtms - 16.02.2013
Well the SpawnPlayer(playerid); didn't work and auto-spawn the player in-game.
Re: Spawn button on player login -
InfiniTy. - 16.02.2013
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 ?
Re: Spawn button on player login -
park4bmx - 16.02.2013
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..
Re: Spawn button on player login -
mrtms - 16.02.2013
So park, how would I go on about fixing that so that doesn't happen?
Re: Spawn button on player login -
mrtms - 16.02.2013
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.
Re: Spawn button on player login -
park4bmx - 16.02.2013
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.