Raised This Month: $ Target: $400
 0% 

Help with hns weapon blocks


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Grk
Junior Member
Join Date: Jun 2009
Old 07-01-2009 , 04:36   Help with hns weapon blocks
Reply With Quote #1

My weapon blocks work for the first round but the next round if you didnt die you cant get it again, how do i fix this,

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);
}
}
Grk 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:32.


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