Dr-Strange

reapi_vtc.inc

Mar 4th, 2018
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. #if defined _reapi_vtc_included
  2. #endinput
  3. #endif
  4. #define _reapi_vtc_included
  5.  
  6. /*
  7. * Checks whether the player is talking at the moment.
  8. *
  9. * @param index Client index
  10. *
  11. * @return true if client is speaking, false otherwise
  12. */
  13. native bool:VTC_IsClientSpeaking(const index);
  14.  
  15. /*
  16. * Mutes the player.
  17. *
  18. * @param index Client index
  19. *
  20. * @noreturn
  21. */
  22. native VTC_MuteClient(const index);
  23.  
  24. /*
  25. * Unmutes the player.
  26. *
  27. * @param index Client index
  28. *
  29. * @noreturn
  30. */
  31. native VTC_UnmuteClient(const index);
  32.  
  33. /*
  34. * Checks whether the player is muted at the moment.
  35. *
  36. * @param index Client index
  37. *
  38. * @return true if client is muted, false otherwise
  39. */
  40. native bool:VTC_IsClientMuted(const index);
  41.  
  42. /*
  43. * Play the audio file via the voice stream.
  44. *
  45. * @param receiver Receiver index
  46. * @param soundFilePath The path to the sound file
  47. *
  48. * @note Usage example:
  49. * VTC_PlaySound(id, "sound/ambience/Opera.wav");
  50. *
  51. * @noreturn
  52. */
  53. native VTC_PlaySound(const receiver, const soundFilePath[]);
  54.  
  55. /*
  56. * Called when the player started talking.
  57. *
  58. * @param index Client index
  59. *
  60. * @noreturn
  61. */
  62. forward VTC_OnClientStartSpeak(const index);
  63.  
  64. /*
  65. * Called when the player stopped talking.
  66. *
  67. * @param index Client index
  68. *
  69. * @noreturn
  70. */
  71. forward VTC_OnClientStopSpeak(const index);
Add Comment
Please, Sign In to add comment