Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- File : alertHandler.sqf
- Author : Ferix
- Main handler for all the alert levels on OVTRP.
- 0 = GREEN
- 1 = AMBER
- 2 = RED
- 3 = TERROR
- */
- //Vars
- private["_title","_text","_name"];
- //_text = "The threat level has been changed to ";
- _text = "<t size='2'>The threat level has been changed to </t>";
- _name = profileName;
- //Magic
- if (alertstatus = 0) then { /* GREEN */
- _title = "<t color='#00f200' size='2.5' shadow='1' shadowColor='#000000' align='center'>GREEN </t>, by ";
- //hint parseText (_text + _title + _name);
- [parseText (_text + _title + _name)] remoteExec ["hint"];
- };
- if (alertstatus = 1) then { /* AMBER */
- _title = "<t color='#ffbf00' size='2.5' shadow='1' shadowColor='#000000' align='center'>AMBER </t>, by ";
- [parseText (_text + _title + _name)] remoteExec ["hint"];
- };
- if (alertstatus = 2) then { /* RED */
- _title = "<t color='#f20000' size='2.5' shadow='1' shadowColor='#000000' align='center'>RED </t>, by ";
- [parseText (_text + _title + _name)] remoteExec ["hint"];
- };
- if (alertstatus = 3 ) then { /* TERROR */
- _title = "<t color='#f20000' size='2.5' shadow='1' shadowColor='#000000' align='center'>TERROR </t>, by ";
- [parseText (_text + _title + _name)] remoteExec ["hint"];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement