Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Code Not Working - Restriction by time
#1
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
Reply

#2
way i do it is...




on player spawned
variable = yes;
self thread domenu();


domenu();
wait 12;
variable = no;



so basically 12 seconds after a player fully loads into the game, the menu is removed.. until next spawn / round that is.


read what you pasted, it hurt my brain.. and even i write some really retarded shit.
Reply

#3
(08-02-2011, 23:12)koil Wrote: way i do it is...




on player spawned
variable = yes;
self thread domenu();


domenu();
wait 12;
variable = no;



so basically 12 seconds after a player fully loads into the game, the menu is removed.. until next spawn / round that is.


read what you pasted, it hurt my brain.. and even i write some really retarded shit.
I think im going to make an easy menu, quickmenu is giving me several problems to control everything. Does someone knows what's src_disable_cac for?

Reply

#4
src_disable_cac disables custom class selection or enables it pending on 0 or 1
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Plugins are not working clemi555 7 4,835 11-03-2013, 10:55
Last Post: d0h!
  [Release] Working Aimbot The Clay Man 17 20,403 10-21-2013, 15:10
Last Post: zurasaur
  Help Code color crosshairs koren30 3 4,019 10-02-2013, 19:26
Last Post: koren30
  Help need help?how to make plugins code hXnarutoXone 12 8,553 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 3,315 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 4,137 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 9,689 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 5,640 07-28-2013, 01:52
Last Post: First_Semyon
Information [Request] Need Time Plugin and Server Msg Plugin sylvester123 14 9,375 07-26-2013, 08:07
Last Post: sylvester123
  4D1 Extend Feeding Time Tacticalicious 1 2,592 07-02-2013, 20:59
Last Post: surtek

Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.