Advertisement
zSkullfox

Untitled

Feb 26th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. /*
  2. initPlayerLocal.sqf
  3. */
  4.  
  5. ambient_radio = {
  6. []spawn{
  7. while {alive player} do {
  8. sleep (floor random 15);
  9. _sound = floor ( ( random 57 ) + 1 );
  10. if(_sound < 10)then{
  11. _sound = "0" + str _sound;
  12. };
  13. [player,format["UVO_ambientRadio%1",_sound]]remoteExec["say3d",0];
  14. sleep 40;
  15. };
  16. };
  17. };
  18.  
  19.  
  20.  
  21. player addEventHandler ["Respawn", {
  22. params ["_unit", "_corpse"];
  23. call ambient_radio;
  24. }];
  25.  
  26. call ambient_radio;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement