diff options
| author | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:54:45 +0300 |
|---|---|---|
| committer | hybrid <hybrid@hybridlabs.pro> | 2026-06-11 19:54:45 +0300 |
| commit | 68d4c9bbd80ed2e6528244569c79676b87295bd1 (patch) | |
| tree | 6efd42fbf6f1281874ae0ff1f8816b01fe0c7153 /Client/PVFunctions/VoteForCommander.sqf | |
| download | a2wf_takistan-68d4c9bbd80ed2e6528244569c79676b87295bd1.tar.gz a2wf_takistan-68d4c9bbd80ed2e6528244569c79676b87295bd1.tar.bz2 a2wf_takistan-68d4c9bbd80ed2e6528244569c79676b87295bd1.zip | |
init
Diffstat (limited to 'Client/PVFunctions/VoteForCommander.sqf')
| -rw-r--r-- | Client/PVFunctions/VoteForCommander.sqf | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Client/PVFunctions/VoteForCommander.sqf b/Client/PVFunctions/VoteForCommander.sqf new file mode 100644 index 0000000..7bbb18e --- /dev/null +++ b/Client/PVFunctions/VoteForCommander.sqf @@ -0,0 +1,9 @@ +
+private ["_voteTime"];
+if (votePopUp) then {
+ Private ["_voteTime"];
+ _voteTime = 0;
+ waitUntil {_voteTime = WF_Logic getVariable Format ["%1CommanderVoteTime",sideJoinedText];!isNil "_voteTime"};
+ if (_voteTime > 0 && !voted) then {CreateDialog "RscMenu_Voting"};
+ if (voted) then {voted = false};
+};
\ No newline at end of file |
