Raised This Month: $ Target: $400
 0% 

User status icon don't disappear when weapon isn't he grenade


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
m0skVi4a
Senior Member
Join Date: May 2011
Location: Rousse, Bulgaria
Old 09-13-2011 , 14:26   User status icon don't disappear when weapon isn't he grenade
Reply With Quote #1

Hello
I have a litle problem that i can't solve...
Here is a code
PHP Code:
public PreThink(id)
{
    new 
clipammo
    
new userweapon get_user_weapon(idclipammo)
        
    if(
userweapon == CSW_HEGRENADE && g_Weapon[id])
    {
        if(!(
pev(id,pev_button) & FL_ONGROUND))
        {    
            
message_begin(MSG_ONE,iconstatus,{0,0,0},id);
            
write_byte(1);
            
write_string("item_healthkit");
            
write_byte(255);
            
write_byte(0); 
            
write_byte(0);
            
message_end();
        }
    }

The problem is that when i change to he grenade the icon show, but after i change to he grenade when i change to other weapon, the icon stil show. I want the icon to show only when user current wepon is he grenade. How can i fixit?

Last edited by m0skVi4a; 09-13-2011 at 14:32.
m0skVi4a is offline
Send a message via Skype™ to m0skVi4a
 


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 01:31.


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