Advertisement
Guest User

Untitled

a guest
Sep 24th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. private ["_ok", "_timeout", "_info"];
  2. closeDialog 0;
  3. RL_YesNoEmtCops = "";
  4. RL_YesNoRequestEmt = false;
  5. RL_YesNoRequestCops = false;
  6. _ok = createDialog "Dialog_CallCopsEmts";
  7. _timeout = 30;
  8. ctrlShow [465458 , false];
  9.  
  10. while{_ok && (_timeout > 0)}do
  11. {
  12. _info = format["Call for assistance?(%1sec)", _timeout];
  13. ctrlSetText [6969, _info];
  14. uiSleep 1;
  15. _timeout = _timeout - 1;
  16. };
  17. closeDialog 0;
  18. if((typeName RL_YesNoEmtCops) == "BOOL"))then
  19. {
  20. RL_YesNoEmtCops = true;
  21. };
  22. if(RL_YesNoEmtCops)then
  23. {
  24. if(RL_YesNoRequestEmt)then
  25. {
  26. player sideChat "You have called EMS";
  27. [player] call OL_CallEMS;
  28. };
  29. if(RL_YesNoRequestCops)then
  30. {
  31. player sideChat "You have called the Police";
  32. [player] call OL_CallPolice;
  33. };
  34. }else{
  35. player sideChat "You opted-out from requesting an responder please do not use global";
  36. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement