hlmod.hu
https://hlmod.hu/

Élet jelző
https://hlmod.hu/viewtopic.php?f=29&t=11122
Oldal: 1 / 1

Szerző:  nestea [2013.09.29. 08:14 ]
Hozzászólás témája:  Élet jelző

Bázisépítős élet jelzőt szeretnék.. nem találtam csak zombi plagueset azok meg nem mennek.. kérem írjon valaki

Feje felett írja a Hpját.. folyamat ha lövi kékkel.. vagy akármilyen csak kellene a plugin.. -_-

Szerző:  ultraibolya [2013.09.29. 10:39 ]
Hozzászólás témája:  Re: Élet jelző

Teszt nem volt (csak átírtam hogy ne zp-re legyen.forrás:https://hlmod.hu/viewtopic.php?f=9&t=9328)

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <hamsandwich>
  3. #include <fakemeta>
  4.  
  5. public plugin_init()
  6. {
  7. register_plugin("[ZP] Addon: Show Health, Armor For Zombie", "0.1", "WPMG Team")
  8. RegisterHam(Ham_TakeDamage, "player", "Player_TakeDamage", 1)
  9. }
  10. public Player_TakeDamage(victim, inflictor, attacker, Float:damage)
  11. {
  12. new team=pev(attacker,pev_team)
  13. if(!is_user_alive(attacker) || team==1)
  14. return;
  15. new armor = get_user_armor(victim);
  16.  
  17. if(armor)
  18. client_print(attacker, print_center, "HP: %d^tPajzs: %d", get_user_health(victim), armor)
  19. else
  20. client_print(attacker, print_center, "HP: %d", get_user_health(victim))
  21.  
  22. }

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