Advertisement
Guest User

Untitled

a guest
May 6th, 2017
775
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.53 KB | None | 0 0
  1. #IfWinActive, GTA:SA:MP
  2. #Include %A_ScriptDir%/API/SAMP.ahk
  3. #SingleInstance, force
  4. #UseHook
  5. #NoEnv
  6. #Persistent
  7. Process, Priority, , High
  8.  
  9. global version := 0.1
  10. global chatTick := 0
  11. global chatTimeout := 700
  12. global iRefreshObj := 0
  13. global iUpdateTickObj := 1000
  14. global oObjects := []
  15. global iRefreshPicks := 0
  16. global iUpdateTickPicks := 1000
  17. global oPickups := []
  18. global keyprefix := "{950505}[Triaden-Keybinder]{CCCCCC} "
  19.  
  20. if(!A_IsAdmin){
  21. Run *RunAs "%A_ScriptFullPath%",, UseErrorLevel
  22. if(ErrorLevel){
  23. MsgBox, 21, Fehler!, Der Traiden-Keybinder muss als Administrator gestartet werden`, damit er komplett funktionsfähig ist!
  24. IfMsgBox, Retry
  25. Reload
  26. else
  27. ExitApp
  28. }
  29. return
  30. }
  31.  
  32. IfExist update.bat
  33. {
  34. FileDelete update.bat
  35. }
  36.  
  37.  
  38. UrlDownloadToFile http://ni1064718_2.vweb06.nitrado.net/Keybinder/Triaden/version.txt, version.txt
  39. FileRead, NewestVersion, version.txt
  40. FileDelete version.txt
  41. if(NewestVersion > Version)
  42. {
  43. MsgBox, 4,, Die neue Version %NewestVersion% ist verfügbar.`nMöchtest du das Programm aktualisieren?
  44. IfMsgBox, YES
  45. {
  46. SplashTextOn, 200, 50, Triaden Keybinder , Der Triaden Keybinder wird geupdated! Bitte warten...
  47. UrlDownloadToFile http://ni1064718_2.vweb06.nitrado.net/Keybinder/Triaden/Triaden-Keybinder.exe, %A_ScriptName%.new
  48. UpdateBat=
  49. (
  50. Ping 127.0.0.1
  51. Del "%A_ScriptName%"
  52. Rename "%A_ScriptName%.new" "%A_ScriptName%"
  53. "%A_ScriptName%"
  54. )
  55. FileAppend, %UpdateBat%, update.bat
  56. Run, update.bat
  57. ExitApp
  58. SplashTextOff
  59. }
  60. }
  61.  
  62. FileCreateDir, %A_MyDocuments%\Triaden-Keybinder\
  63. FileCreateDir, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste
  64. FileCreateDir, %A_MyDocuments%\Triaden-Keybinder\Images
  65. FileCreateDir, %A_MyDocuments%\Triaden-Keybinder\Sonstiges
  66. FileInstall, Images\background.jpg, %A_MyDocuments%\Triaden-Keybinder\Images\background.jpg, 1
  67. FileInstall, Sonstiges\Gangzone.mp3, %A_MyDocuments%\Triaden-Keybinder\Sonstiges\Gangzone.mp3, 1
  68.  
  69. SetTimer, AutoLoginTimer, on
  70. SetTimer, HPCheck, 50
  71. SetTimer, ArmorCheck, 50
  72. SetTimer, CheckGegner, 5000
  73. SetTimer, updateGUI, 1000
  74. SetTimer, MoneyCheck, 100
  75. SetTimer, AutoFunks, 100
  76.  
  77. ini = %A_MyDocuments%\Triaden-Keybinder\Keybinder.ini
  78. If(!FileExist(ini))
  79. {
  80. IniWrite, 0, %ini%, Einstellungen, Passwort
  81. IniWrite, 0, %ini%, Daten, LoginCounter
  82. IniWrite, 0, %ini%, Daten, Kills
  83. IniWrite, 0, %ini%, Daten, Deaths
  84. IniWrite, 0, %ini%, Daten, KillSpruch
  85. IniWrite, 0, %ini%, Daten, DeathSpruch
  86. IniWrite, 0, %ini%, Daten, PickSpruch
  87. IniWrite, 0, %ini%, Daten, ALotto
  88. IniWrite, 0, %ini%, Daten, AZoll
  89.  
  90. IniWrite, 0, %ini%, Gangfight, GFKills
  91. IniWrite, 0, %ini%, Gangfight, GFDeaths
  92.  
  93. ALPasswort := ""
  94. kspruch := ""
  95. dspruch := ""
  96. pspruch := ""
  97. IniWrite, %ALPasswort%, %ini%, Einstellungen , Passwort
  98. IniWrite, %kspruch%, %ini%, Daten , KillSpruch
  99. IniWrite, %dspruch%, %ini%, Daten , DeathSpruch
  100. IniWrite, %pspruch%, %ini%, Daten , PickSpruch
  101. }
  102. IniRead, ALPasswort, %ini%, Einstellungen, Passwort
  103. IniRead, logincounter, %ini%, Daten, LoginCounter
  104. IniRead, kills, %ini%, Daten, Kills
  105. IniRead, deaths, %ini%, Daten, Deaths
  106. IniRead, kspruch, %ini%, Daten, KillSpruch
  107. IniRead, dspruch, %ini%, Daten, DeathSpruch
  108. IniRead, pspruch, %ini%, Daten, PickSpruch
  109. IniRead, alotto, %ini%, Daten, ALotto
  110. IniRead, azoll, %ini%, Daten, AZoll
  111.  
  112. IniRead, gfkills, %ini%, Gangfight, GFKills
  113. IniRead, gfdeaths, %ini%, Gangfight, GFDeaths
  114.  
  115.  
  116. Gui, 2:Add, Picture, x-8 y-1 w670 h230 , %A_MyDocuments%\Triaden-Keybinder\Images\background.jpg
  117. Gui, 2:Add, Button, x22 y19 w180 h40 gConnectSAMP, Auf LyD Server verbinden...
  118. Gui, 2:Add, Button, x22 y69 w180 h40 gConnectTS, Auf LyD Teamspeak verbinden...
  119. Gui, 2:Add, Button, x22 y119 w180 h40 gOpenForum, Forum öffnen...
  120. Gui, 2:Add, Button, x22 y169 w180 h40 gOpenUCP, UCP öffnen...
  121. Gui, 2:Add, Text, x232 y39 w200 h20 +Center +BackgroundTrans cWhite vkillsg, Morde: %kills%
  122. Gui, 2:Add, Text, x232 y69 w200 h20 +Center +BackgroundTrans cWhite vdeathsg, Tode: %deaths%
  123. Gui, 2:Add, Text, x232 y99 w200 h20 +Center +BackgroundTrans cWhite vgfkillsg, Gangfight Morde: %gfkills%
  124. Gui, 2:Add, Text, x232 y129 w200 h20 +Center +BackgroundTrans cWhite vgfdeathsg, Gangfight Tode: %gfdeaths%
  125. Gui, 2:Add, Text, x232 y159 w200 h20 +Center +BackgroundTrans cWhite vloginsg, Aktuelle Login's: %logincounter%
  126. Gui, 2:Add, GroupBox, x222 y19 w220 h190 +Center cBlack, Statistiken
  127. Gui, 2:Add, Button, x462 y19 w180 h40 gKeySettings, Einstellungen
  128. Gui, 2:Add, Button, x462 y69 w180 h40 , Keybinder Hilfe
  129. Gui, 2:Add, Button, x462 y119 w180 h40 gKeyBug, Keybinder Bug melden
  130. Gui, 2:Add, Button, x462 y169 w180 h40 , Gegnerliste [ - Folgt noch - ]
  131. Gui, 2:Show, w665 h232, Triaden - Keybinder | Version: %version%
  132. Gui, 3:Add, Picture, x-8 y-1 w560 h220 , %A_MyDocuments%\Triaden-Keybinder\Images\background.jpg
  133. Gui, 3:Add, Button, x12 y69 w170 h30 gSavePassword, Passwort Speichern
  134. Gui, 3:Add, Text, x12 y19 w170 h20 +Center +BackgroundTrans cWhite, Passwort für das AutoLogin:
  135. Gui, 3:Add, Edit, x12 y39 w170 h20 +Center vpass, %ALPasswort%
  136. Gui, 3:Add, Text, x202 y19 w330 h20 +Center +BackgroundTrans cWhite, Killspruch:
  137. Gui, 3:Add, Edit, x202 y39 w330 h20 +Center vks, %kspruch%
  138. Gui, 3:Add, Text, x202 y69 w330 h20 +Center +BackgroundTrans cWhite, Deathspruch:
  139. Gui, 3:Add, Edit, x202 y89 w330 h20 +Center vds, %dspruch%
  140. Gui, 3:Add, Text, x202 y119 w330 h20 +Center +BackgroundTrans cWhite, Pickwaffenspruch:
  141. Gui, 3:Add, Edit, x202 y139 w330 h20 +Center vps, %pspruch%
  142. Gui, 3:Add, Button, x202 y169 w330 h30 gSaveSpruche, Speichern
  143. return
  144.  
  145.  
  146. KeySettings:
  147. IniRead, ALPasswort, %ini%, Einstellungen, Passwort
  148. IniRead, kspruch, %ini%, Daten, KillSpruch
  149. IniRead, dspruch, %ini%, Daten, DeathSpruch2
  150. IniRead, pspruch, %ini%, Daten, PickSpruch
  151. Gui, 3:Show, w555 h220, Triaden - Keybinder | Einstellungen | %version%
  152. return
  153.  
  154. SavePassword:
  155. GuiControlGet,ALPasswort ,,Pass
  156. IniWrite, %ALPasswort%, %ini%, Einstellungen , Passwort
  157. MsgBox, 0, Passwort gespeichert!, Dein Passwort wurde erfolgreich gespeichert!
  158. return
  159.  
  160. ConnectSAMP:
  161. RegRead GTA_SA_EXE, HKEY_CURRENT_USER, Software\SAMP, gta_sa_exe
  162. SplitPath, GTA_SA_EXE,, PFAD
  163. Run %Pfad%\samp.exe server.lyd-roleplay.de:7777, %PFAD%
  164. return
  165.  
  166. ConnectTS:
  167. Run ts3server://teamspeak.lyd-roleplay.de/
  168. return
  169.  
  170. OpenForum:
  171. Run http://lyd-roleplay.de/forum/
  172. return
  173.  
  174. OpenUCP:
  175. Run http://ucp.lyd-roleplay.de/
  176. return
  177.  
  178. SaveSpruche:
  179. GuiControlGet,kspruch ,,Ks
  180. IniWrite, %kspruch%, %ini%, Daten , KillSpruch
  181.  
  182. GuiControlGet,dspruch ,,Ds
  183. IniWrite, %dspruch%, %ini%, Daten , DeathSpruch
  184.  
  185. GuiControlGet,pspruch ,,Ps
  186. IniWrite, %pspruch%, %ini%, Daten , PickSpruch
  187. MsgBox, 0, Sprüche gespeichert!, Dein Sprüche wurden erfolgreich gespeichert!
  188. return
  189.  
  190. KeyBug:
  191. run https://www.lyd-roleplay.de/forum/index.php/ConversationAdd/?userID=26129
  192. return
  193.  
  194. GuiClose:
  195. ExitApp
  196.  
  197.  
  198. ;==========================================================================================================================================
  199. ;==============================================================[ Timer ]===================================================================
  200. AutoFunks:
  201. GetChatLine(0, ChatLine0)
  202. if(instr(ChatLine0, "Du bist nun im AFK-Modus. Deine Zahltag-Zeit läuft nun nichtmehr weiter."))
  203. {
  204. TimerSekunden := 0
  205. TimerMinuten := 0
  206. SetTimer, Counter, 1000
  207. AddChatMessage(keyprefix "{FF6600}AFK: {AFAFAF}Deine AFK-Zeit wird gezählt!")
  208. Sleep 100
  209. }
  210. GetChatLine(1, ChatLine1)
  211. if(instr(ChatLine1, "Du bist nun nicht mehr im AFK-Modus."))
  212. {
  213. AddChatMessage(keyprefix "{FF6600}AFK: {AFAFAF}Du warst " TimerMinuten " Minute(n) und " TimerSekunden " Sekunden AFK.")
  214. SetTimer, Counter, Off
  215. }
  216.  
  217. GetChatLine(0, ChatLine0)
  218. if(InStr(ChatLine0, "Gangfightkill an " GetPlayerName() ""))
  219. {
  220. IniRead, deaths, %ini%, Gangfight, GFDeaths
  221. gfdeaths++
  222. sleep 500
  223. Iniwrite, %deaths%, %ini%, Daten, Deaths
  224. position := GetPlayerZone()
  225. stadt := GetPlayerCity()
  226. SendChat("/fc Ich bin gestorben. Ort: " stadt " - " position "")
  227. }
  228. GetChatLine(1, Chatline1)
  229. if(InStr(Chatline1, "hat den Verbrecher " GetPlayerName() " getötet. <<")) {
  230. SendChat("/fc Ich bin im Gefängnis")
  231. }
  232.  
  233. If(GetPlayerHealth() == 0)
  234. {
  235. GetChatLine(0, ChatLine0)
  236. if(InStr(ChatLine0, "Gangfightkill an " GetPlayerName() ""))
  237. {
  238. return
  239. }
  240. else
  241. {
  242. GetChatLine(0, SendChatline0)
  243. if(InStr(SendChatline0,""))
  244. {
  245. IniRead, deaths, %ini%, Daten, Deaths
  246. deaths++
  247. sleep 500
  248. Iniwrite, %deaths%, %ini%, Daten, Deaths
  249. IniRead, gfdeaths, %ini%, Gangfight, GFDeaths
  250. IniRead, deaths, %ini%, Daten, Deaths
  251. globaldeaths := gfdeaths + deaths
  252. zone := GetPlayerZone()
  253. city := GetPlayerCity()
  254. SendChat("/fc Ich bin gestorben. Ort: " city " - " zone "")
  255. AddChatMessage(keyprefix "Du bist gestorben! Deine aktuellen Deaths: {00FFFF}" globaldeaths " !")
  256. if(dspruch == "") {
  257. } else {
  258. SendChat("/ic " dspruch "")
  259. }
  260. sleep 60000
  261. }
  262. }
  263. }
  264.  
  265. GetChatLine(1, Chatline1)
  266. if(InStr(Chatline1, "hat den Verbrecher " GetPlayerName() " getötet. <<")) {
  267. SendChat("/fc Ich bin im Gefängnis")
  268. }
  269.  
  270. GetChatLine(1, line)
  271. if(InStr(line, GetPlayerName() " Gangfightkill an"))
  272. {
  273. gfkills++
  274. IniWrite, %gfkills%, %ini%, Gangfight, GFKills
  275. IniRead, kspruch, %ini%, Daten, KillSpruch
  276. globalKills := kills+gfkills
  277. SendChat("/fc " kspruch " | Kill Nr. " globalKills " ")
  278. Sleep, 100
  279. ShowGameText("~g~+1 GANGZONE KILL", 1000, 3)
  280. Soundplay %A_MyDocuments%\Triaden-Keybinder\Sonstiges\Gangzone.mp3
  281. }
  282. GetChatLine(1, line)
  283. GetChatLine(2, line2)
  284. if(InStr(line, "Du hast ein Verbrechen begangen! (Mord an einem Gangmitglied) Reporter: Polizeizentrale") || InStr(line1, "Du hast ein Verbrechen begangen! (Mord an einem Gangmitglied) Reporter: Polizeizentrale") || InStr(line, "Du hast ein Verbrechen begangen! (Beamten/Zivilisten Mord) Reporter: Polizeizentrale") || InStr(line1, "Du hast ein Verbrechen begangen! (Beamten/Zivilisten Mord) Reporter: Polizeizentrale"))
  285. {
  286. kills++
  287. IniWrite, %kills%, %ini%, Daten, Kills
  288. globalKills := kills+gfkills
  289. IniRead, kspruch, %ini%, Daten, KillSpruch
  290. SendChat("/ic " kspruch " | Kill Nr. " globalKills " ")
  291. Sleep, 100
  292. ShowGameText("~g~+1 STREETZONE KILL", 1000, 3)
  293. }
  294.  
  295. IniRead, alotto, %ini%, Daten, ALotto
  296. if(alotto == 1)
  297. {
  298. GetChatLine(1, Chatline1)
  299. if(InStr(Chatline1, "Die Lottoziehung beginnt um ")) {
  300. random, alottonr, 1, 99
  301. if(GetPlayerMoney() < "1200") {
  302. AddChatMessage(keyprefix "Du hast zu wenig Geld für das automatische Lotto!")
  303. } else {
  304. SendChat("/lotto " alottonr)
  305. }
  306. }
  307. }
  308.  
  309. GetChatLine(0, ChatLine0)
  310. if(InStr(ChatLine0, "* " GetPlayerName() " nimmt Spice zu sich.")) {
  311. sleep 10000
  312. AddChatMessage(keyprefix "Du kannst wieder Spice nehmen!")
  313. }
  314.  
  315. GetChatLine(0, SendChatline0)
  316. if(InStr(SendChatline0,"Tippe nun '/Accept Anwalt' um die ")) {
  317. SendChat("/Accept anwalt")
  318. Sleep, 4000
  319. }
  320.  
  321. GetChatLine(0, SendChatline0)
  322. if(instr(SendChatline0,"Du hast die Befreiung von"))
  323. {
  324. SendChat("/fc Ich bin aus dem Gefängniss wieder draussen!")
  325. sleep 10000
  326. }
  327.  
  328. if(IsPlayerInRangeOfPoint(-381.9350,-1426.4290,26.0573, 2.0)){
  329. SendChat("/zerbrechen")
  330. sleep 10000
  331. }
  332.  
  333. if(IsPlayerInRangeOfPoint(758.5164,375.0325,23.1956, 2.0)) {
  334. SendChat("/gheilen")
  335. sleep 1000
  336. }
  337.  
  338. GetChatLine(0, SendChatline0)
  339. if(InStr(SendChatline0,"hat dir angeboten, dein Fahrzeug für $100 zu reparieren.")) {
  340. SendChat("/Accept repair")
  341. sleep 4000
  342. }
  343.  
  344. GetChatLine(0, SendChatline0)
  345. if(InStr(SendChatline0,"hat dir angeboten, dein Fahrzeug für $1 aufzutanken.")) {
  346. SendChat("/Accept refill")
  347. sleep 4000
  348. }
  349.  
  350. if(azoll == 1) {
  351. GetChatLine(0, SendChatline0)
  352. if(InStr(SendChatline0,"Sie stehen an einer Zollstation, der Zollübergang kostet $500! Befehl: /Zoll")) {
  353. If(IsPlayerDriver() == 1) {
  354. SendChat("/zoll")
  355. sleep 4000
  356. }
  357. }
  358. }
  359. return
  360.  
  361. Counter:
  362. TimerSekunden++
  363. if(TimerSekunden == 60)
  364. {
  365. TimerMinuten++
  366. TimerSekunden := 0
  367. }
  368. return
  369.  
  370. updateGUI:
  371. IniRead, logincounter, %ini%, Daten, LoginCounter
  372. IniRead, kills, %ini%, Daten, Kills
  373. IniRead, deaths, %ini%, Daten, Deaths
  374. IniRead, gfkills, %ini%, Gangfight, GFKills
  375. IniRead, gfdeaths, %ini%, Gangfight, GFDeaths
  376.  
  377. GuiControl, 2:, killsg, Morde: %kills%
  378. GuiControl, 2:, deathsg, Tode: %deaths%
  379. GuiControl, 2:, gfkillsg, Gangfight Morde: %gfkills%
  380. GuiControl, 2:, gfdeathsg, Gangfight Tode: %gfdeaths%
  381. GuiControl, 2:, loginsg, Aktuelle Login's: %logincounter%
  382. return
  383.  
  384. MoneyCheck:
  385. money := getPlayerMoney()
  386. if(money < oldmoney)
  387. {
  388. zwischensumme := Round(stringmath(oldmoney-money), 0)
  389. if(zwischensumme == "ERROR" || zwischensumme == ERROR)
  390. {
  391. }
  392. else
  393. {
  394. ShowGameText("~r~- " zwischensumme " $", 1000, 1)
  395. }
  396. }
  397. if(money > oldmoney)
  398. {
  399. zwischensumme := Round(stringmath(money-oldmoney), 0)
  400. if(zwischensumme == "ERROR" || zwischensumme == ERROR)
  401. {
  402. }
  403. else
  404. {
  405. ShowGameText("~g~+ " zwischensumme " $", 1000, 1)
  406. }
  407. }
  408. oldmoney := getPlayerMoney()
  409. return
  410.  
  411. ArmorCheck:
  412. armor := GetPlayerArmor()
  413. {
  414. if(armor < oldarmor AND oldarmor)
  415. {
  416. armorvar1 := armor
  417. armorvar2 := oldarmor
  418. endvar2 := armorvar1-armorvar2
  419. if(endvar2 < -1)
  420. {
  421. AddChatMessage("{FFFFFF}Du hast soeben {B40226}" endvar2 " Armor {FFFFFF}verloren. Aktuelle Armor: {00FF38}" armor " ")
  422. }
  423. }
  424. else if(armor > oldarmor AND oldarmor)
  425. {
  426. armorvar1 := armor
  427. armorvar2 := oldarmor
  428. endvar2 := armorvar1-armorvar2
  429. if(endvar2 > 1)
  430. {
  431. AddChatMessage("{FFFFFF}Du hast soeben {00FF38}" endvar2 " Armor {FFFFFF}bekommen. Aktuelle Armor: {00FF38}" armor "{FFFFFF}.")
  432. }
  433. }
  434. }
  435. oldarmor := armor
  436. return
  437. HPCheck:
  438. heal := GetPlayerHealth()
  439. {
  440. if(heal < oldheal AND oldheal)
  441. {
  442. healvar1 := heal
  443. healvar2 := oldheal
  444. endvar := healvar1-healvar2
  445. if(endvar < -1)
  446. {
  447. AddChatMessage("{FFFFFF}Du hast soeben {B40226}" endvar " HP {FFFFFF}verloren. Aktuelle HP: {00FF38}" heal " ")
  448. }
  449. }
  450. else if(heal > oldheal AND oldheal)
  451. {
  452. healvar1 := heal
  453. healvar2 := oldheal
  454. endvar := healvar1-healvar2
  455. if(endvar > 1)
  456. {
  457. AddChatMessage("{FFFFFF}Du hast soeben {00FF38}" endvar " HP {FFFFFF}bekommen. Aktuelle HP: {00FF38}" heal "{FFFFFF}.")
  458. }
  459. }
  460. }
  461.  
  462. CheckGegner:
  463. Suspend Permit
  464. callFuncForAllStreamedInPlayers("GegnerListe")
  465. if (!WinExist("GTA:SA:MP") || GetPlayerState() != 14) {
  466. gegnerListe := []
  467. return
  468. }
  469. if (gegnerListe.Length() <= 0) {
  470. if (!FileExist("gegner.txt"))
  471. return
  472. Loop, Read, gegner.txt
  473. gegnerListe.Push(Object("NAME", A_LoopReadLine, "ID", getPlayerIdByName(A_LoopReadLine)))
  474. }
  475. if (!WinActive("GTA:SA:MP"))
  476. return
  477. for i, o in gegnerListe {
  478. playerID := getPlayerIdByName(o.NAME)
  479. if (playerID != o.ID) {
  480. o.ID := playerID
  481. if (gegnerOfflineMsg && playerID == -1)
  482. AddChatMessage("[Gegnerliste] " o.NAME " hat sich {FF0000}ausgeloggt")
  483. else if (gegnerOnlineMsg && playerID != -1)
  484. AddChatMessage("[Gegnerliste] " o.NAME " (" playerID ") hat sich {00FF00}eingeloggt")
  485. }
  486. }
  487. return
  488.  
  489. AutoLoginTimer:
  490. IniRead, ALPasswort, %ini%, Einstellungen, Passwort
  491. if(ALPasswort == "")
  492. {
  493. return
  494. }
  495. if(IsDialogOpen() && GetDialogID() == "1002")
  496. {
  497. SendInput, %ALPasswort%{enter}
  498. sleep 500
  499. AddChatMessage(keyprefix "Du wurdest erfolgreich mit dem Keybinder eingeloggt!")
  500. AddChatMessage(keyprefix "Viel Spaß beim Spielen!")
  501. IniRead, logincounter, %ini%, Daten, LoginCounter
  502. logincounter++
  503. IniWrite, %logincounter%, %ini%, Daten, LoginCounter
  504. FormatTime, Zeit,%A_Now%,HH
  505. if (Zeit > 5)
  506. {
  507. if (Zeit < 12)
  508. {
  509. sleep 1
  510. AddChatMessage("{FF6600}WILLKOMMEN: {FFFFFF}Schönen guten Morgen " GetPlayerName() "!")
  511. return
  512. }
  513. }
  514. if (Zeit > 11)
  515. {
  516. if (Zeit < 18)
  517. {
  518. sleep 1
  519. AddChatMessage("{FF6600}WILLKOMMEN: {FFFFFF}Schönen Tag noch " GetPlayerName() "!")
  520. return
  521. }
  522. }
  523. if (Zeit > 17)
  524. {
  525. if (Zeit < 22)
  526. {
  527. sleep 1
  528. AddChatMessage("{FF6600}WILLKOMMEN: {FFFFFF}Schönen Abend noch " GetPlayerName() "!")
  529. return
  530. }
  531. }
  532. if (Zeit > 21)
  533. {
  534. if (Zeit < 25)
  535. {
  536. sleep 1
  537. AddChatMessage("{FF6600}WILLKOMMEN: {FFFFFF}Schönen Nacht noch " GetPlayerName() "!")
  538. return
  539. }
  540. }
  541. if(Zeit=0)
  542. {
  543. sleep 1
  544. AddChatMessage("{FF6600}WILLKOMMEN: {FFFFFF}Schönen Nacht noch " GetPlayerName() "!")
  545. return
  546. }
  547. if (Zeit > 0)
  548. {
  549. if (Zeit < 6)
  550. {
  551. sleep 1
  552. AddChatMessage("{FF6600}WILLKOMMEN: {FFFFFF}Schönen Nacht noch " GetPlayerName() "!")
  553. return
  554. }
  555. }
  556. else
  557. {
  558. sleep 1
  559. AddChatMessage("{FF6600}WILLKOMMEN: {FFFFFF}Viel Spaß noch " GetPlayerName() "!")
  560. return
  561. }
  562. }
  563. return
  564.  
  565. ;==========================================================================================================================================
  566. ;==============================================================[ Keybinds ]================================================================
  567. ~M::
  568. if(IsInChat() || IsDialogOpen())
  569. {
  570. SendInput, {%A_ThisHotkey%}
  571. return
  572. }
  573. if (chatTick + chatTimeout > A_TickCount) {
  574. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  575. }
  576. else
  577. {
  578. if(IsPlayerInAnyVehicle() == 1)
  579. {
  580. if(IsPlayerDriver() == 1)
  581. {
  582. FormatTime, Zeit, %A_Now%, HH
  583. if(GetVehicleEngineState() == 0)
  584. {
  585. SendChat("/Motor")
  586. if(GetVehicleType() == 4)
  587. {
  588. SendChat("/helm")
  589. }
  590. if(GetVehicleLightState() == 0)
  591. {
  592. if (Zeit > "17")
  593. {
  594. if (Zeit < "9")
  595. {
  596. SendChat("/Licht")
  597. }
  598. }
  599. }
  600. }
  601. else
  602. {
  603. SendChat("/Motor")
  604. if(GetVehicleType() == 4)
  605. {
  606. SendChat("/helm")
  607. }
  608. if(GetVehicleLightState() == 1)
  609. {
  610. SendChat("/licht")
  611. }
  612. }
  613. }
  614. else
  615. {
  616. AddChatMessage(keyprefix "Du befindest dich nicht auf dem Fahrersitz.")
  617. return
  618. }
  619. }
  620. else
  621. {
  622. AddChatMessage(keyprefix "Du befindest dich in keinem Fahrzeug.")
  623. return
  624. }
  625. chatTick := A_TickCount
  626. }
  627. return
  628.  
  629. ~X::
  630. if(IsInChat() || IsDialogOpen())
  631. {
  632. Send, {%A_ThisHotkey%}
  633. }
  634. else
  635. {
  636. if (chatTick + chatTimeout > A_TickCount) {
  637. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  638. }
  639. else {
  640. {
  641. if(IsPlayerInRangeOfPoint(2324.5957,-1014.0305,1050.2109, 2.0) || IsPlayerInRangeOfPoint(-2655.9614,1416.1271,906.2734, 2.0)) {
  642. SendChat("/clubwaffen")
  643. }
  644. if(IsPlayerInRangeOfPoint(2313.5081,-1008.7404,1050.2109, 2.0) || IsPlayerInRangeOfPoint(-2653.5667,1413.6112,906.2734, 2.0)) {
  645. SendChat("/clubheal")
  646. }
  647. if(IsPlayerInRangeOfPoint(-2719.6331,-318.8333,7.8438, 2.0)) {
  648. SendChat("/gangwaffen")
  649. }
  650. if(IsPlayerInRangeOfPoint(-2722.4104,-321.3080,7.8438, 2.0)) {
  651. SendChat("/waffenlager")
  652. }
  653. if(IsPlayerInRangeOfPoint(-85.5106,2.5403,2.6930, 2.0)) {
  654. SendChat("/getsamen")
  655. }
  656. if(IsPlayerInRangeOfPoint(660.1547,-1869.3678,5.5537, 2.0)) {
  657. SendChat("/kampfstil")
  658. }
  659. if(IsPlayerInRangeOfPoint(673.3032,-1892.3392,4.2861, 7.0)) {
  660. SendChat("/grillen")
  661. }
  662. if(IsPlayerInRangeOfPoint(-1510.5673,1975.2845,48.4219, 2.0)) {
  663. SendChat("/wcodes")
  664. sleep 1800000
  665. AddChatMessage("{00FF00}[NineDemons - Keybinder]{CCCCCC} Du kannst wieder Wantedcodes holen!")
  666. }
  667. if(IsPlayerInRangeOfPoint(361.9383,173.5228,1008.3828, 2.0)) {
  668. SendChat("/stadthalle")
  669. }
  670. if(IsPlayerInRangeOfPoint(1199.5741,-886.0266,43.4391, 2.0)) {
  671. SendChat("/drivein")
  672. }
  673. dist := getDistanceToObj(2942)
  674. if (dist < 2.0 && dist != -1) {
  675. SendChat("/automat")
  676. }
  677. if(IsPlayerInRangeOfPoint(312.2440,-165.9505,999.6010, 2.0) || IsPlayerInRangeOfPoint(295.5446,-80.1187,1001.5156, 2.0) || IsPlayerInRangeOfPoint(296.5771,-37.9326,1001.5156, 2.0)) {
  678. SendChat("/wmenu")
  679. }
  680. if(IsPlayerInRangeOfPoint(2320.4712,-1008.2040,1054.7188, 2.0)) {
  681. SendChat("/automat")
  682. }
  683. dist := getDistanceToPickup(1650)
  684. if(dist < 2.0 && dist != -1) {
  685. SendChat("/snackshop")
  686. sleep 100
  687. SendInput, {enter}
  688. }
  689. dist := getDistanceToPickup(1275)
  690. if(dist < 2.0 && dist != -1) {
  691. SendChat("/jobkleidung")
  692. }
  693. if(IsPlayerInRangeOfPoint(207.3989,-106.3428,1005.1328, 30.0) || IsPlayerInRangeOfPoint(219.3809,-7.5742,1001.2109, 30.0)) {
  694. SendChat("/kleidung")
  695. }
  696. if(IsPlayerInRangeOfPoint(2.1037,-28.9890,1003.5494, 2.0) || IsPlayerInRangeOfPoint(1.9459,-29.0145,1003.5494, 2.0) || IsPlayerInRangeOfPoint(1.9863,-28.9404,1003.5494, 2.0) || IsPlayerInRangeOfPoint(1.9775,-29.0142,1003.5494, 2.0)) {
  697. SendChat("/supermarkt")
  698. }
  699. if(IsPlayerInRangeOfPoint(-2236.7659,130.4098,1035.4141, 2.0)) {
  700. SendChat("/handyshop")
  701. }
  702. if(IsPlayerInRangeOfPoint(548.1861,-1285.3843,17.2212 ,2.0)) {
  703. SendChat("/wartungen")
  704. SendInput, {enter}
  705. }
  706. if(IsPlayerInRangeOfPoint(249.1411,67.5013,1003.6406, 2.0)) {
  707. if(GetPlayerWanteds() == 1) {
  708. SendChat("/wantedticket")
  709. sleep 500
  710. SendInput, {enter}
  711. } else if(GetPlayerWanteds() == 2) {
  712. SendChat("/wantedticket")
  713. sleep 500
  714. SendInput, {down} {enter}
  715. }
  716. else if(GetPlayerWanteds() == 3) {
  717. SendChat("/wantedticket")
  718. sleep 500
  719. SendInput, {down} {down} {enter}
  720. } else if(GetPlayerWanteds() > 3) {
  721. AddChatMessage(keyprefix "Du hast zu viele Wanteds für ein Wantedticket!")
  722. }
  723. }
  724. if(IsPlayerInRangeOfPoint(2349.7488,-1246.3859,22.5000, 2.0) || IsPlayerInRangeOfPoint(1685.7859,1746.3055,10.8251, 30.0)) {
  725. SendInput, t/safebox{space}
  726. }
  727. if(IsPlayerInRangeOfPoint(2313.1011,-1013.3186,1050.2109, 2.0) || IsPlayerInRangeOfPoint(499.5332,-20.9066,1000.6797, 2.0) || IsPlayerInRangeOfPoint(2000.9357,1009.9331,994.4688, 2.0) || IsPlayerInRangeOfPoint(-2653.7085,1407.0455,906.2734, 2.0)) {
  728. SendChat("/getraenk")
  729. }
  730. if(IsPlayerInRangeOfPoint(1310.1656,-1368.4080,13.5488, 2.0)) {
  731. SendChat("/scheiden")
  732. sleep 100
  733. SendInput, t/heiraten{space}
  734. }
  735. if(IsPlayerInRangeOfPoint(1432.2330,-997.4605,1639.7911, 2.0) || IsPlayerInRangeOfPoint(292.4536,180.1510,1007.1794, 2.0)) {
  736. SendChat("/bank")
  737. }
  738. if(IsPlayerInRangeOfPoint(1441.9370,-991.9668,1639.7843, 2.0)) {
  739. SendChat("/ueberweisen")
  740. }
  741. if(IsPlayerInRangeOfPoint(1438.4084,-997.2498,1639.7911, 2.0) || IsPlayerInRangeOfPoint(298.9324,179.0212,1007.1719, 2.0)) {
  742. SendChat("/kredit")
  743. }
  744. if(IsPlayerInRangeOfPoint(296.8056,188.3641,1007.1719, 2.0)) {
  745. SendChat("/tresoraufbrechen")
  746. }
  747. if(IsPlayerInRangeOfPoint(1083.2622,-1233.8071,15.8203, 2.0)) {
  748. SendInput, t/newsspenden{space}
  749. }
  750. if(IsPlayerInRangeOfPoint(822.3347,1.8946,1004.1797, 2.0)) {
  751. SendChat("/post")
  752. }
  753. if(IsPlayerInRangeOfPoint(2013.6093,-1437.7383,13.5547, 2.0)) {
  754. SendChat("/krankenversicherung")
  755. }
  756. if(IsPlayerInRangeOfPoint(1234.2764,-1823.8817,13.5910, 2.0)) {
  757. SendChat("/fahrpruefung")
  758. }
  759. if(IsPlayerInRangeOfPoint(358.8116,180.4077,1008.3828, 2.0) || IsPlayerInRangeOfPoint(358.7967,184.3770,1008.3828, 2.0)) {
  760. SendChat("/zulassungsstelle")
  761. }
  762. if(IsPlayerInRangeOfPoint(358.8393,167.5780,1008.3828, 2.0)) {
  763. SendChat("/zollpass")
  764. }
  765. if(IsPlayerInRangeOfPoint(2143.8774,1641.5787,993.5761, 2.0)) {
  766. SendChat("/bankausrauben")
  767. }
  768. if(IsPlayerInRangeOfPoint(359.0193,210.1899,1008.3828, 2.0)) {
  769. SendChat("/rechtsschutz")
  770. }
  771. if(IsPlayerInRangeOfPoint(1993.3606,1014.4103,994.8906, 6.0) || IsPlayerInRangeOfPoint(1993.0372,1021.1268,994.8906, 6.0)) {
  772. SendChat("/spielautomat")
  773. }
  774. if(IsPlayerInRangeOfPoint(1833.2791,-1402.6633,13.4297, 2.0)) {
  775. SendChat("/haustiershop")
  776. }
  777. if(IsPlayerInRangeOfPoint(-224.8247,1404.7089,27.7734, 2.0)) {
  778. SendChat("/angelshop")
  779. }
  780. if(IsPlayerInRangeOfPoint(1510.2080,-1847.7222,13.5260, 2.0)) {
  781. SendChat("/illegalejobs")
  782. }
  783. if(IsPlayerInRangeOfPoint(371.4330,-2056.0347,7.9240, 4.0) || IsPlayerInRangeOfPoint(356.5282,-2149.6560,7.8949, 2.0) || IsPlayerInRangeOfPoint(377.2954,-67.6264,1001.5151, 2.0) || IsPlayerInRangeOfPoint(375.4734,-119.2037,1001.4995, 2.0) || IsPlayerInRangeOfPoint(-2035.9899,-98.4161,35.1641, 2.9)) {
  784. SendChat("/ticketkaufen")
  785. }
  786. if(IsPlayerInRangeOfPoint(408.8119,-2065.0706,7.8359, 4.0) || IsPlayerInRangeOfPoint(408.7760,-2073.3977,7.8359, 2.0) || IsPlayerInRangeOfPoint(408.6625,-2078.1372,7.8359, 2.0) || IsPlayerInRangeOfPoint(408.5905,-2083.7053,7.8359, 2.0) || IsPlayerInRangeOfPoint(408.3341,-2087.3726,7.8359, 2.0) || IsPlayerInRangeOfPoint(408.2417,-2093.9336,7.8659, 2.0) || IsPlayerInRangeOfPoint(408.6141,-2100.1831,7.8663, 2.0) || IsPlayerInRangeOfPoint(408.4341,-2107.2837,7.8661, 2.0) || IsPlayerInRangeOfPoint(408.1996,-2116.0547,7.8659, 2.0)) {
  787. SendChat("/angeln")
  788. }
  789. if(IsPlayerInRangeOfPoint(377.0964,-67.8239,1001.5151, 2.0) || IsPlayerInRangeOfPoint(369.9963,-6.1303,1001.8589, 2.0) || IsPlayerInRangeOfPoint(381.7270,-2165.9314,7.8514, 2.0) || IsPlayerInRangeOfPoint(396.2958,-2152.5627,7.8399, 2.0) || IsPlayerInRangeOfPoint(369.5510,-6.2668,1001.8589, 2.0) || IsPlayerInRangeOfPoint(375.4883,-119.0219,1001.4995, 2.0) || IsPlayerInRangeOfPoint(369.8234,-6.0924,1001.8589, 2.0) || IsPlayerInRangeOfPoint(375.4071,-119.2446,1001.4995, 2.0) || IsPlayerInRangeOfPoint(369.6609,-6.1272,1001.8589, 2.0) || IsPlayerInRangeOfPoint(375.6515,-119.0563,1001.4995, 2.0)) {
  790. SendChat("/essen")
  791. }
  792. chatTick := A_TickCount
  793. }
  794. }
  795. }
  796. return
  797.  
  798. ~L::
  799. if(IsInChat() || IsDialogOpen())
  800. {
  801. Send, {%A_ThisHotkey%}
  802. } else {
  803. if (chatTick + chatTimeout > A_TickCount) {
  804. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  805. } else {
  806. SendChat("/flock")
  807. }
  808. chatTick := A_TickCount
  809. }
  810. return
  811.  
  812. ~K::
  813. if(IsInChat() || IsDialogOpen())
  814. {
  815. Send, {%A_ThisHotkey%}
  816. } else {
  817. if (chatTick + chatTimeout > A_TickCount) {
  818. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  819. } else {
  820. SendChat("/carlock")
  821. }
  822. chatTick := A_TickCount
  823. }
  824. return
  825.  
  826. 1::
  827. if(IsInChat() || IsDialogOpen())
  828. {
  829. Send, {%A_ThisHotkey%}
  830. } else {
  831. if(chatTick + chatTimeout > A_TickCount){
  832. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  833. } else {
  834. SendChat("/nimmspice")
  835. }
  836. chatTick := A_TickCount
  837. }
  838. return
  839.  
  840. 2::
  841. if(IsInChat() || IsDialogOpen())
  842. {
  843. SendInput, %A_ThisHotkey%
  844. return
  845. }
  846. fID := PlayerInput("Bitte gib die ID ein: ")
  847. If (fID = "")
  848. {
  849. AddChatMessage(keyprefix "Fehler: Keine ID eingegeben!")
  850. }
  851. else
  852. {
  853. loop
  854. {
  855. if (chatTick + chatTimeout > A_TickCount) {
  856. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  857. } else {
  858. SendChat("/dfinden " fID)
  859. if fID is number
  860. {
  861. ShowGameText("~w~ID: ~y~" FID "~w~ gesucht", 2000, 1)
  862. }
  863. else
  864. {
  865. AddChatMessage(keyprefix "Fehler: Keine gültige ID eingegeben!{FFFFFF}")
  866. return
  867. }
  868. chatTick := A_TickCount
  869. }
  870. KeyWait, 2 , D T10
  871. If !ErrorLevel
  872. {
  873. AddChatMessage(keyprefix "Info: Du hast die Suche abgebrochen!{FFFFFF}")
  874. return
  875. }
  876. }
  877. }
  878. return
  879.  
  880. 3::
  881. if(IsInChat() || IsDialogOpen())
  882. {
  883. SendInput, %A_ThisHotkey%
  884. return
  885. }
  886. if (chatTick + chatTimeout > A_TickCount) {
  887. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  888. } else {
  889. SendInput, t/suche{space}
  890. }
  891. chatTick := A_TickCount
  892. return
  893.  
  894. 4::
  895. if(IsInChat() || IsDialogOpen())
  896. {
  897. SendInput, %A_ThisHotkey%
  898. return
  899. }
  900. if (chatTick + chatTimeout > A_TickCount) {
  901. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  902. } else {
  903. if(getPlayerHealth() > 90)
  904. {
  905. AddChatMessage(keyprefix "Du hast über 89 HP und kannst somit keine Kekse essen!")
  906. }
  907. else if(getPlayerHealth() == 89)
  908. {
  909. SendChat("/isskeks")
  910. AddChatMessage(keyprefix "Du hast 1 Keks gegessen!")
  911. }
  912. else if(getPlayerHealth() == 88)
  913. {
  914. SendChat("/isskeks")
  915. AddChatMessage(keyprefix "Du hast 1 Keks gegessen!")
  916. }
  917. else if(getPlayerHealth() == 87)
  918. {
  919. SendChat("/isskeks")
  920. Sleep, 200
  921. SendChat("/isskeks")
  922. Sleep, 200
  923. AddChatMessage(keyprefix "Du hast 2 Kekse gegessen!")
  924. }
  925. else if(getPlayerHealth() == 86)
  926. {
  927. SendChat("/isskeks")
  928. Sleep, 200
  929. SendChat("/isskeks")
  930. Sleep, 200
  931. AddChatMessage(keyprefix "Du hast 2 Kekse gegessen!")
  932. }
  933. else if(getPlayerHealth() == 85)
  934. {
  935. SendChat("/isskeks")
  936. Sleep, 200
  937. SendChat("/isskeks")
  938. Sleep, 200
  939. SendChat("/isskeks")
  940. Sleep, 200
  941. AddChatMessage(keyprefix "Du hast 3 Kekse gegessen!")
  942. }
  943. else if(getPlayerHealth() == 84)
  944. {
  945. SendChat("/isskeks")
  946. Sleep, 200
  947. SendChat("/isskeks")
  948. Sleep, 200
  949. SendChat("/isskeks")
  950. Sleep, 200
  951. AddChatMessage(keyprefix "Du hast 3 Kekse gegessen!")
  952. }
  953. else if(getPlayerHealth() == 83)
  954. {
  955. SendChat("/isskeks")
  956. Sleep, 200
  957. SendChat("/isskeks")
  958. Sleep, 200
  959. SendChat("/isskeks")
  960. Sleep, 200
  961. SendChat("/isskeks")
  962. Sleep, 200
  963. AddChatMessage(keyprefix "Du hast 4 Kekse gegessen!")
  964. }
  965. else if(getPlayerHealth() == 82)
  966. {
  967. SendChat("/isskeks")
  968. Sleep, 200
  969. SendChat("/isskeks")
  970. Sleep, 200
  971. SendChat("/isskeks")
  972. Sleep, 200
  973. SendChat("/isskeks")
  974. Sleep, 200
  975. AddChatMessage(keyprefix "Du hast 4 Kekse gegessen!")
  976. }
  977. else if(getPlayerHealth() == 81)
  978. {
  979. SendChat("/isskeks")
  980. Sleep, 200
  981. SendChat("/isskeks")
  982. Sleep, 200
  983. SendChat("/isskeks")
  984. Sleep, 200
  985. SendChat("/isskeks")
  986. Sleep, 200
  987. SendChat("/isskeks")
  988. Sleep, 200
  989. AddChatMessage(keyprefix "Du hast 5 Kekse gegessen!")
  990. }
  991. else if(getPlayerHealth() == 80)
  992. {
  993. SendChat("/isskeks")
  994. Sleep, 200
  995. SendChat("/isskeks")
  996. Sleep, 200
  997. SendChat("/isskeks")
  998. Sleep, 200
  999. SendChat("/isskeks")
  1000. Sleep, 200
  1001. SendChat("/isskeks")
  1002. Sleep, 200
  1003. AddChatMessage(keyprefix "Du hast 5 Kekse gegessen!")
  1004. }
  1005. else if(getPlayerHealth() == 79)
  1006. {
  1007. SendChat("/isskeks")
  1008. Sleep, 200
  1009. SendChat("/isskeks")
  1010. Sleep, 200
  1011. SendChat("/isskeks")
  1012. Sleep, 200
  1013. SendChat("/isskeks")
  1014. Sleep, 200
  1015. SendChat("/isskeks")
  1016. Sleep, 200
  1017. SendChat("/isskeks")
  1018. Sleep, 200
  1019. AddChatMessage(keyprefix "Du hast 6 Kekse gegessen!")
  1020. }
  1021. else if(getPlayerHealth() == 78)
  1022. {
  1023. SendChat("/isskeks")
  1024. Sleep, 200
  1025. SendChat("/isskeks")
  1026. Sleep, 200
  1027. SendChat("/isskeks")
  1028. Sleep, 200
  1029. SendChat("/isskeks")
  1030. Sleep, 200
  1031. SendChat("/isskeks")
  1032. Sleep, 200
  1033. SendChat("/isskeks")
  1034. Sleep, 200
  1035. AddChatMessage(keyprefix "Du hast 6 Kekse gegessen!")
  1036. }
  1037. else if(getPlayerHealth() < 78)
  1038. {
  1039. SendChat("/isskeks")
  1040. Sleep, 200
  1041. SendChat("/isskeks")
  1042. Sleep, 200
  1043. SendChat("/isskeks")
  1044. Sleep, 200
  1045. SendChat("/isskeks")
  1046. Sleep, 200
  1047. SendChat("/isskeks")
  1048. Sleep, 200
  1049. SendChat("/isskeks")
  1050. Sleep, 200
  1051. AddChatMessage(keyprefix "Du hast 6 Kekse gegessen!")
  1052. }
  1053. }
  1054. chatTick := A_TickCount
  1055. return
  1056.  
  1057. 5::
  1058. if(IsInChat() || IsDialogOpen())
  1059. {
  1060. SendInput, %A_ThisHotkey%
  1061. } else {
  1062. if (chatTick + chatTimeout > A_TickCount) {
  1063. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  1064. } else {
  1065. SendChat("/nimmdrogen")
  1066. sleep 10000
  1067. AddChatMessage(keyprefix "Du kannst wieder Drogen nehmen!")
  1068. }
  1069. }
  1070. chatTick := A_TickCount
  1071. return
  1072.  
  1073. 6::
  1074. if(IsInChat() || IsDialogOpen())
  1075. {
  1076. SendInput, %A_ThisHotkey%
  1077. } else {
  1078. if (chatTick + chatTimeout > A_TickCount) {
  1079. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  1080. } else {
  1081. SendChat("/handystatus aus")
  1082. }
  1083. }
  1084. chatTick := A_TickCount
  1085. return
  1086.  
  1087. 7::
  1088. if(IsInChat() || IsDialogOpen())
  1089. {
  1090. SendInput, %A_ThisHotkey%
  1091. } else {
  1092. if (chatTick + chatTimeout > A_TickCount) {
  1093. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  1094. } else {
  1095. SendChat("/handystatus an")
  1096. }
  1097. }
  1098. chatTick := A_TickCount
  1099. return
  1100.  
  1101. 8::
  1102. if(IsInChat() || IsDialogOpen())
  1103. {
  1104. SendInput, %A_ThisHotkey%
  1105. } else {
  1106. if (chatTick + chatTimeout > A_TickCount) {
  1107. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  1108. } else {
  1109. SendInput, t/fc{space}
  1110. }
  1111. }
  1112. chatTick := A_TickCount
  1113. return
  1114.  
  1115. ~P::
  1116. if(IsInChat() || IsDialogOpen())
  1117. {
  1118. Send, {%A_ThisHotkey%}
  1119. } else {
  1120. if (chatTick + chatTimeout > A_TickCount) {
  1121. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  1122. } else {
  1123. SendChat("/pickwaffe")
  1124. SendChat("/ic " pspruch "")
  1125. }
  1126. }
  1127. chatTick := A_TickCount
  1128. return
  1129.  
  1130. F3::
  1131. if (chatTick + chatTimeout > A_TickCount) {
  1132. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  1133. }
  1134. else {
  1135. AddChatMessage("")
  1136. SendChat("/tottime")
  1137. SendChat("/jailtime")
  1138. SendChat("/mutetime")
  1139. AddChatMessage("")
  1140. chatTick := A_TickCount
  1141. }
  1142. return
  1143.  
  1144. F4::
  1145. if (chatTick + chatTimeout > A_TickCount) {
  1146. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  1147. }
  1148. else {
  1149. zone := GetPlayerZone()
  1150. city := GetPlayerCity()
  1151. SendChat("/fc Meine HP: " GetPlayerHealth() " | Armor: " GetPlayerArmor() "")
  1152. SendChat("/fc Wanteds: " GetPlayerWanteds() " | Standort: " zone " | Stadt: " city "")
  1153. SendChat("/fc Ich bitte um sofortige Unterstützung!")
  1154. chatTick := A_TickCount
  1155. }
  1156. return
  1157.  
  1158. !F9::
  1159. if (chatTick + chatTimeout > A_TickCount) {
  1160. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  1161. }
  1162. Suspend Permit
  1163. restart()
  1164. chatTick := A_TickCount
  1165. return
  1166.  
  1167. F9::
  1168. if (chatTick + chatTimeout > A_TickCount) {
  1169. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  1170. } else {
  1171. SendChat("/mitglieder")
  1172. }
  1173. chatTick := A_TickCount
  1174. return
  1175.  
  1176. F10::
  1177. if (chatTick + chatTimeout > A_TickCount) {
  1178. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  1179. } else {
  1180. SendChat("/s Verlassen Sie sofort das Gelände oder wir werden das Feuer eröffnen!")
  1181. SendChat("/s >>> 10 <<<")
  1182. Sleep, 5000
  1183. SendChat("/s >>> 5 <<<")
  1184. Sleep 1000
  1185. SendChat("/s >>> 4 <<<")
  1186. Sleep 1000
  1187. SendChat("/s >>> 3 <<<")
  1188. Sleep 1000
  1189. SendChat("/s >>> 2 <<<")
  1190. Sleep 1000
  1191. SendChat("/s >>> 1 <<<")
  1192. Sleep 1000
  1193. SendChat("/s >>> 0 <<<")
  1194. SendChat("/s Wir eröffnen nun das Feuer auf Sie!")
  1195. }
  1196. chatTick := A_TickCount
  1197. return
  1198.  
  1199. SC033::
  1200. if (chatTick + chatTimeout > A_TickCount) {
  1201. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  1202. } else {
  1203. if(IsInChat() || IsDialogOpen())
  1204. {
  1205. Send, {%A_ThisHotkey%}
  1206. } else {
  1207. SendChat("/carkey")
  1208. }
  1209. }
  1210. chatTick := A_TickCount
  1211. return
  1212.  
  1213. NumpadMult::
  1214. if(IsInChat() || IsDialogOpen())
  1215. {
  1216. Send, {%A_ThisHotkey%}
  1217. } else {
  1218. if (chatTick + chatTimeout > A_TickCount) {
  1219. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  1220. } else {
  1221. SendChat("/essen")
  1222. }
  1223. }
  1224. chatTick := A_TickCount
  1225. return
  1226.  
  1227. ~-::
  1228. if(IsInChat() || IsDialogOpen())
  1229. {
  1230. Send, {%A_ThisHotkey%}
  1231. } else {
  1232. if (chatTick + chatTimeout > A_TickCount) {
  1233. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  1234. } else {
  1235. SendChat("/stats")
  1236. }
  1237. }
  1238. chatTick := A_TickCount
  1239. return
  1240.  
  1241. Numpad0::
  1242. if(IsInChat() || IsDialogOpen())
  1243. {
  1244. Send, {%A_ThisHotkey%}
  1245. } else {
  1246. if (chatTick + chatTimeout > A_TickCount) {
  1247. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  1248. } else {
  1249. SendChat("/gangfightinfo")
  1250. }
  1251. }
  1252. chatTick := A_TickCount
  1253. return
  1254.  
  1255. .::
  1256. if(IsInChat() || IsDialogOpen())
  1257. {
  1258. SendInput, %A_ThisHotkey%
  1259. return
  1260. }
  1261. if (chatTick + chatTimeout > A_TickCount) {
  1262. AddChatMessage("{FF0000}[Anti-Spam] {CCCCCC}Die Nachricht wurde blockiert.")
  1263. } else {
  1264. fID := PlayerInput("Bitte gib die ID ein: ")
  1265. If (fID = "") {
  1266. AddChatMessage(keyprefix "Fehler: Keine ID eingegeben!")
  1267. } else
  1268. {
  1269. loop
  1270. {
  1271. SendChat("/nachtanken " fID " 1")
  1272. KeyWait, . ,D T23
  1273. If !ErrorLevel
  1274. {
  1275. AddChatMessage(keyprefix "Info: Du hast den Baserefill abgebrochen!{FFFFFF}")
  1276. return
  1277. }
  1278. }
  1279. }
  1280. }
  1281. chatTick := A_TickCount
  1282. return
  1283.  
  1284. F12::
  1285. Suspend
  1286. if(A_IsSuspended)
  1287. {
  1288. AddChatMessage(keyprefix "Du hast den Keybinder {FF0000}deaktiviert!")
  1289. showGameText("~y~]~r~Triaden ~w~- ~w~Keybinder~y~]~n~~r~AUS", 2500, 3)
  1290. SetTimer, AutoLoginTimer, off
  1291. SetTimer, HPCheck, off
  1292. SetTimer, ArmorCheck, off
  1293. }
  1294. if(!A_IsSuspended)
  1295. {
  1296. AddChatMessage(keyprefix "Du hast den Keybinder {00FF00}aktiviert!")
  1297. showGameText("~y~]~r~Triaden ~w~- ~w~Keybinder~y~]~n~~g~AN", 2500, 3)
  1298. SetTimer, AutoLoginTimer, on
  1299. SetTimer, HPCheck, 100
  1300. SetTimer, ArmorCheck, 100
  1301. }
  1302. return
  1303. ;==========================================================================================================================================
  1304. ;==============================================================[ Befehle ]=================================================================
  1305. :?:/alotto::
  1306. Suspend Permit
  1307. if(alotto == 0) {
  1308. alotto := 1
  1309. IniWrite, %alotto%, %ini%, Daten, ALotto
  1310. AddChatMessage(keyprefix "Du hast das automatische Lotto {00FF00}aktiviert!")
  1311. } else {
  1312. alotto := 0
  1313. IniWrite, %alotto%, %ini%, Daten, ALotto
  1314. AddChatMessage(keyprefix "Du hast das automatische Lotto {FF0000}deaktiviert!")
  1315. }
  1316. return
  1317.  
  1318. :?:/inv::
  1319. Suspend Permit
  1320. SendInput, /inventar{space}
  1321. return
  1322.  
  1323. :?:/arzt::
  1324. Suspend Permit
  1325. SendChat("/service")
  1326. sleep 500
  1327. SendInput {down} {enter}
  1328. sleep 500
  1329. SendChat("Ich brauche einen Sanitäter! Es geht um Leben und Tod.")
  1330. return
  1331.  
  1332. :?:/Meinfo::
  1333. Suspend Permit
  1334. varName := GetPlayerName()
  1335. updateScoreboardDataEx()
  1336. varID := GetPlayerIdByName(varName)
  1337. ping := GetPlayerPingById(varID)
  1338. AddChatMessage("")
  1339. AddChatMessage(keyprefix "Name: {FF4600}" GetPlayerName() "{CCCCCC} | Leben: {FF4600}" GetPlayerHealth() "{CCCCCC} | Rüstung: {FF4600}" GetPlayerArmor() "")
  1340. AddChatMessage(keyprefix "Ping: {FF4600}" ping "{CCCCCC} | Standort: {FF4600}" GetPlayerCity() "{CCCCCC} - {FF4600}" GetPlayerZone() "")
  1341. AddChatMessage(keyprefix "Bargeld: {FF4600}" GetPlayerMoney() "")
  1342. return
  1343.  
  1344. :?:/Clear::
  1345. Suspend Permit
  1346. AddChatMessage("")
  1347. AddChatMessage("")
  1348. AddChatMessage("")
  1349. AddChatMessage("")
  1350. AddChatMessage("")
  1351. AddChatMessage("")
  1352. AddChatMessage("")
  1353. AddChatMessage("")
  1354. AddChatMessage("")
  1355. AddChatMessage("")
  1356. AddChatMessage("")
  1357. return
  1358.  
  1359. :?:/Uhr::
  1360. Suspend Permit
  1361. FormatTime, Uhrzeit, HH:mm:ss
  1362. Sleep 100
  1363. SendInput, t/me schaut auf seine Rolex Uhr. (%Uhrzeit%){enter}
  1364. return
  1365.  
  1366. :?:/tr::
  1367. rechnung := PlayerInput("Rechne: ")
  1368. AddChatMessage(keyprefix "Das Ergebnis lautet: " Evaluate(rechnung))
  1369. return
  1370.  
  1371. :?:/azoll::
  1372. Suspend Permit
  1373. if(azoll == 0) {
  1374. azoll := 1
  1375. IniWrite, %azoll%, %ini%, Daten, AZoll
  1376. AddChatMessage(keyprefix "Du hast den automatischen Zoll {00FF00}aktiviert!")
  1377. } else {
  1378. azoll := 0
  1379. IniWrite, %azoll%, %ini%, Daten, AZoll
  1380. AddChatMessage(keyprefix "Du hast den automatischen Zoll {FF0000}deaktiviert!")
  1381. }
  1382. return
  1383.  
  1384. :?:/ab::
  1385. Suspend Permit
  1386. SendChat("/abnehmen")
  1387. SendChat("Guten Tag, mein Name ist " GetPlayerName() ". Wie kann ich Ihnen helfen?")
  1388. return
  1389.  
  1390. :?:/auf::
  1391. Suspend Permit
  1392. SendChat("Ich wünsche ihnen noch einen angenehmen Tag.")
  1393. SendChat("/auflegen")
  1394. return
  1395.  
  1396. :?:/mailbox::
  1397. Suspend Permit
  1398. SendChat("/abnehmen")
  1399. SendChat("Hallo, " GetPlayerName() " ist gerade nicht erreichbar. Sie haben 15 Sekunden Zeit eine Nachricht zu hinterlassen.")
  1400. sleep 15000
  1401. SendChat("Die Nachricht wurde an " GetPlayerName() " übermittelt.")
  1402. SendChat("/auflegen")
  1403. return
  1404.  
  1405. :?:/Fin::
  1406. Suspend Permit
  1407. SendChat("/finanzen")
  1408. Sleep 300
  1409. Getchatline(1, Chatline1)
  1410. RegExMatch(Chatline1, "Kontostand\: (.*)\$", kontostand)
  1411. Getchatline(2, Chatline2)
  1412. RegExMatch(Chatline2, "Bargeld\: (.*)\$", bargeld)
  1413. gesamt := stringMath(kontostand1+bargeld1)
  1414. Round(gesamt, 0)
  1415. AddChatMessage("{FFFF00}Dein Gesamtes Geld: " gesamt "$")
  1416. AddChatMessage("{009D00}==============================")
  1417. return
  1418.  
  1419. :?:/yakuza::
  1420. Suspend Permit
  1421. sleep, 100
  1422. text := colorWhite "ID`tName`tStatus`n"
  1423. count := 0
  1424. Loop, Read, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\Yakuza.txt
  1425. {
  1426. if (StrLen(A_LoopReadLine) < 1) {
  1427. continue
  1428. }
  1429. id := getPlayerIdByName(A_LoopReadLine)
  1430. if (id != -1) {
  1431. count ++
  1432. text .= colorSecond id "`t" A_LoopReadLine "`t" colorGreen "online`n"
  1433. }
  1434. }
  1435. ShowDialog(5, colorSecond "Yakuza Mafia (" count " online)", text, "Schliesen")
  1436. return
  1437. :?:/gsf::
  1438. Suspend Permit
  1439. sleep, 100
  1440. text := colorWhite "ID`tName`tStatus`n"
  1441. count := 0
  1442. Loop, Read, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\GSF.txt
  1443. {
  1444. if (StrLen(A_LoopReadLine) < 1) {
  1445. continue
  1446. }
  1447. id := getPlayerIdByName(A_LoopReadLine)
  1448. if (id != -1) {
  1449. count ++
  1450. text .= colorSecond id "`t" A_LoopReadLine "`t" colorGreen "online`n"
  1451. }
  1452. }
  1453. ShowDialog(5, colorSecond "Grove Street Family (" count " online)", text, "Schliesen")
  1454. return
  1455. :?:/Ballas::
  1456. Suspend Permit
  1457. sleep, 100
  1458. text := colorWhite "ID`tName`tStatus`n"
  1459. count := 0
  1460. Loop, Read, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\Ballas.txt
  1461. {
  1462. if (StrLen(A_LoopReadLine) < 1) {
  1463. continue
  1464. }
  1465. id := getPlayerIdByName(A_LoopReadLine)
  1466. if (id != -1) {
  1467. count ++
  1468. text .= colorSecond id "`t" A_LoopReadLine "`t" colorGreen "online`n"
  1469. }
  1470. }
  1471. ShowDialog(5, colorSecond "Ballas Family (" count " online)", text, "Schliesen")
  1472. return
  1473. :?:/Vagos::
  1474. Suspend Permit
  1475. sleep, 100
  1476. text := colorWhite "ID`tName`tStatus`n"
  1477. count := 0
  1478. Loop, Read, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\Vagos.txt
  1479. {
  1480. if (StrLen(A_LoopReadLine) < 1) {
  1481. continue
  1482. }
  1483. id := getPlayerIdByName(A_LoopReadLine)
  1484. if (id != -1) {
  1485. count ++
  1486. text .= colorSecond id "`t" A_LoopReadLine "`t" colorGreen "online`n"
  1487. }
  1488. }
  1489. ShowDialog(5, colorSecond "Los Santos Vagos (" count " online)", text, "Schliesen")
  1490. return
  1491.  
  1492. :?:/triaden::
  1493. Suspend Permit
  1494. sleep, 100
  1495. text := colorWhite "ID`tName`tStatus`n"
  1496. count := 0
  1497. Loop, Read, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\Triaden.txt
  1498. {
  1499. if (StrLen(A_LoopReadLine) < 1) {
  1500. continue
  1501. }
  1502. id := getPlayerIdByName(A_LoopReadLine)
  1503. if (id != -1) {
  1504. count ++
  1505. text .= colorSecond id "`t" A_LoopReadLine "`t" colorGreen "online`n"
  1506. }
  1507. }
  1508. ShowDialog(5, colorSecond "Triaden Mafia (" count " online)", text, "Schliesen")
  1509. return
  1510. :?:/lcn::
  1511. Suspend Permit
  1512. sleep, 100
  1513. text := colorWhite "ID`tName`tStatus`n"
  1514. count := 0
  1515. Loop, Read, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\LCN.txt
  1516. {
  1517. if (StrLen(A_LoopReadLine) < 1) {
  1518. continue
  1519. }
  1520. id := getPlayerIdByName(A_LoopReadLine)
  1521. if (id != -1) {
  1522. count ++
  1523. text .= colorSecond id "`t" A_LoopReadLine "`t" colorGreen "online`n"
  1524. }
  1525. }
  1526. ShowDialog(5, colorSecond "La Cosa Nostra (" count " online)", text, "Schliesen")
  1527. return
  1528.  
  1529. :?:/aztecas::
  1530. Suspend Permit
  1531. sleep, 100
  1532. text := colorWhite "ID`tName`tStatus`n"
  1533. count := 0
  1534. Loop, Read, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\Aztecas.txt
  1535. {
  1536. if (StrLen(A_LoopReadLine) < 1) {
  1537. continue
  1538. }
  1539. id := getPlayerIdByName(A_LoopReadLine)
  1540. if (id != -1) {
  1541. count ++
  1542. text .= colorSecond id "`t" A_LoopReadLine "`t" colorGreen "online`n"
  1543. }
  1544. }
  1545. ShowDialog(5, colorSecond "Varrios Los Aztecas (" count " online)", text, "Schliesen")
  1546. return
  1547.  
  1548. :?:/cop::
  1549. Suspend Permit
  1550. sleep, 100
  1551. text := colorWhite "ID`tName`tStatus`n"
  1552. count := 0
  1553. Loop, Read, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\LSPD.txt
  1554. {
  1555. if (StrLen(A_LoopReadLine) < 1) {
  1556. continue
  1557. }
  1558. id := getPlayerIdByName(A_LoopReadLine)
  1559. if (id != -1) {
  1560. count ++
  1561. text .= colorSecond id "`t" A_LoopReadLine "`t" colorGreen "online`n"
  1562. }
  1563. }
  1564. ShowDialog(5, colorSecond "Los Santos Police Department (" count " online)", text, "Schliesen")
  1565. return
  1566.  
  1567. :?:/bl::
  1568. Suspend Permit
  1569. sleep, 100
  1570. text := colorWhite "ID`tName`tStatus`n"
  1571. count := 0
  1572. Loop, Read, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\Blacklist.txt
  1573. {
  1574. if (StrLen(A_LoopReadLine) < 1) {
  1575. continue
  1576. }
  1577. id := getPlayerIdByName(A_LoopReadLine)
  1578. if (id != -1) {
  1579. count ++
  1580. text .= colorSecond id "`t" A_LoopReadLine "`t" colorGreen "online`n"
  1581. }
  1582. }
  1583. ShowDialog(5, colorSecond "Blacklist (" count " online)", text, "Schliesen")
  1584. return
  1585.  
  1586. GegnerListe(o)
  1587. {
  1588. global
  1589. if(!o)
  1590. return
  1591. PlayerID:= o.ID
  1592. PlayerSkin := getTargetPlayerSkinIdById(PlayerID)
  1593. PlayerName := o.Name
  1594. if(Playerskin=228 or Playerskin=186 or Playerskin=203 or Playerskin=204 or Playerskin=122 or Playerskin=123 or Playerskin=169)
  1595. {
  1596. Gegnerfound := 0
  1597. Yakuza_Zeile := 0
  1598. Loop, read, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\Yakuza.txt
  1599. {
  1600. If (Yakuza_Zeile >= A_Index)
  1601. {
  1602. Continue
  1603. }
  1604. else
  1605. {
  1606. if instr(A_Loopreadline,PlayerName)
  1607. {
  1608. Gegnerfound := 1
  1609. }
  1610. Yakuza_Zeile := A_Index
  1611. }
  1612. }
  1613. if(Gegnerfound = 0)
  1614. {
  1615. fileappend, %Playername%`n, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\Yakuza.txt
  1616. AddChatMessage("{2E9AFE}* " Playername " wurde als Yakuza eingetragen.")
  1617. }
  1618. }
  1619. if(Playerskin=108 or Playerskin=109 or Playerskin=110 or Playerskin=292 or Playerskin=298)
  1620. {
  1621. Gegnerfound := 0
  1622. Vagos_Zeile := 0
  1623. Loop, read, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\Vagos.TXT
  1624. {
  1625. If (Vagos_Zeile >= A_Index)
  1626. {
  1627. Continue
  1628. }
  1629. else
  1630. {
  1631. if instr(A_Loopreadline,PlayerName)
  1632. {
  1633. Gegnerfound := 1
  1634. }
  1635. Vagos_Zeile := A_Index
  1636. }
  1637. }
  1638. if(Gegnerfound = 0)
  1639. {
  1640. fileappend, %Playername%`n, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\Vagos.txt
  1641. AddChatMessage("{2E9AFE}* " Playername " wurde als Vagos eingetragen.")
  1642. }
  1643. }
  1644. if(Playerskin=111 or Playerskin=117 or Playerskin=118 or Playerskin=120 or Playerskin=208)
  1645. {
  1646. Gegnerfound := 0
  1647. Triaden_Zeile := 0
  1648. Loop, read, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\Triaden.txt
  1649. {
  1650. If (Triaden_Zeile >= A_Index)
  1651. {
  1652. Continue
  1653. }
  1654. else
  1655. {
  1656. if instr(A_Loopreadline,PlayerName)
  1657. {
  1658. Gegnerfound := 1
  1659. }
  1660. Triaden_Zeile := A_Index
  1661. }
  1662. }
  1663. if(Gegnerfound = 0)
  1664. {
  1665. fileappend, %Playername%`n, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\Triaden.txt
  1666. AddChatMessage("{2E9AFE}* " Playername " wurde als Triaden eingetragen.")
  1667. }
  1668. }
  1669. if(Playerskin=112 or Playerskin=113 or Playerskin=124 or Playerskin=125 or Playerskin=126 or Playerskin=127 or Playerskin=223 or Playerskin=263)
  1670. {
  1671. Gegnerfound := 0
  1672. LCN_Zeile := 0
  1673. Loop, read, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\LCN.txt
  1674. {
  1675. If (LCN_Zeile >= A_Index)
  1676. {
  1677. Continue
  1678. }
  1679. else
  1680. {
  1681. if instr(A_Loopreadline,PlayerName)
  1682. {
  1683. Gegnerfound := 1
  1684. }
  1685. LCN_Zeile := A_Index
  1686. }
  1687. }
  1688. if(Gegnerfound = 0)
  1689. {
  1690. fileappend, %Playername%`n, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\LCN.txt
  1691. AddChatMessage("{2E9AFE}* " Playername " wurde als LCN eingetragen.")
  1692. }
  1693. }
  1694. if(Playerskin=114 or Playerskin=115 or Playerskin=116 or Playerskin=173 or Playerskin=174 or Playerskin=175)
  1695. {
  1696. Gegnerfound := 0
  1697. Aztecas_Zeile := 0
  1698. Loop, read, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\Aztecas.txt
  1699. {
  1700. If (Aztecas_Zeile >= A_Index)
  1701. {
  1702. Continue
  1703. }
  1704. else
  1705. {
  1706. if instr(A_Loopreadline,PlayerName)
  1707. {
  1708. Gegnerfound := 1
  1709. }
  1710. Aztecas_Zeile := A_Index
  1711. }
  1712. }
  1713. if(Gegnerfound = 0)
  1714. {
  1715. fileappend, %Playername%`n, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\Aztecas.txt
  1716. AddChatMessage("{2E9AFE}* " Playername " wurde als Aztecas eingetragen.")
  1717. }
  1718. }
  1719. if(Playerskin=102 or Playerskin=103 or Playerskin=104 or Playerskin=13 or Playerskin=195 or Playerskin=293)
  1720. {
  1721. Gegnerfound := 0
  1722. Ballas_Zeile := 0
  1723. Loop, read, %A_ScriptDir%\Gegnerliste\Ballas.TXT
  1724. {
  1725. If (Ballas_Zeile >= A_Index)
  1726. {
  1727. Continue
  1728. }
  1729. else
  1730. {
  1731. if instr(A_Loopreadline,PlayerName)
  1732. {
  1733. Gegnerfound := 1
  1734. }
  1735. Ballas_Zeile := A_Index
  1736. }
  1737. }
  1738. if(Gegnerfound = 0)
  1739. {
  1740. fileappend, %Playername%`n, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\Ballas.txt
  1741. AddChatMessage("{2E9AFE}* " Playername " wurde als Ballas eingetragen.")
  1742. }
  1743. }
  1744. if(Playerskin=265 or Playerskin=266 or Playerskin=267 or Playerskin=280 or Playerskin=284 or Playerskin=285 or Playerskin=300 or Playerskin=301 or Playerskin=306 or Playerskin=303 or Playerskin=304)
  1745. {
  1746. Gegnerfound := 0
  1747. LSPD_Zeile := 0
  1748. Loop, read, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\LSPD.txt
  1749. {
  1750. If (LSPD_Zeile >= A_Index)
  1751. {
  1752. Continue
  1753. }
  1754. else
  1755. {
  1756. if instr(A_Loopreadline,PlayerName)
  1757. {
  1758. Gegnerfound := 1
  1759. }
  1760. LSPD_Zeile := A_Index
  1761. }
  1762. }
  1763. if(Gegnerfound = 0)
  1764. {
  1765. fileappend, %Playername%`n, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\LSPD.txt
  1766. AddChatMessage("{2E9AFE}* " Playername " wurde als LSPD eingetragen.")
  1767. }
  1768. }
  1769. if(Playerskin=105 or Playerskin=106 or Playerskin=107 or Playerskin=269 or Playerskin=270 or Playerskin=271 or Playerskin=65)
  1770. {
  1771. Gegnerfound := 0
  1772. GSF_Zeile := 0
  1773. Loop, read, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\GSF.txt
  1774. {
  1775. If (GSF_Zeile >= A_Index)
  1776. {
  1777. Continue
  1778. }
  1779. else
  1780. {
  1781. if instr(A_Loopreadline,PlayerName)
  1782. {
  1783. Gegnerfound := 1
  1784. }
  1785. GSF_Zeile := A_Index
  1786. }
  1787. }
  1788. if(Gegnerfound = 0)
  1789. {
  1790. fileappend, %Playername%`n, %A_MyDocuments%\Triaden-Keybinder\Gegnerliste\GSF.txt
  1791. AddChatMessage("{2E9AFE}* " Playername " wurde als GSF eingetragen.")
  1792. }
  1793. }
  1794. }
  1795. return
  1796. ;==========================================================================================================================================
  1797. ;==============================================================[ Funktionen ]==============================================================
  1798. stringMath(string)
  1799. {
  1800. while(position := RegExMatch(string, "\(([^\(\)]+)\)", regex_)) {
  1801. string := RegExReplace(string, "\(([^\(\)]+)\)", stringMath(regex_1), blahblah, 1, position)
  1802. }
  1803. while(position := RegExMatch(string, "(\+|-)? *((?:\+|-)?\d+)\^((?:\+|-)?\d+)", regex_)) {
  1804. string := RegExReplace(string, "(\+|-)? *((?:\+|-)?\d+)\^((?:\+|-)?\d+)", regex_1 . regex_2**regex_3, blahblah, 1, position)
  1805. }
  1806. while(position := RegExMatch(string, "(\+|-)? *((?:\+|-)?\d+(?:[\.\,]\d+)?) *(\*|/) *((?:\+|-)?\d+(?:[\.\,]\d+)?) *", regex_)) {
  1807. if(regex_3 == "*")
  1808. string := RegExReplace(string, "(\+|-)? *((?:\+|-)?\d+(?:[\.\,]\d+)?) *\* *((?:\+|-)?\d+(?:[\.\,]\d+)?) *", regex_1 . regex_2*regex_4, blahblah, 1, position)
  1809. if(regex_3 == "/")
  1810. string := RegExReplace(string, "(\+|-)? *((?:\+|-)?\d+(?:[\.\,]\d+)?) */ *((?:\+||)?\d+(?:[\.\,]\d+)?) *", regex_1 . regex_2/regex_4, blahblah, 1, position)
  1811. }
  1812. while(position := RegExMatch(string, " *((?:\+|-)?\d+(?:[\.\,]\d+)?) *(\+|-) *((?:\+|-)?\d+(?:[\.\,]\d+)?) *", regex_)) {
  1813. if(regex_2 == "+")
  1814. string := RegExReplace(string, " *((?:\+|-)?\d+(?:[\.\,]\d+)?) *\+ *((?:\+|-)?\d+(?:[\.\,]\d+)?) *", regex_1+regex_3, blahblah, 1, position)
  1815. if(regex_2 == "-")
  1816. string := RegExReplace(string, " *((?:\+|-)?\d+(?:[\.\,]\d+)?) *- *((?:\+|-)?\d+(?:[\.\,]\d+)?) *", regex_1-regex_3, blahblah, 1, position)
  1817. }
  1818. if(RegExMatch(string, "^-?\d+(?:\.\d+)?$"))
  1819. return string
  1820. return "ERROR"
  1821. }
  1822.  
  1823. getDistanceToObj(modelID) {
  1824. if (!updateObjects())
  1825. return -1
  1826. dist := -1
  1827. for i, o in oObjects {
  1828. if (o.MODELID == modelID) {
  1829. playerPos := GetPlayerCoordinates()
  1830. newDist := getDist([o.XPOS, o.YPOS, o.ZPOS], playerPos)
  1831. if (dist == -1 || newDist < dist) {
  1832. dist := newDist
  1833. }
  1834. }
  1835. }
  1836. return dist
  1837. }
  1838. updateObjects() {
  1839. if (!checkHandles())
  1840. return false
  1841. if (iRefreshObj + iUpdateTickObj > A_TickCount)
  1842. return true
  1843. oObjects := []
  1844. iRefreshObj := A_TickCount
  1845. dwAddress := readDWORD(hGTA, readDWORD(hGTA, readDWORD(hGTA, dwSAMP + SAMP_INFO_OFFSET) + SAMP_PPOOLS_OFFSET) + 0x4)
  1846. if (ErrorLevel || !dwAddress)
  1847. return false
  1848.  
  1849. objCount := readMem(hGTA, dwAddress, 4, "Int")
  1850. Loop, % 1000
  1851. {
  1852. i := A_Index - 1
  1853.  
  1854. listed := readMem(hGTA, dwAddress + i * 4 + 0x4, 4, "Int")
  1855.  
  1856. if (!listed)
  1857. continue
  1858. objCount--
  1859. dwObject := readDWORD(hGTA, dwAddress + i * 0x4 + 0xFA4)
  1860. objModelID := readDWORD(hGTA, dwObject + 0x4E)
  1861. objX := readMem(hGTA, dwObject + 0x5C, 4, "Float")
  1862. objY := readMem(hGTA, dwObject + 0x60, 4, "Float")
  1863. objZ := readMem(hGTA, dwObject + 0x64, 4, "Float")
  1864. oObjects.Push(Object("MODELID", objModelID, "XPOS", objX, "YPOS", objY, "ZPOS", objZ))
  1865. if (objCount <= 0)
  1866. break
  1867. }
  1868. return true
  1869. }
  1870.  
  1871. getClosestPickupModel() {
  1872. if (!updatePickups())
  1873. return -1
  1874. dist := -1
  1875. model := 0
  1876. for i, o in oPickups {
  1877. playerPos := GetPlayerCoordinates()
  1878. newDist := getDist([o.XPOS, o.YPOS, o.ZPOS], playerPos)
  1879. if (dist == -1 || newDist < dist) {
  1880. dist := newDist
  1881. model := o.MODELID
  1882. }
  1883. }
  1884. return model
  1885. }
  1886. getDistanceToPickup(modelID) {
  1887. if (!updatePickups())
  1888. return -1
  1889. dist := -1
  1890. for i, o in oPickups {
  1891. if (o.MODELID == modelID) {
  1892. playerPos := GetPlayerCoordinates()
  1893. newDist := getDist([o.XPOS, o.YPOS, o.ZPOS], playerPos)
  1894. if (dist == -1 || newDist < dist) {
  1895. dist := newDist
  1896. }
  1897. }
  1898. }
  1899. return dist
  1900. }
  1901. updatePickups() {
  1902. if (!checkHandles())
  1903. return false
  1904.  
  1905. if (iRefreshPicks + iUpdateTickPicks > A_TickCount)
  1906. return true
  1907. oPickups := []
  1908. iRefreshPicks := A_TickCount
  1909.  
  1910. dwAddress := readDWORD(hGTA, readDWORD(hGTA, readDWORD(hGTA, dwSAMP + SAMP_INFO_OFFSET) + SAMP_PPOOLS_OFFSET) + 0x20)
  1911. if (ErrorLevel || !dwAddress)
  1912. return false
  1913. pickupCount := readDWORD(hGTA, dwAddress)
  1914. Loop, % 4096
  1915. {
  1916. i := A_Index - 1
  1917.  
  1918. pickupID := readMem(hGTA, dwAddress + i * 4 + 0x4004, 4, "Int")
  1919.  
  1920. if (pickupID < 0)
  1921. continue
  1922. pickupCount--
  1923. pickupModelID := readMem(hGTA, dwAddress + i * 0x14 + 0xF004, 4, "Int")
  1924. pickupType := readMem(hGTA, dwAddress + i * 0x14 + 0xF008, 4, "Int")
  1925. pickupX := readMem(hGTA, dwAddress + i * 0x14 + 0xF00C, 4 , "Float")
  1926. pickupY := readMem(hGTA, dwAddress + i * 0x14 + 0xF010, 4 , "Float")
  1927. pickupZ := readMem(hGTA, dwAddress + i * 0x14 + 0xF014, 4 , "Float")
  1928. oPickups.Push(Object("ID", pickupID, "MODELID", pickupModelID, "TYPE", pickupType, "XPOS", pickupX, "YPOS", pickupY, "ZPOS", pickupZ))
  1929. if (pickupCount <= 0)
  1930. break
  1931. }
  1932. return true
  1933. }
  1934.  
  1935. PlayerInput(text){
  1936. s := A_IsSuspended
  1937. Suspend On
  1938. KeyWait Enter
  1939. SendInput t^a{backspace}%text%
  1940. Input, var, v, {enter}
  1941. SendInput ^a{backspace 100}{enter}
  1942. Sleep, 20
  1943. if(!s)
  1944. Suspend Off
  1945. return var
  1946. }
  1947.  
  1948. Evaluate(string) {
  1949. static sc := ComObjCreate("ScriptControl")
  1950. sc.Language := "JScript"
  1951. string := "a = " string ";"
  1952. sc.ExecuteStatement(string)
  1953. new := sc.Eval("a")
  1954. return new
  1955. }
  1956.  
  1957. setrestart()
  1958. {
  1959. VarSetCapacity(old, 4, 0)
  1960. dwAddress := readDWORD(hGTA, dwSAMP + SAMP_INFO_OFFSET)
  1961. if(ErrorLevel || dwAddress==0) {
  1962. ErrorLevel := ERROR_READ_MEMORY
  1963. return 0
  1964. }
  1965. NumPut(9,old,0,"Int")
  1966. writeRaw(hGTA, dwAddress + 957, &old, 4)
  1967. }
  1968. restart()
  1969. {
  1970. AddChatMessage(keyprefix "Du führst nun einen Relog durch!")
  1971. setrestart()
  1972. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement