Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- updateOverlays() {
- if(!WinExist("ahk_exe gta_sa.exe")){
- return
- }
- if(matsTime != -1) {
- timeDif := matsTime
- EnvSub, timeDif, A_Now, seconds
- TextSetString(matsTextDraw, "Materials: " . timeDif . " sek")
- TextSetShown(matsTextDraw, true)
- if(timeDif <= 0) {
- matsTime := -1
- TextSetShown(matsTextDraw, false)
- _AddChatMessage("Du kannst nun deine Mats abholen!")
- SoundBeep, 750, 1000
- }
- }
- if(lsdTime != -1) {
- timeDif := lsdTime
- EnvSub, timeDif, A_Now, seconds
- TextSetString(lsdTextDraw, "/USE LSD : " . timeDif . " sek")
- if(timeDif <= 0) {
- lsdTime := -1
- TextSetString(lsdTextDraw, "/USE LSD : JETZT (" Anzahl_LSD " Pillen)")
- _AddChatMessage("Du kannst nun wieder LSD usen!")
- }
- }
- if(goldTime != -1) {
- timeDif := goldTime
- EnvSub, timeDif, A_Now, seconds
- TextSetString(goldTextDraw, "/USE GOLD: " . timeDif . " sek")
- if(timeDif <= 0) {
- goldTime := -1
- TextSetString(goldTextDraw, "/USE GOLD: JETZT (" Anzahl_Gold " g)")
- _AddChatMessage("Du kannst nun wieder Gold/Green usen!")
- }
- }
- if(nachwirkungTime != -1) {
- timeDif := nachwirkungTime
- EnvSub, timeDif, A_Now, seconds
- TextSetString(nachwirkungTextDraw, "NACHWIRKUNG: " . timeDif . " sek")
- TextSetShown(nachwirkungTextDraw, true)
- if(timeDif == 15) {
- _AddChatMessage("LSD Nachwirkung in ca. {AA2B2F}" . timeDif . "{CCC8CC} Sekunden!")
- }
- if(timeDif <= 5) {
- _AddChatMessage("LSD Nachwirkung in ca. {AA2B2F}" . timeDif . "{CCC8CC} Sekunden!")
- }
- if(timeDif <= 0) {
- nachwirkungTime := -1
- TextSetShown(nachwirkungTextDraw, false)
- }
- }
- if(deathTime != -1 && nachwirkungTime == -1) {
- timeDif := deathTime
- EnvSub, timeDif, A_Now, seconds
- TextSetString(nachwirkungTextDraw, "Respawn: " . timeDif . " sek")
- TextSetShown(nachwirkungTextDraw, true)
- if(timeDif <= 10) {
- _AddChatMessage("Du bist noch ca. {AA2B2F}" . timeDif . "{CCC8CC} Sekunden auf dem Friedhof")
- }
- if(timeDif <= 0) {
- deathTime := -1
- TextSetShown(nachwirkungTextDraw, false)
- SendChat("/f lebt wieder!")
- }
- }
- return
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement