OnPlayerRequestClass is called every time you die - 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: OnPlayerRequestClass is called every time you die (
/showthread.php?tid=504889)
OnPlayerRequestClass is called every time you die -
LocMax - 06.04.2014
So, whenever you die you get forced to Class selection, anyone knows why and how to fix it?
I use 'ForcePlayerClassSelection' only in one command, and even if I don't use it, I still get forced to class selection after death.
Re: OnPlayerRequestClass is called every time you die -
VishvaJeet - 06.04.2014
I think you have used this function "ForcePlayerClassSelection" OnplayerDeath/OnPlayerSpawn
Re: OnPlayerRequestClass is called every time you die -
LocMax - 06.04.2014
Quote:
Originally Posted by VishvaJeet
I think you have used this function "ForcePlayerClassSelection" OnplayerDeath/OnPlayerSpawn
|
I didn't. I searched, it's only used in that one command.
Re: OnPlayerRequestClass is called every time you die -
VishvaJeet - 06.04.2014
https://sampwiki.blast.hk/wiki/ForceClassSelection
Re: OnPlayerRequestClass is called every time you die -
LocMax - 06.04.2014
Would that mean that TogglePlayerSpectating could cause it? I use it.