Raised This Month: $ Target: $400
 0% 

Need some help.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lolzin123
Member
Join Date: Apr 2009
Old 06-07-2009 , 13:19   Need some help.
Reply With Quote #1

I'm trying to make a block for bcm4.
This block provides an AWP per round.
But the code is wrong, can someone fix it? THX

The Code:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <engine>
#include <cstrike>
#include <fun>

new bool:g_bawp[33];

case 
OBJECT_AWPBLOCK:
        {
        
                new 
Awp user_has_weapon(plrCSW_AWP1);
                if(
g_bawp[plr] )
                if( 
get_user_team(plr""0) == 1)
                if(!
Awp)
                {
            
                    
give_item(plr"weapon_awp");
                    
cs_set_weapon_ammo(find_ent_by_owner(1"weapon_awp"plr), 1);
                    
cs_set_user_bpammo(1CSW_AWP0);
                    
                    
set_hudmessage(255000.050.6502.02.00.50.1, -1);
                    
show_hudmessage (plr"YOU WON AN AWP!");
                    
                }
                if( 
get_user_team(plr""0) == 1)
                if(
Awp)
                {
                    
set_hudmessage(255000.050.6502.02.00.50.1, -1);
                    
show_hudmessage (plr"JUST 1 AWP PER ROUND!");
                }
                
g_bawp[plr] = true;
        } 
lolzin123 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 13:50.


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