Class Selection Bug - 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: Class Selection Bug (
/showthread.php?tid=531509)
Class Selection Bug -
TheSnicky - 13.08.2014
So I added a Death System in my Gamemode with /acceptdeath, no errors or anything else. But the problem is when I kill myself, It shows me a class selection with the CJ skin and you can't change it. When I click "Spawn" than It puts me in my last position and let's me type /acceptdeath. How do I disable the class selection after death in Gamemode ?
Re: Class Selection Bug -
Faisal_khan - 13.08.2014
You will have to make a fake death. So under
OnPlayerDeath(), set the players health to 101 and then give him the message for acceptdeath command. But you will have to use a variable so that the player after using the acceptdeath command doesn't again set back his health to 101.