Raised This Month: $ Target: $400
 0% 

HNS Awp Block


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
zoubiey
Member
Join Date: Jul 2009
Location: Sweden / Piteå
Old 08-02-2009 , 14:59   HNS Awp Block
Reply With Quote #1

Hello, I have some problem with my awp block. It gives me an awp with 3 ammo (as i want) but it gives me 30 bm ammo to and if you step on it again it reload your bp ammo to full. Want to know whats the problem.

EDIT: I also want to know how to change so only CT can have it instead of only T.

Here is the code:
PHP Code:
actionAwp(idbool:OverrideTimer)
{
    switch(
cs_get_user_team(id))
    {
        case 
CS_TEAM_T:
        {
             
//get game time
             
new Float:fTime halflife_time();
 
             
//make sure player is alive
             
if (fTime >= gfAwpNextUse[id] || OverrideTimer)
             {
                  
give_item(id"weapon_awp");
                  
cs_set_weapon_ammo(find_ent_by_owner(1"weapon_awp"id), 3);
                  
cs_set_user_bpammo(1CSW_AWP0);
 
                  
//sets the time when the player can use the awp block again
                  
gfAwpNextUse[id] = fTime get_cvar_float("bm_awpcooldown");
  
                  
//setup hud message
                  
set_hudmessage(2552550, -1.00.3506.010.01.01.0);
  
                  
//Show Message
                  
new szPlayerName[32];
                  
get_user_name(idszPlayerName32);
       
                  
show_hudmessage(0"%s got an Awp with 3 bullets!"szPlayerName);
             }
             else
             {
                  
set_hudmessage(gHudRedgHudGreengHudBluegfTextXgfTextYgHudEffectsgfHudFxTimegfHudHoldTimegfHudFadeInTimegfHudFadeOutTimegHudChannel);
                  
show_hudmessage(id"Awp block next use: Next Round");
             }
        }
        case 
CS_TEAM_CT:
        {
              
set_hudmessage(gHudRedgHudGreengHudBluegfTextXgfTextYgHudEffectsgfHudFxTimegfHudHoldTimegfHudFadeInTimegfHudFadeOutTimegHudChannel);
              
show_hudmessage(id"You're a CT, you cant get an AWP!");
        }
        case 
CS_TEAM_SPECTATOR:
        {
              
set_hudmessage(gHudRedgHudGreengHudBluegfTextXgfTextYgHudEffectsgfHudFxTimegfHudHoldTimegfHudFadeInTimegfHudFadeOutTimegHudChannel);
              
show_hudmessage(id"You're a Spectator, you cant get an AWP!");
        }
    }

I hope any1 could help me
zoubiey 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 18:27.


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