Advertisement
Guest User

Untitled

a guest
Nov 11th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 KB | None | 0 0
  1. #UseHook, On
  2. #IfWinActive, GTA:SA:MP
  3. #NoEnv
  4. #Include SAMP.ahk
  5.  
  6. SetTimer, KillsTode, on
  7.  
  8. iniread, zivikillspruch, settings.ini, Sprüche, zivikillspruch
  9. iniread, fzivikillspruch, settings.ini, Sprüche, fzivikillspruch
  10. iniread, gangkillspruch, settings.ini, Sprüche, gangkillspruch
  11. iniread, fgangkillspruch, settings.ini, Sprüche, fgangkillspruch
  12. iniread, copkillspruch, settings.ini, Sprüche, copkillspruch
  13. iniread, fcopkillspruch, settings.ini, Sprüche, fcopkillspruch
  14. iniread, fgangwarkillspruch, settings.ini, Sprüche, fgangwarkillspruch
  15. iniread, gangwartodspruch, settings.ini, Sprüche, gangwartodspruch
  16. iniread, todkillspruch, settings.ini, Sprüche, todkillspruch
  17. iniread, blacklistspruch, settings.ini, Sprüche, blacklistspruch
  18. iniread, randomspruch, settings.ini, Sprüche, randomspruch
  19.  
  20. iniread, kill, settings.ini, Kills, kill, 0
  21. iniread, tod, settings.ini, Tode, tod, 0
  22.  
  23. IniWrite, %zivikillspruch%, settings.ini, Sprüche, zivikillspruch
  24. IniWrite, %fzivikillspruch%, settings.ini, Sprüche, fzivikillspruch
  25. iniwrite, %gangkillspruch%, settings.ini, Sprüche, gangkillspruch
  26. iniwrite, %fgangkillspruch%, settings.ini, Sprüche, fgangkillspruch
  27. iniwrite, %copkillspruch%, settings.ini, Sprüche, copkillspruch
  28. iniwrite, %fcopkillspruch%, settings.ini, Sprüche, fcopkillspruch
  29. iniwrite, %fgangwarkillspruch%, settings.ini, Sprüche, fgangwarkillspruch
  30. iniwrite, %gangwartodspruch%, settings.ini, Sprüche, gangwartodspruch
  31. iniwrite, %todkillspruch%, settings.ini, Sprüche, todkillspruch
  32. iniwrite, %blacklistspruch%, settings.ini, Sprüche, blacklistspruch
  33. iniwrite, %randomspruch%, settings.ini, Sprüche, randomspruch
  34.  
  35. Gui, Add, Text, x10 y5 , In der settings.ini alle "Sprüche" ausfüllen sonst kommt Ingame "ERROR" als Killspruch.
  36. Gui, Show, h25 w430, Killzähler
  37. return
  38.  
  39. GuiClose:
  40. iniwrite, %kill%, settings.ini, Kills, kill
  41. iniwrite, %tod%, settings.ini, Tode, tod
  42. ExitApp
  43. return
  44.  
  45. KillsTode:
  46. GetChatLine(1, Chatline)
  47. GetChatLine(0, Chatline1)
  48. phealth := GetPlayerHealth()
  49. parmor := GetPlayerArmor()
  50. pzone := GetPlayerZone()
  51. pcity := GetPlayerCity()
  52. KD := Round(kill/tod, 2)
  53.  
  54. if(InStr(Chatline, "Du hast ein Verbrechen begangen! ( Mord ). Zeuge: Zivilist."))
  55. {
  56. kill ++
  57. SendChat("/f " fzivikillspruch " | Kills: " kill " | KD: " KD "")
  58. SendChat("" zivikillspruch " | Kills: " kill " | KD: " KD "")
  59. AddChatMessage("{ffffff}+1 Zivi Kill")
  60. showGameText("ZIVIKILL +1", 2000, 3)
  61. }
  62. else if (InStr(Chatline, "Du hast ein Verbrechen begangen! ( Gang Mord ). Zeuge: Zivilist."))
  63. {
  64. kill ++
  65. SendChat("/f " fgangkillspruch " | Kills: " kill " | KD: " KD "")
  66. SendChat("" gangkillspruch " | Kills: " kill " | KD: " KD "")
  67. AddChatMessage("{ffffff}+1 Gang Kill")
  68. showGameText("GANGKILL +1", 2000, 3)
  69. }
  70. else if (InStr(Chatline, "Du hast ein Verbrechen begangen! ( Cop Mord ). Zeuge: Zivilist."))
  71. {
  72. kill ++
  73. SendChat("/f " fcopkillspruch " | Kills: " kill " | KD: " KD "")
  74. SendChat("" copkillspruch " | Kills: " kill " | KD: " KD "")
  75. AddChatMessage("{ffffff}+1 Cop Kill")
  76. showGameText("COPKILL +1", 2000, 3)
  77. }
  78. else if(InStr(Chatline1, "[GANGFIGHT] Du hast") && InStr(Chatline1, "in einer Einnahme getötet (+500$)."))
  79. {
  80. kill ++
  81. SendChat("/f " fgangwarkillspruch " | Kills: " kill " | KD: " KD "")
  82. AddChatMessage("{ffffff}+1 Gangwar Kill")
  83. showGameText("GANGWARKILL +1", 2000, 3)
  84. }
  85. else if (InStr(Chatline, "Du bist gestorben! Alle Ärzte wurden benachrichtigt!"))
  86. {
  87. tod ++
  88. SendChat("/f " todkillspruch " | Tode: " tod "")
  89. AddChatMessage("{ffffff}+1 Tod")
  90. showGameText("TOD +1", 2000, 3)
  91. }
  92. else if (InStr(Chatline1, "[GANGFIGHT] Du wurdest von") && InStr(Chatline1, "in einer Einnahme getötet (-500$)."))
  93. {
  94. tod ++
  95. SendChat("/f " gangwartodspruch " | Tode: " tod "")
  96. AddChatMessage("{ffffff}+1 Gangwar Tod")
  97. showGameText("TOD +1", 2000, 3)
  98. }
  99. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement