Advertisement
Ferix

Untitled

Jun 29th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.22 KB | None | 0 0
  1. /*
  2.  
  3. File   : alertHandler.sqf
  4. Author : Ferix
  5.  
  6. Main handler for all the alert levels on OVTRP.
  7.  
  8. 0 = GREEN
  9. 1 = AMBER
  10. 2 = RED
  11. 3 = TERROR
  12. */
  13. //Vars
  14.  
  15. private["_title","_text","_name"];
  16. //_text  = "The threat level has been changed to ";
  17. _text  = "<t size='2'>The threat level has been changed to </t>";
  18. _name  = profileName;
  19.  
  20. //Magic
  21. if (alertstatus = 0) then {   /* GREEN */
  22. _title = "<t color='#00f200' size='2.5' shadow='1' shadowColor='#000000' align='center'>GREEN  </t>, by ";
  23. //hint parseText (_text + _title + _name);
  24. [parseText (_text + _title + _name)] remoteExec ["hint"];
  25. };
  26. if (alertstatus = 1) then {   /* AMBER */
  27. _title = "<t color='#ffbf00' size='2.5' shadow='1' shadowColor='#000000' align='center'>AMBER  </t>, by ";
  28. [parseText (_text + _title + _name)] remoteExec ["hint"];
  29. };
  30.  
  31. if (alertstatus = 2) then {   /* RED */
  32. _title = "<t color='#f20000' size='2.5' shadow='1' shadowColor='#000000' align='center'>RED </t>, by ";
  33. [parseText (_text + _title + _name)] remoteExec ["hint"];
  34. };
  35.  
  36. if (alertstatus = 3 ) then {  /* TERROR */
  37. _title = "<t color='#f20000' size='2.5' shadow='1' shadowColor='#000000' align='center'>TERROR  </t>, by ";
  38. [parseText (_text + _title + _name)] remoteExec ["hint"];
  39. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement