Raised This Month: $ Target: $400
 0% 

Menu Command Scripting


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-02-2011 , 08:13   Re: Menu Command Scripting
Reply With Quote #1

1. You would need to store their selection in a variable and use it to create the action on the new round.

2. MEXIT_ALL MEXIT_NEVER
__________________
fysiks is offline
deadman909
Veteran Member
Join Date: Oct 2008
Old 08-02-2011 , 23:17   Re: Menu Command Scripting
Reply With Quote #2

Quote:
Originally Posted by fysiks View Post
1. You would need to store their selection in a variable and use it to create the action on the new round.

2. MEXIT_ALL MEXIT_NEVER
Hmm I am still learning on how to code. Anybody want to give me an example of how one would do that. With one example is enough I well create all the rest from that one.
__________________

deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-03-2011 , 00:00   Re: Menu Command Scripting
Reply With Quote #3

  • Global array[33]
  • menu_handler: array[id] = key (if they can afford it)
  • hook new round (search for "new round" in the tutorial section, see page 2). Or use spawn if you only spawn on new round (same tutorial as noted for new round).
  • Then do a switch(array[id) there to give the appropriate health if any
__________________
fysiks is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 08-03-2011 , 00:12   Re: Menu Command Scripting
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
  • Global array[33]
  • menu_handler: array[id] = key (if they can afford it)
  • hook new round (search for "new round" in the tutorial section, see page 2). Or use spawn if you only spawn on new round (same tutorial as noted for new round).
  • Then do a switch(array[id) there to give the appropriate health if any
Then set array[id] to no item or 0 or -1 or w/e.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode