Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ['NDCH_Drug_Use', {
- params [
- ["_UnderDrugUse", ""],
- ["_HeroinHi", ""],
- ["_MethHi", ""],
- ["_CocaineHi", ""]
- ];
- if (_MethHi == true) then {
- player enableFatigue false;
- uiSleep 10;
- player enableFatigue true;
- _MethHi = false;
- };
- if (_HeroinHi == true) then {
- player setAnimSpeedCoef 1.2;
- uiSleep 10;
- _HeroinHi = false;
- player setAnimSpeedCoef 1;
- };
- 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;
- [true, false, true, false] spawn NDCH_Drug_Use;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement