HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1.  
  2. /************************************************************
  3. * Nincs túsz beszéd *
  4. * A túszok nem szólalnak meg mikor a CT felveszi őket. *
  5. *************************************************************/
  6.  
  7. #include <amxmodx>
  8. #include <fakemeta>
  9. #if AMXX_VERSION_NUM >= 183
  10. #include <csx>
  11. #endif
  12.  
  13. #define PLUGIN "Nincs túsz beszéd"
  14. #define VERSION "1.00"
  15. #define AUTHOR "RaZ_HU"
  16.  
  17. public plugin_init()
  18. {
  19. register_plugin(PLUGIN, VERSION, AUTHOR);
  20. register_forward(FM_EmitSound, "tusz_kussol")
  21. }
  22.  
  23. public plugin_cfg()
  24. {
  25. #if AMXX_VERSION_NUM < 183
  26. new const EntClasses[][] =
  27. {
  28. "func_hostage_rescue",
  29. "info_hostage_rescue",
  30. "hostage_entity",
  31. "monster_entity"
  32. }
  33.  
  34. for(new i; i < sizeof EntClasses; i++)
  35. {
  36. if(find_ent_by_class(-1, EntClasses[i]))
  37. return
  38. }
  39. #else
  40. if(get_map_objectives() & MapObjective_Hostage)
  41. return
  42. #endif
  43.  
  44. pause("ad")
  45. }
  46.  
  47. public tusz_kussol(ent, ch, const snd[])
  48. {
  49. if(equal(snd, "hostage/hos",11))
  50. return FMRES_SUPERCEDE
  51.  
  52. return FMRES_IGNORED
  53. }