Advertisement
mmmyum

0.1a playerradio message

May 14th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.89 KB | None | 0 0
  1. //ADD THIS PART TO SERVER_AIRRAID//MMMYUM//ADD after _city is defined.
  2. /*
  3.  
  4. AirraidPlayerMsg = _city; publicVariable "AirraidPlayerMsg";
  5.  
  6.  
  7.  
  8. */    
  9.  
  10.     //Radio
  11.  
  12. private ["_playerRadio","_city","_posPlayers"];
  13. _city = AirraidPlayerMsg;
  14.         _posPlayers = playableUnits;
  15.         {
  16.         if (isPlayer _x) then {
  17.         _playerRadio = "ItemRadio" in items _x;
  18.         if (_playerRadio) then {
  19.                 cuttext [format["TEST DIAG 1 WARNING! AIRRAID in"], "PLAIN DOWN"];//not sure about cuttext
  20.                 sleep 10;
  21.                 cuttext [format["TEST DIAG 2 WARNING! AIRRAID in" + _city], "PLAIN DOWN"];//not sure about cuttext
  22.                 sleep 10;
  23.                 cuttext [format["TEST DIAG 3 If you are in the area evacuate immediately or face certain death!"], "PLAIN DOWN"];//might execute for every client, or none
  24.         };
  25.         };
  26.         } forEach _posPlayers;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement