Hey guys,
I tried to do a code to restrict the time when the player can open the quickmenu to choose a class.
I will put here the code: http://pastebin.com/HqS33Y37
The problem is that the "canOpenMenu" is not working properly. I want to control the time at which the player can open the "QuickMenu" to change classes, and at first he keep his class every time he dies another function separately. He can choose to open the submenu by pressing the "usebutton."
I do not know how to monitor when they have been respawned 5 seconds after the variable "self.pers [" menuallow "]" is not put in false so I can open the QuickMenu at any time without restriction, or if you shot or melee .
I hope someone can help me.
A greeting and thank you very much.
Did a new code of the canOpenMenu()
http://pastebin.com/nEtXTKy6
I tried to do a code to restrict the time when the player can open the quickmenu to choose a class.
I will put here the code: http://pastebin.com/HqS33Y37
The problem is that the "canOpenMenu" is not working properly. I want to control the time at which the player can open the "QuickMenu" to change classes, and at first he keep his class every time he dies another function separately. He can choose to open the submenu by pressing the "usebutton."
I do not know how to monitor when they have been respawned 5 seconds after the variable "self.pers [" menuallow "]" is not put in false so I can open the QuickMenu at any time without restriction, or if you shot or melee .
I hope someone can help me.
A greeting and thank you very much.
Did a new code of the canOpenMenu()
http://pastebin.com/nEtXTKy6