PHP Code:
public CurWeapon(id)
{
new clip, ammo
new userweapon = get_user_weapon(id, clip, ammo)
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();
}
}
else
{
if(!(pev(id,pev_button) & FL_ONGROUND))
{
message_begin(MSG_ONE,iconstatus,{0,0,0},id);
write_byte(0);
write_string("item_healthkit");
write_byte(255);
write_byte(0);
write_byte(0);
message_end();
}
}
}
that?