Advertisement
Guest User

xx

a guest
Jul 30th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. var x;
  2. var y;
  3. var text;
  4. var zone;
  5. var street;
  6. API['onUpdate']['connect'](function(_0x80a2x6) {
  7. x = API['getGameplayCamDir']()['X'];
  8. y = API['getGameplayCamDir']()['Y'];
  9. zone = API['getZoneNameLabel'](API['getEntityPosition'](API['getLocalPlayer']()));
  10. street = API['getStreetName'](API['getEntityPosition'](API['getLocalPlayer']()));
  11. if (0.3 < x && 0.3 < y) {
  12. text = 'NE'
  13. } else {
  14. if (x < -0.3 && 0.3 < y) {
  15. text = 'NW'
  16. } else {
  17. if (0.3 < x && y < -0.3) {
  18. text = 'SE'
  19. } else {
  20. if (x < -0.3 && y < -0.3) {
  21. text = 'SW'
  22. } else {
  23. if (-0.3 < x && x < 0.3 && y < -0.3) {
  24. text = 'S'
  25. } else {
  26. if (x < -0.3 && -0.3 < y && y < 0.3) {
  27. text = 'W'
  28. } else {
  29. if (0.3 < x && -0.3 < y && y < 0.3) {
  30. text = 'E'
  31. } else {
  32. if (-0.3 < x && x < 0.3 && y > 0.3) {
  33. text = 'N'
  34. }
  35. }
  36. }
  37. }
  38. }
  39. }
  40. }
  41. };
  42. API['drawText'](text, 350, 1000, 1, 255, 255, 255, 200, 2, 1, false, true, 0);
  43. API['drawText']('|', 385, 1000, 1, 255, 255, 255, 200, 4, 1, false, true, 0);
  44. API['drawText'](zone, 475, 1003, 0.5, 255, 255, 255, 200, 4, 1, false, true, 0);
  45. API['drawText'](street, 475, 1030, 0.4, 255, 255, 255, 200, 4, 1, false, true, 0)
  46. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement