Advertisement
SHUFEN

Untitled

May 26th, 2016
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. #if defined _voiceannounceex_included_
  2. #endinput
  3. #endif
  4. #define _voiceannounceex_included_
  5.  
  6. public SharedPlugin:__pl_voiceannounceex =
  7. {
  8. name = "voiceannounce_ex",
  9. file = "voiceannounce_ex.smx",
  10. #if defined REQUIRE_PLUGIN
  11. required = 1,
  12. #else
  13. required = 0,
  14. #endif
  15. };
  16.  
  17. public __pl_voiceannounceex_SetNTVOptional()
  18. {
  19. MarkNativeAsOptional("IsClientSpeaking");
  20. }
  21.  
  22. /**
  23. *
  24. * Checks whether a client is speaking or not.
  25. *
  26. * @param client The client index to check against.
  27. *
  28. * @error Client is not valid, ingame, or client is a bot.
  29. *
  30. * @return True if client is speaking, false otherwise.
  31. *
  32. */
  33.  
  34. native bool:IsClientSpeaking(client);
  35.  
  36. /**
  37. *
  38. * Called when a client is speaking.
  39. *
  40. * @param client The index of the client that is speaking.
  41. *
  42. * @return True to allow the client to talk, false otherwise.
  43. *
  44. */
  45.  
  46. forward bool:OnClientSpeakingEx(client);
  47.  
  48. /**
  49. *
  50. * Called when a client end of speaking.
  51. *
  52. * @param client The index of the client.
  53. *
  54. * @noreturn
  55. *
  56. */
  57. forward OnClientSpeakingEnd(client);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement