hlmod.hu
https://hlmod.hu/

KILL
https://hlmod.hu/viewtopic.php?f=29&t=10238
Oldal: 1 / 2

Szerző:  Necronox [ 2013.08.16. 22:01 ]
Hozzászólás témája:  KILL

Egy olyan plugint keresek írja lőttél 1-et 1KILL majd 2KILL stb.. :)
Aki segít megy a GOMB!

Szerző:  Maxi [ 2013.08.16. 22:20 ]
Hozzászólás témája:  Re: KILL

Teszteld: (saját.)
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <dhudmessage>
  4. #include <fun>
  5. #include <colorchat>
  6.  
  7. #define PLUGIN "New Plugin"
  8. #define AUTHOR "Unknown"
  9. #define VERSION "1.0"
  10.  
  11. public plugin_init()
  12. {
  13. register_plugin(PLUGIN, VERSION, AUTHOR)
  14. register_event("DeathMsg", "kill", "a")
  15. }
  16. public kill(id)
  17. {
  18. new name[33];
  19. get_user_name(id, name, charsmax(name));
  20.  
  21. new killer = get_user_frags(id)
  22. {
  23. if(killer == 1)
  24. {
  25. set_dhudmessage(255, 212, 127, -1.0, -1.0, 0, 6.0, 12.0)
  26. show_dhudmessage(id, "1. KILL!!!")
  27. ColorChat(id, RED, "1. KILL!!!")
  28. }
  29. if(killer == 2)
  30. {
  31. set_dhudmessage(255, 212, 127, -1.0, -1.0, 0, 6.0, 12.0)
  32. show_dhudmessage(id, "2. KILL!!!")
  33. ColorChat(id, RED, "2. KILL!!!")
  34. }
  35. if(killer == 3)
  36. {
  37. set_dhudmessage(255, 212, 127, -1.0, -1.0, 0, 6.0, 12.0)
  38. show_dhudmessage(id, "3. KILL!!!")
  39. ColorChat(id, RED, "3. KILL!!!")
  40. }
  41. if(killer == 4)
  42. {
  43. set_dhudmessage(255, 212, 127, -1.0, -1.0, 0, 6.0, 12.0)
  44. show_dhudmessage(id, "4. KILL!!!")
  45. ColorChat(id, RED, "4. KILL!!!")
  46. }
  47. if(killer == 5)
  48. {
  49. set_dhudmessage(255, 212, 127, -1.0, -1.0, 0, 6.0, 12.0)
  50. show_dhudmessage(0, "%s A SZERVER KIRRALYAA!!!", name)
  51. ColorChat(0, RED, "%s TE VAGY A LEGJOBB!!!", name)
  52. }
  53. }
  54. }

Szerző:  Necronox [ 2013.08.16. 22:27 ]
Hozzászólás témája:  Re: KILL

Compilation aborted.
1 Error.
Done.

Szerző:  Maxi [ 2013.08.16. 22:36 ]
Hozzászólás témája:  Re: KILL

Necronox írta:
Compilation aborted.
1 Error.
Done.

Attol még jó, csak egy sor eltolódás van az nem befolyásolja.

Szerző:  Necronox [ 2013.08.16. 22:43 ]
Hozzászólás témája:  Re: KILL

Akkor csináld meg nekem ! :)

Szerző:  ultraibolya [ 2013.08.16. 22:46 ]
Hozzászólás témája:  Re: KILL

öm khm

[CSO LIKE] Effect Killer

Szerző:  Necronox [ 2013.08.16. 23:05 ]
Hozzászólás témája:  Re: KILL

amxx küld el nekem! :)

Szerző:  crazy` [ 2013.08.16. 23:09 ]
Hozzászólás témája:  Re: KILL

dhudmessage.inc macerák nélkül:

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <fun>
  4. #include <colorchat>
  5.  
  6. #define PLUGIN "New Plugin"
  7. #define AUTHOR "Unknown"
  8. #define VERSION "1.0"
  9.  
  10. public plugin_init()
  11. {
  12. register_plugin(PLUGIN, VERSION, AUTHOR)
  13. register_event("DeathMsg", "kill", "a")
  14. }
  15. public kill(id)
  16. {
  17. new name[33];
  18. get_user_name(id, name, charsmax(name));
  19.  
  20. new killer = get_user_frags(id)
  21. {
  22. if(killer == 1)
  23. {
  24. set_hudmessage(255, 212, 127, -1.0, -1.0, 0, 6.0, 12.0)
  25. show_hudmessage(id, "1. KILL!!!")
  26. ColorChat(id, RED, "1. KILL!!!")
  27. }
  28. if(killer == 2)
  29. {
  30. set_hudmessage(255, 212, 127, -1.0, -1.0, 0, 6.0, 12.0)
  31. show_hudmessage(id, "2. KILL!!!")
  32. ColorChat(id, RED, "2. KILL!!!")
  33. }
  34. if(killer == 3)
  35. {
  36. set_hudmessage(255, 212, 127, -1.0, -1.0, 0, 6.0, 12.0)
  37. show_hudmessage(id, "3. KILL!!!")
  38. ColorChat(id, RED, "3. KILL!!!")
  39. }
  40. if(killer == 4)
  41. {
  42. set_hudmessage(255, 212, 127, -1.0, -1.0, 0, 6.0, 12.0)
  43. show_hudmessage(id, "4. KILL!!!")
  44. ColorChat(id, RED, "4. KILL!!!")
  45. }
  46. if(killer == 5)
  47. {
  48. set_hudmessage(255, 212, 127, -1.0, -1.0, 0, 6.0, 12.0)
  49. show_hudmessage(0, "%s A SZERVER KIRRALYAA!!!", name)
  50. ColorChat(0, RED, "%s TE VAGY A LEGJOBB!!!", name)
  51. }
  52. }
  53. }

Szerző:  kiki [ 2013.08.17. 09:04 ]
Hozzászólás témája:  Re: KILL

Wrong crazy. Mi az hogy egy eventnek adsz idt? Itt külön van az attacker és a victim. Meg azt sem kérte hogy csak 5-killig mutassa.

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <fun>
  4.  
  5. #define PLUGIN "New Plugin"
  6. #define AUTHOR "Unknown"
  7. #define VERSION "1.0"
  8.  
  9. public plugin_init()
  10. {
  11. register_plugin(PLUGIN, VERSION, AUTHOR)
  12. register_event("DeathMsg", "kill", "a")
  13. }
  14. public kill()
  15. {
  16. new killer = read_data(1)
  17. new kills = get_user_frags(killer)
  18. set_hudmessage(255, 212, 127, -1.0, -1.0, 0, 6.0, 12.0)
  19. show_hudmessage(killer, "%i. KILL!!!", kills)
  20. }

Szerző:  Necronox [ 2013.08.17. 11:24 ]
Hozzászólás témája:  Re: KILL

Evvel mit csináljak?

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