Raised This Month: $ Target: $400
 0% 

[DONE]Code doesn't work correctly...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Unkolix
Veteran Member
Join Date: Sep 2012
Old 02-07-2013 , 10:41   [DONE]Code doesn't work correctly...
Reply With Quote #1

I have this code:

PHP Code:
new round
new VIPMenuRound
<...>
    
VIPMenuRound register_cvar("amx_vipmenu_round""2")
    
register_logevent("LogEvent_RoundStart"2"1=Round_Start" );
    
register_event("TextMsg","Event_RoundRestart","a","2&#Game_w")
<...>
public 
LogEvent_RoundStart()
{
    
CurrentRound++;
}

public 
Event_RoundRestart()
{
    
CurrentRound=0;
}

public 
cmdvipmenu(id
{
    
round get_pcvar_num (VIPMenuRound)
    if( 
CurrentRound >= round )
    {
        
Showrod(id)
    }

It shouldn't let players use vipmenu until certain round, set by cvar, but it lets use it at first round...

Last edited by Unkolix; 02-08-2013 at 08:26.
Unkolix 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 20:35.


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