hlmod.hu
https://hlmod.hu/

ReAPI - No fall damage
https://hlmod.hu/viewtopic.php?f=134&t=28710
Oldal: 1 / 1

Szerző:  theglorious [ 2018.02.02. 19:52 ]
Hozzászólás témája:  ReAPI - No fall damage

ReAPI - No fall damage
Leírás:
  • Magas helyről leesés nem okoz sebzést
Verzió:
  • v1
Követelmények:
  • ReHLDS
  • ReGameDLL
  • ReAPI
Eredeti link:
Készítő:
  • jesuspunk
Plugin:
  1. #include <amxmodx>
  2. #include <reapi>
  3.  
  4. public plugin_init()
  5. {
  6.     register_plugin( "[Reapi] No fall damage", "1", "jesuspunk" )
  7.     RegisterHookChain(RG_CBasePlayer_TakeDamage,"player_damage", .post = false)
  8. }
  9. public player_damage(id, iWeapon, iAttacker, Float:fDamage, iType)
  10. {
  11.     if(iType == DMG_FALL)
  12.     {
  13.         SetHookChainReturn(ATYPE_INTEGER, 0)
  14.         return HC_SUPERCEDE
  15.     }
  16.     return HC_CONTINUE
  17. }

Oldal: 1 / 1 Minden időpont UTC+01:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/