HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. #define PLUGIN "BombaHangok"
  5. #define VERSION "1.0"
  6. #define AUTHOR "THRILLER"
  7.  
  8.  
  9. forward bomb_planted(planter);
  10.  
  11.  
  12.  
  13. public plugin_init() {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15.  
  16. }
  17.  
  18. new bomb_sounds[][] =
  19. {
  20. "BombaHangok/planted1",
  21. "BombaHangok/planted2",
  22. "BombaHangok/planted3"
  23. }
  24.  
  25. public plugin_precache(){
  26. precache_sound("BombaHangok/planted1.wav")
  27. precache_sound("BombaHangok/planted2.wav")
  28. precache_sound("BombaHangok/planted3.wav")
  29. }
  30.  
  31.  
  32. public bomb_planted(id) {
  33. new plantername[32]
  34. get_user_name(id,plantername,31)
  35. set_hudmessage(255, 0, 0, -1.0, 0.2, 1, 6.0, 6.0)
  36. show_hudmessage(0, "%s elesitette a bombat!", plantername)
  37. client_cmd(0,"spk %s",bomb_sounds[random(sizeof bomb_sounds)]);
  38. }
  39.