Page 1 of 1

Fall Damage HP Restore 0.0.1

Posted: 2017 Mar 08 01:03
by laimiukas3
Image

Autorius:
  • Vaqtincha
Reikalavimai:

Kodas: Select all

// Copyright © 2017 Vaqtincha #include <amxmodx>#include <reapi> public plugin_init(){    register_plugin("Fall Damage HP Restore", "0.0.1", "Vaqtincha")    RegisterHookChain(RG_CSGameRules_FlPlayerFallDamage, "CSGameRules_FlPlayerFallDamage", .post = true)} public CSGameRules_FlPlayerFallDamage(const pPlayer){    set_member(pPlayer, m_idrowndmg, floatround(Float:GetHookChainReturn(ATYPE_FLOAT), floatround_floor))    set_member(pPlayer, m_idrownrestored, 0)    // set_member(pPlayer, m_bitsDamageType, get_member(pPlayer, m_bitsDamageType) | DMG_DROWNRECOVER)}