Raised This Month: $ Target: $400
 0% 

Players to receive a HE grenade and clip refiling when make a headshot


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 10:24.


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