Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private ["_ok", "_timeout", "_info"];
- closeDialog 0;
- RL_YesNoEmtCops = "";
- RL_YesNoRequestEmt = false;
- RL_YesNoRequestCops = false;
- _ok = createDialog "Dialog_CallCopsEmts";
- _timeout = 30;
- ctrlShow [465458 , false];
- while{_ok && (_timeout > 0)}do
- {
- _info = format["Call for assistance?(%1sec)", _timeout];
- ctrlSetText [6969, _info];
- uiSleep 1;
- _timeout = _timeout - 1;
- };
- closeDialog 0;
- if((typeName RL_YesNoEmtCops) == "BOOL"))then
- {
- RL_YesNoEmtCops = true;
- };
- if(RL_YesNoEmtCops)then
- {
- if(RL_YesNoRequestEmt)then
- {
- player sideChat "You have called EMS";
- [player] call OL_CallEMS;
- };
- if(RL_YesNoRequestCops)then
- {
- player sideChat "You have called the Police";
- [player] call OL_CallPolice;
- };
- }else{
- player sideChat "You opted-out from requesting an responder please do not use global";
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement