mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 22:53:30 +00:00
22 lines
630 B
Plaintext
22 lines
630 B
Plaintext
#include "..\script_component.hpp"
|
|
|
|
params ["_message", "_type", ["_title", "ARMATAK"]];
|
|
|
|
switch (_type) do {
|
|
case "success": {
|
|
_warning = format ["<t color='#00FF21'>ARMATAK - %1</t><br/> %2", _title, _message];
|
|
[[_warning, 1.5]] call CBA_fnc_notify;
|
|
};
|
|
case "warning": {
|
|
_warning = format ["<t color='#ffff16'>ARMATAK - %1</t><br/> %2", _title, _message];
|
|
[[_warning, 1.5]] call CBA_fnc_notify;
|
|
};
|
|
case "error": {
|
|
_warning = format ["<t color='#FF0021'>ARMATAK - %1</t><br/> %2", _title, _message];
|
|
[[_warning, 1.5]] call CBA_fnc_notify;
|
|
};
|
|
default {
|
|
systemChat format ["%1 - %2", _title, _message];
|
|
};
|
|
};
|