Advertisement
Rian_Tyler

Untitled

Apr 15th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. KillCounter:
  2. ifWinNotActive, GTA:SA:MP
  3. return
  4.  
  5. chat_Count := -1
  6. getChatLine(0, Chat0)
  7. getChatLine(1, Chat1)
  8. getChatLine(2, Chat2)
  9. FormatTime, Heute,, ddMMyyyy
  10.  
  11. Loop, read, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
  12. {
  13. if(chat_Count >= A_Index){
  14. Continue
  15. }else{
  16. IfInString, A_LoopReadLine, Paintball:
  17. {
  18. RegExMatch(A_LoopReadLine, "Paintball\: (.*) wurde von (.*) getötet\.", Var_)
  19. if(Var_1 != getUserName()){
  20. IniRead, PbKill, Settings.ini, Stats, PbKill
  21. PbKill ++
  22. IniWrite, %PbKill%, Settings.ini, Stats, PbKill
  23. IniRead, PbstreakRekord, Settings.ini, PbstreakRekord
  24. Pbstreak ++
  25. addChatMessage(ACM "{FFFFFF} Paintball-Kill Nr. {" Color2 "}" FormatNumber(PbKill) "{FFFFFF}.")
  26. if(PbStreak > PbstreakRekord){
  27. iniWrite, %PbStreak%, Settings.ini, PbstreakRekord
  28. addChatMessage(ACM "{FFFFFF} Paintball Killstreak-Rekord gebrochen: {" Color2 "}" PbStreak "{FFFFFF}.")
  29. }
  30. }else if (Var_1 == getUserName()){
  31. IniRead, PbTod, Settings.ini, Stats, PbTod
  32. PbTod ++
  33. IniWrite, %PbTod%, Settings.ini, Stats, PbTod
  34. PbStreak := 0
  35. addChatMessage(ACM "{FFFFFF} Paintball-Tod Nr. {" Color2 "}" FormatNumber(PbTod) "{FFFFFF}.")
  36. }
  37. }
  38. }
  39. }
  40. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement