30.06.2015, 09:30
(
Последний раз редактировалось iOxide; 30.06.2015 в 11:39.
)
I am using a dialog for class selection menu in OnPlayerRequestClass, everything works fine but i got one issue.
If a player presses F4 only ONCE and after they die, it sends them to class selection screen and they can choose a class and spawn, OK. But, whenever they presses F4 twice, thrice or even more and it sends them to class selection the next death, players aren't able to spawn after selecting the class. It keeps popping up the class selection dialog more and more instead of spawning them. I've even tried setting some vars to check if the player is switching class or not, then show the dialog etc. but it just don't work. Any ideas?
If a player presses F4 only ONCE and after they die, it sends them to class selection screen and they can choose a class and spawn, OK. But, whenever they presses F4 twice, thrice or even more and it sends them to class selection the next death, players aren't able to spawn after selecting the class. It keeps popping up the class selection dialog more and more instead of spawning them. I've even tried setting some vars to check if the player is switching class or not, then show the dialog etc. but it just don't work. Any ideas?


