prevent forceclassselection by the f4 button - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: prevent forceclassselection by the f4 button (
/showthread.php?tid=142094)
prevent forceclassselection by the f4 button -
AlbanianGuy - 17.04.2010
how to prevent forceclassselection when u press f4 ? is it possible ?
Re: prevent forceclassselection by the f4 button -
mansonh - 17.04.2010
I don't know of anything specifically.
but you can basically just do your own.
have a pvar like "classselect"
and if they type /classselect or something set that variable
in OnPlayerDeath if that variable is false save their class data.
Then when it calls the forceclassselection, if they don't have "classselect" just spawn them with current class.