Advertisement
Guest User

Untitled

a guest
Apr 21st, 2016
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. using System;
  2. using GTA;
  3. using GTA.Native;
  4.  
  5. namespace NoDar2
  6. {
  7. public class NoDar2 : Script
  8. {
  9.  
  10. public NoDar2()
  11. {
  12. Tick += OnTick;
  13. }
  14.  
  15. public void OnTick(object sender, EventArgs e)
  16. {
  17. int WantedLevel = Game.Player.WantedLevel;
  18. if (WantedLevel > 0)
  19. {
  20.  
  21.  
  22. Function.Call(Hash.HIDE_HUD_COMPONENT_THIS_FRAME, 1);
  23. Function.Call(Hash.SET_AUDIO_FLAG, "WantedMusicDisabled", 1);
  24. Function.Call(Hash.SET_AUDIO_FLAG, "DisableBarks", 1);
  25. Function.Call(Hash.SET_AUDIO_FLAG, "PoliceScannerDisabled", 1);
  26. Function.Call(Hash.SET_AUDIO_FLAG, "WantedMusicOnMission", 0);
  27.  
  28. }
  29. if (WantedLevel <= 1)
  30. {
  31. Function.Call(Hash.SET_CREATE_RANDOM_COPS, true);
  32. }
  33. if (WantedLevel > 1)
  34. {
  35. Function.Call(Hash.SET_CREATE_RANDOM_COPS, false);
  36. }
  37. }
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement