HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. /*_____________________________________________________________*/
  2.  
  3. #include <amxmodx>
  4. #include <amxmisc>
  5. #include <colorchat>
  6. #include <hamsandwich>
  7. #include <fun>
  8.  
  9. public plugin_init() {
  10. register_plugin("Ujraeledes ", "2.0", "maxi & ultraibolya")
  11. register_clcmd("say /ujra","elet")
  12. RegisterHam(Ham_Spawn,"player","info")
  13. }
  14. public info() {
  15. ColorChat(0,RED, "Ha megvan 10 olesed akkor ujra tudsz eledni egy alkalommal!")
  16. ColorChat(0,RED, "Hasznalata: /ujra!")
  17. }
  18. public elet(id) {
  19. new olesek = get_user_frags(id)
  20. if(is_user_alive(id)) {
  21. if(!get_user_flags(id) && ADMIN_KICK) {
  22. if(olesek >= 10)
  23. {
  24. ExecuteHamB(Ham_CS_RoundRespawn, id)
  25. set_user_frags(id, get_user_frags(id) -10)
  26. ColorChat(id, GREEN, "Sikeresen ujraeledtel!");
  27. }
  28. else {
  29. ColorChat(id, RED, "Nincs eleg olesed!")
  30. }
  31. }
  32. else {
  33. ExecuteHamB(Ham_CS_RoundRespawn, id)
  34. ColorChat(id, GREEN, "Sikeresen ujraeledtel!");
  35. }
  36. }
  37. else {
  38. ColorChat(id, RED, "Eletben vagy, ilyenkor nem használhatod ezt a funkciót.")
  39. }
  40. }