Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #include <sdktools>
- public OnPluginStart()
- {
- HookEvent("infected_hurt", _DM_InfectedHurt_Event);
- }
- public Action:_DM_InfectedHurt_Event(Handle:event, const String:name[], bool:dontBroadcast)
- {
- new dmg_health = GetEventInt(event,"amount");
- new entity = GetEventInt(event, "entityid");
- new damagetype = GetEventInt(event, "type");
- new eventhealth = GetEntProp(entity, Prop_Data, "m_iHealth");
- new client = GetClientOfUserId(GetEventInt(event,"attacker"));
- if(damagetype == 128)
- {
- SetEventInt(event, "amount", 0);
- SetEntProp(entity, Prop_Data, "m_iHealth", 100);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment