hlmod.hu
https://hlmod.hu/

Segitene valaki?
https://hlmod.hu/viewtopic.php?f=24&t=16818
Oldal: 1 / 1

Szerző:  MeSter [2014.08.05. 18:51 ]
Hozzászólás témája:  Segitene valaki?

valaki ebbe bele tudná írni a kick jogot?

SMA Forráskód: [ Mindet kijelol ]
  1. /*
  2. #include <amxmodx>
  3. #include <amxmisc>
  4. #include <hamsandwich>
  5. #include <cstrike>
  6. #include <hlsdk_const>
  7. #define PLUGIN "Eseskor nincs sebzes"
  8. #define VERSION "1.0"
  9. #define AUTHOR "CastBounD"
  10. new g_team
  11. public plugin_init() {
  12. register_plugin(PLUGIN, VERSION, AUTHOR)
  13. RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage")
  14. g_team = register_cvar("Csapat", "CS_TEAM_SPECTATOR")
  15. }
  16. public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
  17. {
  18.  
  19. if (!(damage_type & DMG_FALL))
  20. {
  21. return HAM_IGNORED;
  22. }
  23.  
  24. if (get_user_team(victim) == get_pcvar_num(g_team))
  25. {
  26. return HAM_IGNORED;
  27. }
  28.  
  29. return HAM_SUPERCEDE;
  30. }

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