Raised This Month: $ Target: $400
 0% 

Help with an action


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Shadezz
Senior Member
Join Date: Jul 2009
Location: Denmark
Old 11-27-2011 , 15:44   Help with an action
Reply With Quote #1

Hia guys, can someone tell me what i did wrong in this?;
PHP Code:
ActionAWP(ident)
{
    new 
Float:gametime get_gametime();
    if ( !( 
gametime >= g_gselection_next_use[id] ) && ( get_user_team id ) == ) )
    {
        if ( !
g_has_hud_text[id] )
        {
            
set_hudmessage(025500.010.1800.01.00.250.252);
            
show_hudmessage(id"%s %s^nawp Block^nNext Use: 1 round"PLUGIN_PREFIXPLUGIN_VERSION );
        }
        
        return 
PLUGIN_HANDLED;
    }
    
    if(
get_user_team(id) == 2
    {
        if ( !
g_has_hud_text[id] )
        {
            
set_hudmessage(025500.010.1800.01.00.250.252);
            
show_hudmessage(id"%s %s^nawp Block^nOnly Terrorists Can Use This Block"PLUGIN_PREFIXPLUGIN_VERSION );
        }
        
        return 
PLUGIN_HANDLED;
    }
    static 
property[5];
    if(
get_user_team(id) == 1)
    {
        
cs_set_weapon_ammo(give_item(id"weapon_awp"), 1);
        new 
awpname[42];
        
get_user_name(idawpname32);
        
set_hudmessage(255255255, -1.0, -1.006.04.0);
        
show_hudmessage(0"Be careful CTs! %s has a awp!"awpname);
    }
    
g_block_status[id] = true;
    
    
GetProperty(ent2property);
    
    
g_awp_next_use[id] = gametime str_to_float(property);
    
    return 
PLUGIN_HANDLED;

i've got no idea what i did wrong its loading up correctly but its not giving the awp :s its a long time since ive been coding, be nice
__________________

Last edited by Shadezz; 11-28-2011 at 13:01.
Shadezz 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 08:27.


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