Raised This Month: $32 Target: $400
 8% 

[ZP] Ammo Packs for dead


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
strangeguy
Senior Member
Join Date: Mar 2019
Old 08-10-2020 , 06:21   [ZP] Ammo Packs for dead
Reply With Quote #1

Hello!
I'm looking for plugin, that give 1 Ammo Pack to dead zombie which is killed by human.
strangeguy is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 08-10-2020 , 08:56   Re: [ZP] Ammo Packs for dead
Reply With Quote #2

Quote:
Originally Posted by strangeguy View Post
Hello!
I'm looking for plugin, that give 1 Ammo Pack to dead zombie which is killed by human.
Which mod?
Supremache is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 08-12-2020 , 22:17   Re: [ZP] Ammo Packs for dead
Reply With Quote #3

Quote:
Originally Posted by strangeguy View Post
Hello!
I'm looking for plugin, that give 1 Ammo Pack to dead zombie which is killed by human.
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <zombieplague>

new iAmmoBouns;

public 
plugin_init()
{
    
register_plugin("Give Ammo for Zombie death""1.0""Supremache");
    
RegisterHam(Ham_Killed"player""client_death");
    
    
iAmmoBouns register_cvar("zp_ammo_death""1");
}


public 
client_death(victim)
{
    if (
is_user_alive(victim))
        return 
PLUGIN_HANDLED;
        
    if(
zp_get_user_zombie(victim))
    {
        new 
iPacks zp_get_user_ammo_packs(victim)
        
zp_set_user_ammo_packs(victimiPacks get_pcvar_num(iAmmoBouns))
    }
    return 
PLUGIN_CONTINUE;


Supremache is offline
Reply


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 09:30.


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