HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. // *************************************************************************************//
  2. // www.neugomon.ru //
  3. // Neygomon [ https://neugomon.ru/members/1/ ] //
  4. // https://neugomon.ru/threads/191/ //
  5. // www.neugomon.ru //
  6. // *************************************************************************************//
  7.  
  8. #include <amxmodx>
  9.  
  10. new const g_sFireInTheHole[] = "#Fire_in_the_hole", g_sFireInTheHoleSound[] = "%!MRAD_FIREINHOLE";
  11. new sound[sizeof(g_sFireInTheHoleSound)], text[sizeof(g_sFireInTheHole)];
  12.  
  13. public plugin_init()
  14. {
  15. register_plugin("Block grande info", "1.0", "neygomon");
  16. register_message(get_user_msgid("TextMsg"),"msgTextMsg");
  17. register_message(get_user_msgid("SendAudio"),"msgSendAudio");
  18. }
  19.  
  20. public msgTextMsg()
  21. {
  22. if(get_msg_args() == 5 && get_msg_argtype(5) == ARG_STRING)
  23. {
  24. get_msg_arg_string(5, text, sizeof text - 1);
  25. if(equali(text, g_sFireInTheHole)) return PLUGIN_HANDLED
  26. }
  27. return PLUGIN_CONTINUE
  28. }
  29. public msgSendAudio()
  30. {
  31. get_msg_arg_string(2, sound, sizeof sound - 1);
  32. return equali(sound, g_sFireInTheHoleSound);
  33. }
  34. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  35. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
  36. */
  37.