hlmod.hu
https://hlmod.hu/

Kés
https://hlmod.hu/viewtopic.php?f=29&t=8444
Oldal: 1 / 1

Szerző:  Show1337 [ 2013.05.10. 22:58 ]
Hozzászólás témája:  Kés

Tiszteletem!

Valaki írna egy olyan kódot amiben az érvénysül, hogy ha megölök valakit késsel végrehajtson valamit Pl.: ad +10 Hp-t.

Előre is aki megírja köszi.

Szerző:  HuBaBuBa [ 2013.05.11. 12:23 ]
Hozzászólás témája:  Re: Kés

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <fun>
  3.  
  4. public plugin_init()
  5. register_event("DeathMsg", "DeathMsgEvent", "a", "1>0");
  6.  
  7. public DeathMsgEvent()
  8. {
  9. new KillerID = read_data(1);
  10.  
  11. if (!is_user_alive(KillerID))
  12. return;
  13.  
  14. new TruncatedWeaponName[16];
  15. read_data(4, TruncatedWeaponName, 15);
  16.  
  17. if (equal(TruncatedWeaponName, "knife"))
  18. set_user_health(KillerID, min(150, get_user_health(KillerID) + 10));
  19. }

Szerző:  ultraibolya [ 2013.05.11. 13:25 ]
Hozzászólás témája:  Re: Kés

Plugin kérés

Szerző:  Show1337 [ 2013.05.13. 14:22 ]
Hozzászólás témája:  Re: Kés

Kösz. Like.
HuBaBuBa írta:
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <fun>
  3. &nbsp;
  4. public plugin_init()
  5. register_event("DeathMsg", "DeathMsgEvent", "a", "1>0");
  6. &nbsp;
  7. public DeathMsgEvent()
  8. {
  9. new KillerID = read_data(1);
  10. &nbsp;
  11. if (!is_user_alive(KillerID))
  12. return;
  13. &nbsp;
  14. new TruncatedWeaponName[16];
  15. read_data(4, TruncatedWeaponName, 15);
  16. &nbsp;
  17. if (equal(TruncatedWeaponName, "knife"))
  18. set_user_health(KillerID, min(150, get_user_health(KillerID) + 10));
  19. }


Majd megnézem, ha nem megy írok.

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