View Single Post
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 09-21-2023 , 21:39   Re: Players to receive a HE grenade and clip refiling when make a headshot
Reply With Quote #2

  • there is a cvar to give the grenade automatically to T or CT
  • to get it when shooting the head, you can hook this

    PHP Code:
    public client_death(idvictimweaponhitplace)    //->id=attacker
    {
        if( !
    id || victim == id || !is_user_connected(id) ) 
            return
        
        if(
    hitplace == HIT_HEAD
            
    give_item(id"weapon_hegrenade")

__________________
mlibre is offline