How to find which weapon user is holding on Ham_Spawn?
If he is holding "m4a1" or any other weapon,then implement this:
PHP Code:
if(cs_get_user_bp_ammo(id) < 20)
{
client_print(id,print_chat,"[Trooper] You have low m4a1/weapon ammo,Becareful")
}
Can I use this?
PHP Code:
if(cs_get_weapon_id(id) == 22) //22 for m4a1
{
if(cs_get_user_bp_ammo(id) < 20)
{
client_print(id,print_chat,"[Trooper] You have low m4a1/weapon ammo,Becareful")
}
}
__________________