SA-MP Forums Archive
[Help] Skipping spawn completely - 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: [Help] Skipping spawn completely (/showthread.php?tid=590144)



[Help] Skipping spawn completely - BlueBaron - 26.09.2015

So before I continue with my issue, I would like mention that I did indeed search around the forums for this kind of topic about skipping class selection but so far none match what I'm looking for. Read on to see the issue:

So basically I started working on a gamemode, and frankly I finished the more difficult parts and I'm stuck at the most easiest one. So in my gamemode, I did use the spectating trick to skip the class selection so the player logs in. I use various textdraws to manage the spawn process and it works until someone dies. When they die, they get the << >> Spawn buttons. How do I skip this process completely?

It may be due to the fact that I spawn players using SetPlayerPos and don't use SetSpawnInfo or SpawnPlayer anywhere? I would be glad if someone explained a way to accomplish what I'm trying to. Thanks in advance.


Re: [Help] Skipping spawn completely - Sellize - 26.09.2015

I once faced the same problem as you are and I used the Disable Class Selection include by Emmet_
Link to said include.


Re: [Help] Skipping spawn completely - Aly - 26.09.2015

I did it like this
PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    
TogglePlayerSpectating(playerid,0); SpawnPlayer(playerid);
    return 
1;