Raised This Month: $ Target: $400
 0% 

Blockmaker help with codes


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
fredde123321
Junior Member
Join Date: Mar 2010
Old 03-20-2010 , 09:43   Blockmaker help with codes
Reply With Quote #1

Hi I need help with fixing this code :
PHP Code:
actionColt(idOverrideTimer)
{
    new 
Float:fTime halflife_time();
    
    if (
fTime >= g_colt_next_use[id] || OverrideTimer)
    {
        if ( 
get_user_team id ) == )
        {
            
cs_set_weapon_ammogive_itemid"weapon_m4a1" ), );
            
cs_set_user_bpammo(1CSW_M4A10);
        }
    
        
g_sg_next_use[id] = fTime get_cvar_float("bm_coltcooldown");
        
        new 
szPlayerName[32];
        
get_user_name(idszPlayerName32);
            
        if ( 
get_user_team id ) == )
        {
            
ColorChat(0GREEN"[%s]^x03 %s^x01 Has found the^x04 COLT^x01!"g_prefixszPlayerName);
        }
    }
    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_sg_next_use[id] - fTime);
    }

When you walk on it you get it but its not a cooldown and you get 90 in ammopack.

And then I need "NoFallDamageBhop"
PHP Code:
actionNoFallDamageBhop(id)
{
    
g_no_fall_damage[id] = true;

Here its just like a normal bhop block.

If anyone could fix the code or correct me I would be thankfull
fredde123321 is offline
 


Thread Tools
Display Modes

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:42.


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