Raised This Month: $ Target: $400
 0% 

Hey i need some help of action codes...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
'-_-'<3zok<3'-_-'
Senior Member
Join Date: Feb 2010
Location: Norway
Old 03-19-2010 , 16:32   Re: Hey i need some help of action codes...
Reply With Quote #4

here you go ^-^
PHP Code:
actionXP(idOverrideTimer)
{
    new 
Float:fTime halflife_time();
    
    if (
fTime >= g_xp_next_use[id] || OverrideTimer)
    {
    if ( 
get_user_team id ) == )
    {
        
hnsxp_add_user_xp(id75);
        
ColorChat(idGREEN"[%s]^x03 You have been given^x04 75 XP^x03!"g_prefix);
    }
    
        
g_xp_next_use[id] = fTime get_cvar_float("bm_xpcooldown");
            
    }
    else
    {
        
set_hudmessage(g_hud_redg_hud_greeng_hud_blueg_text_xg_text_yg_hud_effectsg_hud_fx_timeg_hud_hold_timeg_hud_fade_in_timeg_hud_fade_out_timeg_hud_channel);
        
show_hudmessage(id"[%s]^nWait Time: One Round"g_prefixg_xp_next_use[id] - fTime);
    }
    return 
PLUGIN_HANDLED;

'-_-'<3zok<3'-_-' is offline
Send a message via Skype™ to '-_-'<3zok<3'-_-'
 



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 08:40.


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