Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. updateOverlays() {
  2. if(!WinExist("ahk_exe gta_sa.exe")){
  3. return
  4. }
  5. if(matsTime != -1) {
  6. timeDif := matsTime
  7. EnvSub, timeDif, A_Now, seconds
  8. TextSetString(matsTextDraw, "Materials: " . timeDif . " sek")
  9. TextSetShown(matsTextDraw, true)
  10. if(timeDif <= 0) {
  11. matsTime := -1
  12. TextSetShown(matsTextDraw, false)
  13. _AddChatMessage("Du kannst nun deine Mats abholen!")
  14. SoundBeep, 750, 1000
  15. }
  16. }
  17. if(lsdTime != -1) {
  18. timeDif := lsdTime
  19. EnvSub, timeDif, A_Now, seconds
  20. TextSetString(lsdTextDraw, "/USE LSD : " . timeDif . " sek")
  21. if(timeDif <= 0) {
  22. lsdTime := -1
  23. TextSetString(lsdTextDraw, "/USE LSD : JETZT (" Anzahl_LSD " Pillen)")
  24. _AddChatMessage("Du kannst nun wieder LSD usen!")
  25. }
  26. }
  27. if(goldTime != -1) {
  28. timeDif := goldTime
  29. EnvSub, timeDif, A_Now, seconds
  30. TextSetString(goldTextDraw, "/USE GOLD: " . timeDif . " sek")
  31. if(timeDif <= 0) {
  32. goldTime := -1
  33. TextSetString(goldTextDraw, "/USE GOLD: JETZT (" Anzahl_Gold " g)")
  34. _AddChatMessage("Du kannst nun wieder Gold/Green usen!")
  35. }
  36. }
  37. if(nachwirkungTime != -1) {
  38. timeDif := nachwirkungTime
  39. EnvSub, timeDif, A_Now, seconds
  40. TextSetString(nachwirkungTextDraw, "NACHWIRKUNG: " . timeDif . " sek")
  41. TextSetShown(nachwirkungTextDraw, true)
  42. if(timeDif == 15) {
  43. _AddChatMessage("LSD Nachwirkung in ca. {AA2B2F}" . timeDif . "{CCC8CC} Sekunden!")
  44. }
  45. if(timeDif <= 5) {
  46. _AddChatMessage("LSD Nachwirkung in ca. {AA2B2F}" . timeDif . "{CCC8CC} Sekunden!")
  47. }
  48. if(timeDif <= 0) {
  49. nachwirkungTime := -1
  50. TextSetShown(nachwirkungTextDraw, false)
  51. }
  52. }
  53. if(deathTime != -1 && nachwirkungTime == -1) {
  54. timeDif := deathTime
  55. EnvSub, timeDif, A_Now, seconds
  56. TextSetString(nachwirkungTextDraw, "Respawn: " . timeDif . " sek")
  57. TextSetShown(nachwirkungTextDraw, true)
  58. if(timeDif <= 10) {
  59. _AddChatMessage("Du bist noch ca. {AA2B2F}" . timeDif . "{CCC8CC} Sekunden auf dem Friedhof")
  60. }
  61. if(timeDif <= 0) {
  62. deathTime := -1
  63. TextSetShown(nachwirkungTextDraw, false)
  64. SendChat("/f lebt wieder!")
  65. }
  66. }
  67. return
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement