Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :?:/gfs::
- :?:/gebiete::
- Suspend, Permit
- Data := DownloadToString("http://samp.lennartf.com/rpgcp/api/gangfights.php")
- Buffer := ""
- if (ErrorLevel) {
- AddChatMessage("{FFFFFF}|{" ChatColor "}" ACM "{FFFFFF}| Es ist ein Fehler aufgetreten. Versuch es erneut.")
- return
- }
- Loop, Parse, Data, `n
- {
- if (A_Index == 1) {
- if (A_LoopField != "success") {
- AddChatMessage("{FFFFFF}|{" ChatColor "}" ACM "{FFFFFF}| Es ist ein Fehler aufgetreten. Versuch es erneut.")
- break
- }
- } else {
- fields := StrSplit(A_LoopField, "`t")
- if (A_Index > 2)
- Buffer .= "`n"
- if (!fields[1])
- Buffer .= "{FFFFFF}" fields[2] "`t{FFFFFF}" fields[3] "`t{18ADAD}" fields[4]
- else
- Buffer .= "{FFFFFF}" fields[2] "`t{FFFFFF}" fields[3] "`t{18ADAD}" fields[4] ": {FFFFFF}" fields[6] " Punkte`t{18ADAD}" fields[5] ":{FFFFFF} " fields[7] " Punkte"
- }
- }
- if (Buffer) {
- ShowDialog(5, "Aktuelle Gangfightgebiete", "Gebiet`tGesperrt`tBesitzer`tAngreifer`tVerbleibende Zeit`n" Buffer, "Schließen")
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement