Raised This Month: $ Target: $400
 0% 

PreThink BUG!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-08-2012 , 16:07   Re: PreThink BUG!
Reply With Quote #5

This will keep setting tasks for the 6 second interval, and will only chat one time per press\hold-down.
PHP Code:
public fw_CmdStartid uc_handle seed )
{
    if ( 
cs_get_user_teamid ) == CS_TEAM_T )
        return 
PLUGIN_CONTINUE;
        
    static 
iButtons iOldButtons;
    
    
iButtons get_ucuc_handle UC_Buttons );
    
    if ( 
iButtons IN_ATTACK2 )
    {
        
iOldButtons pevid pev_oldbuttons );
        
        if ( ( 
KitMedico[id] < ) && !( iOldButtons IN_ATTACK2 ) )
        {
            
ColorChat(id"^x04[Nitro-Team.com]^x01 Ja usou o seu^x03 KitMedico^x01, espere ate receber novamente.");
            return 
PLUGIN_CONTINUE;
        }
        
        
KitMedico[id]--;
        
set_task(6.0"UsarKitMedico"id);
        
Fazer_BarraTempo(id6);
    }
    
    return 
PLUGIN_CONTINUE;

__________________

Last edited by Bugsy; 07-08-2012 at 16:08.
Bugsy 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:14.


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