Raised This Month: $ Target: $400
 0% 

HNS Vipmenu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xfirestorm
Member
Join Date: Mar 2012
Old 03-01-2013 , 07:26   Re: HNS Vipmenu
Reply With Quote #10

Do you want to limit the menu to only display once, or be able to use the options in the menu only once?
If you want it only to be able to display the menu once, then move AlreadyUsed[id] = true from HandleMenu() to VMENU() inside the IF statement.

Also, add this to plugin_init:
register_event("RoundTime", "new_round", "bc")

and a new function:
PHP Code:
public new_round() {
        if(
floatround(get_cvar_float("mp_roundtime") * 60.0,floatround_floor) != read_data(1)) return
        new 
counter;
        
counter 0;
        while(
counter sizeof(AlreadyUsed)) {
                
AlreadyUsed[counter] = false;
        }

So you'll reset the data of menu already being used that round.
xfirestorm is offline
 



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 21:41.


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