hlmod.hu
https://hlmod.hu/

One hit kill
https://hlmod.hu/viewtopic.php?f=9&t=20803
Oldal: 1 / 1

Szerző:  jozsikaaa2000 [ 2015.05.26. 17:37 ]
Hozzászólás témája:  One hit kill

SZIASZTOK "megint én xd"
Valaki le tudna írni egy |onehit-1hit kill| forráskodot? pls

Szerző:  babapiskóta.~ [ 2015.05.27. 14:57 ]
Hozzászólás témája:  Re: One hit kill

a

Szerző:  FloxaY [ 2015.05.27. 16:37 ]
Hozzászólás témája:  Re: One hit kill

szerintem nem arra gondolt hogy 20hpja lesz a playernek..

Szerző:  babapiskóta.~ [ 2015.05.27. 19:45 ]
Hozzászólás témája:  Re: One hit kill

FloxaY írta:
szerintem nem arra gondolt hogy 20hpja lesz a playernek..

ok

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <hamsandwich>
  3.  
  4. #define PLUGIN "1 Shot 1 Kill"
  5. #define VERSION "1.0"
  6. #define AUTHOR "DarkGL"
  7.  
  8. public plugin_init()
  9. {
  10. register_plugin(PLUGIN, VERSION, AUTHOR);
  11.  
  12. RegisterHam(Ham_TakeDamage, "player", "fwDamage",0);
  13. }
  14.  
  15. public fwDamage(this, idinflictor, idattacker, Float:damage, damagebits)
  16. {
  17. if(!is_user_alive(this) || !is_user_connected(idattacker) || !(damagebits & (1<<1)) ) return HAM_IGNORED;
  18.  
  19. SetHamParamFloat(4,float(get_user_health(this) + get_user_armor(this)))
  20.  
  21. return HAM_HANDLED;
  22. }
  23.  

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