Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ['NDCH_Drug_Use', {
- _UnderDrugUse = true;
- _HeroinHi = false;
- _MethHi = true;
- _CocaineHi = false;
- hint "B is greater than A";
- while {_UnderDrugUse = true} do {
- hint "B is greater than A";
- if (_MethHi = true) then {
- player enableFatigue false;
- uiSleep 10;
- player enableFatigue true;
- _MethHi = false;
- };
- if (_HeroinHi = true) then {
- player allowDamage false;
- uiSleep 10;
- _HeroinHi = false;
- };
- if (_CocaineHi = true) then {
- 0 = ["ColorInversion", 2500, [0.5, 0.5, 0.5]] spawn
- {
- params ["_name", "_priority", "_effect", "_handle"];
- while {
- _handle = ppEffectCreate [_name, _priority];
- _handle < 0
- } do {
- _priority = _priority + 1;
- };
- _handle ppEffectEnable true;
- _handle ppEffectAdjust _effect;
- _handle ppEffectCommit 5;
- waitUntil {ppEffectCommitted _handle};
- uiSleep 10;
- _handle ppEffectEnable false;
- ppEffectDestroy _handle;
- _CocaineHi = false;
- };
- };
- };
- }, false] call Server_Setup_Compile;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement