Advertisement
Guest User

Untitled

a guest
Mar 24th, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. #include "..\..\script_macros.hpp"
  2.  
  3. disableSerialization;
  4. while {true} do
  5. {
  6. waitUntil
  7. {
  8. sleep 1;
  9. if(player getVariable["speaking",false]) then {player setVariable["speaking", false, true];};
  10. ((!isNull findDisplay 63) && (!isNull findDisplay 55))
  11. };
  12.  
  13. if (ctrlText ((findDisplay 55) displayCtrl 101) == "\A3\ui_f\data\igui\rscingameui\rscdisplayvoicechat\microphone_ca.paa") then
  14. {
  15. if ((ctrlText ((findDisplay 63) displayCtrl 101) == localize "str_channel_direct") OR (ctrlText ((findDisplay 63) displayCtrl 101) == "Direct Communication")) then
  16. {
  17. player setVariable["speaking", true, true];
  18. }
  19. else
  20. {
  21. player setVariable["speaking", false, true];
  22. };
  23. }
  24. else
  25. {
  26. if(player getVariable["speaking",false]) then
  27. {
  28. player setVariable["speaking", false, true];
  29. };
  30. };
  31. sleep 0.2;
  32. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement