Raised This Month: $ Target: $400
 0% 

Awp block every round help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Maloonka
Junior Member
Join Date: Jun 2009
Old 06-26-2009 , 19:27   Awp block every round help
Reply With Quote #1

my hns awp block only works half a round if anyone knows how to fix this pm me so i can send my script and tell me what my problem is
Maloonka is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 06-26-2009 , 19:30   Re: Awp block every round help
Reply With Quote #2

Why don't you post the code here so anyone who might know to solve the problem to help you?
__________________

anakin_cstrike is offline
Maloonka
Junior Member
Join Date: Jun 2009
Old 06-26-2009 , 19:31   Re: Awp block every round help
Reply With Quote #3

can you help me?
Maloonka is offline
Jaden
Member
Join Date: Jun 2009
Old 06-26-2009 , 19:49   Re: Awp block every round help
Reply With Quote #4

I can.
__________________
`Jaden.
Jaden is offline
Maloonka
Junior Member
Join Date: Jun 2009
Old 06-26-2009 , 19:59   Re: Awp block every round help
Reply With Quote #5

no you cant, can anyone help?
Maloonka is offline
Maloonka
Junior Member
Join Date: Jun 2009
Old 06-26-2009 , 20:01   Re: Awp block every round help
Reply With Quote #6

actionAwp(id)
{
if (is_user_alive(id) && !AwpUsed[id] && get_user_team(id) == 1)
{
give_item(id, "weapon_awp");
cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_awp", id), 1);
AwpUsed[id]++;
new name[33];
get_user_name(id, name, 32);
set_hudmessage(255, 255, 255, -1.0, -1.0, 0, 6.0, 4.0);
show_hudmessage(0, "Watch out! %s has an awp with 1 bullet!", name);
}
}
whats my problem here, how do i make so i can use this block once every round?
Maloonka is offline
biscuit628
Senior Member
Join Date: Jun 2007
Location: 香港HongKong
Old 06-26-2009 , 20:14   Re: Awp block every round help
Reply With Quote #7

post the full code
__________________
My Plugins

C4man with fun

Sniper Skill bonus
-------------------------
Sorry for my poor English!
biscuit628 is offline
cikjam
Senior Member
Join Date: Feb 2009
Location: Australia
Old 06-26-2009 , 21:35   Re: Awp block every round help
Reply With Quote #8

This one has a cooldown, so dunno.
Code:
actionAwp(id, OverrideTimer)
{
    //get game time
    new Float:fTime = halflife_time();
    
    //make sure player is alive
    if (fTime >= gfAwpNextUse[id] || OverrideTimer)
    {
        if ( get_user_team ( id ) == 1 )
        {
        cs_set_weapon_ammo(give_item(id, "weapon_awp"), 1);
        }
    
        //set the time when the player can use the awp again
        gfAwpNextUse[id] = fTime + get_cvar_float("bm_awpcooldown");
        
        //setup hud message to show information
        set_hudmessage(255, 255, 0, -1.0, 0.35, 0, 6.0, 10.0, 1.0, 1.0);
        
        //Show Message
        new szPlayerName[32];
        get_user_name(id, szPlayerName, 32);
            
        if ( get_user_team ( id ) == 1 )
        {
            show_hudmessage(0, "BEWARE! %s has an AWP with one bullet", szPlayerName);
        }
    }
    else
    {
        set_hudmessage(gHudRed, gHudGreen, gHudBlue, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel);
        show_hudmessage(id, "Wait Time: One Round", gfAwpNextUse[id] - fTime);
    }
}
cikjam is offline
malec321
Senior Member
Join Date: May 2009
Location: Los Angeles
Old 06-27-2009 , 05:07   Re: Awp block every round help
Reply With Quote #9

Code:
register_cvar("bm_frostcooldown", "999999999.0");        //someone might have been invincible when it was used
    register_cvar("bm_flashcooldown", "999999999.0");        //someone might have been invincible when it was used
    register_cvar("bm_moneycooldown", "999999999.0");        //someone might have been invincible when it was used
    register_cvar("bm_deaglecooldown", "999999999.0");        //someone might have been invincible when it was used
    register_cvar("bm_awpcooldown", "999999999.0");   
    register_cvar("bm_gravitytime", "20.0");        //how long the player has boots of speed
    register_cvar("bm_gravitycooldown", "60.0");    //time before boots of speed can be used again
    register_cvar("bm_blindtime", "10.0");        //how long the player has boots of speed
You got to set the awpcooldown to 99999999.0

Use my awp code =)

Code:
actionAwp(id, OverrideTimer)
{
    //get game time
    new Float:fTime = halflife_time();

    //make sure player is alive
    if (fTime >= gfAwpNextUse[id] || OverrideTimer)
    {
        if ( get_user_team ( id ) == 1 )
        {
        cs_set_weapon_ammo(give_item(id, "weapon_awp"), 1);
        }

        //set the time when the player can use the nuke again (someone might have been invincible)
        gfAwpNextUse[id] = fTime + get_cvar_float("bm_awpcooldown");

        //setup hud message to show who nuked what team
        set_hudmessage(255, 255, 0, -1.0, 0.35, 0, 6.0, 10.0, 1.0, 1.0);

        //Show Message
        new szPlayerName[32];
        get_user_name(id, szPlayerName, 32);

        if ( get_user_team ( id ) == 1 )
        {
            show_hudmessage(0, "BEWARE! %s has an AWP with one bullet", szPlayerName);
        }
    }
    else
    {
        set_hudmessage(gHudRed, gHudGreen, gHudBlue, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel);
        show_hudmessage(id, "Wait Time: One Round", gfAwpNextUse[id] - fTime);
    }
}
This one sets it so you get a message telling you to wait one round for the next use for AWP
malec321 is offline
Reply


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 15:25.


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