Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. //PLAYER RADIO WARNING 0.11a mmmyum - attempt 2
  2.  
  3. */
  4.  
  5. //Radio -- loop every two mins, check to see what will be bombed, and send a message
  6. //note that this will check for a new message every 2 mins
  7. private ["_playerRadio","_city","_lastCity"];
  8. _lastCity = "null";
  9. sleep 40;
  10. while {true} do {
  11. _city = AirraidPlayerMsg;
  12. _playerRadio = "ItemRadio" in items player;
  13. if (_playerRadio) then {
  14. if (_city != _lastCity) then {
  15. cuttext [format["RADIO: ch-SOUND THE ALA--...... BOMBER STRI--...... OH GOD RUN"], "PLAIN DOWN"];
  16. sleep 10;
  17. cuttext [format["RADIO: WARNING! AIRRAID in " + _city], "PLAIN DOWN"];
  18. sleep 10;
  19. cuttext [format["RADIO: BOMBER INBOUND, EVACUATE!;"], "PLAIN DOWN"];
  20. };
  21. };
  22. _lastCity = _city;
  23. sleep 420;
  24. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement