Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- KillCounter:
- ifWinNotActive, GTA:SA:MP
- return
- chat_Count := -1
- getChatLine(0, Chat0)
- getChatLine(1, Chat1)
- getChatLine(2, Chat2)
- FormatTime, Heute,, ddMMyyyy
- Loop, read, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
- {
- if(chat_Count >= A_Index){
- Continue
- }else{
- IfInString, A_LoopReadLine, Paintball:
- {
- RegExMatch(A_LoopReadLine, "Paintball\: (.*) wurde von (.*) getötet\.", Var_)
- if(Var_1 != getUserName()){
- IniRead, PbKill, Settings.ini, Stats, PbKill
- PbKill ++
- IniWrite, %PbKill%, Settings.ini, Stats, PbKill
- IniRead, PbstreakRekord, Settings.ini, PbstreakRekord
- Pbstreak ++
- addChatMessage(ACM "{FFFFFF} Paintball-Kill Nr. {" Color2 "}" FormatNumber(PbKill) "{FFFFFF}.")
- if(PbStreak > PbstreakRekord){
- iniWrite, %PbStreak%, Settings.ini, PbstreakRekord
- addChatMessage(ACM "{FFFFFF} Paintball Killstreak-Rekord gebrochen: {" Color2 "}" PbStreak "{FFFFFF}.")
- }
- }else if (Var_1 == getUserName()){
- IniRead, PbTod, Settings.ini, Stats, PbTod
- PbTod ++
- IniWrite, %PbTod%, Settings.ini, Stats, PbTod
- PbStreak := 0
- addChatMessage(ACM "{FFFFFF} Paintball-Tod Nr. {" Color2 "}" FormatNumber(PbTod) "{FFFFFF}.")
- }
- }
- }
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement