Raised This Month: $51 Target: $400
 12% 

Killing Enemy give you 100 HP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
denyyyo
Junior Member
Join Date: Sep 2011
Old 02-12-2021 , 01:46   Killing Enemy give you 100 HP
Reply With Quote #1

Searching for a plugin that give you in deathmatch mode Full hp (100 HP + 100 Kevlar) after killing 1 Enemy.... any1 know a plugin ?

thank you
denyyyo is offline
yuv41
Member
Join Date: Jan 2020
Old 02-12-2021 , 01:59   Re: Killing Enemy give you 100 HP
Reply With Quote #2

That would be gay in hvh
yuv41 is offline
FAQU
Member
Join Date: Sep 2020
Location: Romania
Old 02-12-2021 , 02:10   Re: Killing Enemy give you 100 HP
Reply With Quote #3

There you go
PHP Code:
#include <sourcemod>
#include <sdktools>

#pragma semicolon 1
#pragma newdecls required

public void OnPluginStart()
{
    
HookEvent("player_death"Event_PlayerDeath);
}

public 
void Event_PlayerDeath(Event event, const char[] namebool dontBroadcast)
{
    
int attacker GetClientOfUserId(event.GetInt("attacker"));
    
int victim GetClientOfUserId(event.GetInt("userid"));
    
    
    if (
attacker == victim || attacker == 0)
    {
        return;
    }
    
    if (
IsPlayerAlive(attacker)) // most likely not needed
    
{
        
SetEntityHealth(attacker100);
        
GivePlayerItem(attacker"item_assaultsuit");
    }

__________________
FAQU is offline
Reply



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 01:37.


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