Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private ["_mosque", "_times_to_play", "_played_times", "_i"];
- _mosque = [minaret,minaret_1,minaret_2,minaret_3,minaret_4,minaret_5,minaret_6,minaret_7,minaret_8,minaret_9,minaret_10,minaret_11,minaret_12,minaret_13]; //object on map named minaret
- _times_to_play = [5, 7, 14, 17, 20, 22];
- _played_times = [0, 0, 0, 0, 0, 0];
- _i = 0;
- while {true} do
- {
- _i = 0;
- {
- if (abs (dayTime - _x) < 0.05) then
- {
- if ((_played_times select _i) == 0) then
- {
- _played_times set [_i, 1];
- {_x say3D ["prayer",1500]} forEach _mosque;
- };
- };
- _i = _i + 1;
- } forEach _times_to_play;
- if (dayTime > ((_times_to_play select 4) + 0.1)) then
- {
- _played_times = [0, 0, 0, 0, 0, 0];
- };
- Sleep 10;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement