Raised This Month: $ Target: $400
 0% 

int not reseting by rounds end


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-16-2009 , 04:39   Re: int not reseting by rounds end
Reply With Quote #3

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

new smartawp_enable
new bool:awpTry33 ];

public 
plugin_init( ) {
    
register_plugin"smartAwp""1.0""DarkD" )
    
smartawp_enable register_cvar"smartawp_enable""1" )
    
register_clcmd"say /awp""smartAwp" );
    
register_event"HLTV""event_new_round""a""1=0""2=0" )  
    
}

public 
event_new_round( ) {
    
arraysetawpTryfalse32 );
}

public 
smartAwpid ) {
    if ( !
is_user_aliveid ) ) return PLUGIN_HANDLED;
    
    if( 
get_pcvar_numsmartawp_enable ) ) {
        if( !
awpTryid ] ) {
            if( 
random_num0) == )
                
give_itemid"weapon_awp" );
            else
                
client_printidprint_chat"Sorry, no AWP for you this round." );
            
            
awpTryid ] = true;
        } else
            
client_printidprint_chat"You already tryed to get a awp this round!" );
    } else
        
client_printidprint_chat"This plugin is disabled." );
    
    return 
PLUGIN_CONTINUE;        

__________________
xPaw 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 15:12.


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