Ferix

Untitled

Jun 29th, 2018
84
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. };
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×