![Image](http://dev-cs.ru/data/resource_icons/0/107.jpg?1488296646)
Autorius:
- Vaqtincha
Code: 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)}