Advertisement
Guest User

Drugged

a guest
May 23rd, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. ['NDCH_Drug_Use', {
  2. _UnderDrugUse = true;
  3. _HeroinHi = false;
  4. _MethHi = true;
  5. _CocaineHi = false;
  6.  
  7. hint "B is greater than A";
  8.  
  9. while {_UnderDrugUse = true} do {
  10. hint "B is greater than A";
  11. if (_MethHi = true) then {
  12. player enableFatigue false;
  13. uiSleep 10;
  14. player enableFatigue true;
  15. _MethHi = false;
  16. };
  17.  
  18. if (_HeroinHi = true) then {
  19. player allowDamage false;
  20. uiSleep 10;
  21. _HeroinHi = false;
  22. };
  23.  
  24. if (_CocaineHi = true) then {
  25. 0 = ["ColorInversion", 2500, [0.5, 0.5, 0.5]] spawn
  26. {
  27.  
  28. params ["_name", "_priority", "_effect", "_handle"];
  29. while {
  30. _handle = ppEffectCreate [_name, _priority];
  31. _handle < 0
  32. } do {
  33. _priority = _priority + 1;
  34. };
  35. _handle ppEffectEnable true;
  36. _handle ppEffectAdjust _effect;
  37. _handle ppEffectCommit 5;
  38. waitUntil {ppEffectCommitted _handle};
  39.  
  40. uiSleep 10;
  41.  
  42. _handle ppEffectEnable false;
  43. ppEffectDestroy _handle;
  44. _CocaineHi = false;
  45. };
  46. };
  47. };
  48. }, false] call Server_Setup_Compile;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement