Hey, I currently have this plugin I tweaked with to make damage values to players be 0.
I was wondering if there's a way to DISABLE "Tagging" or "getting slowed down when attacked" since I don't want players to have God-Mode as I want them to die to natural/environmental causes but I don't want them to be slowed down when other players attack them.
Here's the code I currently use:
Code:
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
public OnPluginStart()
{
for (new client = 1; client <= MaxClients; client++)
{
if (IsClientInGame(client))
{
SDKHook(client, SDKHook_OnTakeDamage, TakeDamageHook);
}
}
}
public OnClientPutInServer(client)
{
SDKHook(client, SDKHook_OnTakeDamage, TakeDamageHook);
}
public Action TakeDamageHook(client, &attacker, &inflictor, &Float:damage, &damagetype)
{
if ( (client>=1) && (client<=MaxClients) && (attacker>=1) && (attacker<=MaxClients) && (attacker==inflictor) )
{
damage *= 0;
return Plugin_Changed;
}
return Plugin_Continue;
}
Would love to hear a response ASAP