#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#define PDATA_SAFE 2
#define OFFSET_PAINSHOCK 108
#define OFFSET_LINUX 5
new g_MaxPlayers
public plugin_init()
{
RegisterHam(Ham_TakeDamage, "player", "FwdHamTakeDamagePost", 1)
g_MaxPlayers = get_maxplayers()
}
public FwdHamTakeDamagePost(victim, inflictor, attacker)
{
if(1 <= attacker <= g_MaxPlayers && pev_valid(victim) == PDATA_SAFE)
set_pdata_float(victim, OFFSET_PAINSHOCK, 1.0, OFFSET_LINUX)
}
Norėdamas rašyti pranešimą privalai prisijungti arba užsiregistruoti!