Hi I need help with fixing this code :
PHP Code:
actionColt(id, OverrideTimer)
{
new Float:fTime = halflife_time();
if (fTime >= g_colt_next_use[id] || OverrideTimer)
{
if ( get_user_team ( id ) == 1 )
{
cs_set_weapon_ammo( give_item( id, "weapon_m4a1" ), 1 );
cs_set_user_bpammo(1, CSW_M4A1, 0);
}
g_sg_next_use[id] = fTime + get_cvar_float("bm_coltcooldown");
new szPlayerName[32];
get_user_name(id, szPlayerName, 32);
if ( get_user_team ( id ) == 1 )
{
ColorChat(0, GREEN, "[%s]^x03 %s^x01 Has found the^x04 COLT^x01!", g_prefix, szPlayerName);
}
}
else
{
set_hudmessage(g_hud_red, g_hud_green, g_hud_blue, g_text_x, g_text_y, g_hud_effects, g_hud_fx_time, g_hud_hold_time, g_hud_fade_in_time, g_hud_fade_out_time, g_hud_channel);
show_hudmessage(id, "[%s]^nWait Time: One Round", g_prefix, g_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