Transformice "myrec" komutu [py2.7]

Sukela

ne yazsam bilemedim
Genel Moderatör
Mesajlar
485
En iyi cevaplar
83
Beğeniler
444
Puanları
3,190
Ruh hali
Sunucunuzda oyuncuların kırdığı rekorları görebilmesi için myrec komutu.​

Python:
            elif command in ["myrec"]:
                if this.client.privLevel >= 1:
                    if this.client.privLevel != 0:
                        mapList = ""
                        records = 0
                        this.client.room.CursorMaps.execute("select * from Maps where TopTimeNick = ?", [this.client.playerName])
                        for rs in this.client.room.CursorMaps.fetchall():
                            bestTime = rs["TopTime"]
                            records += 1
                            rec = bestTime * 0.01
                            mapList += "\n<BL>%s</BL> - <BV>@%s</BV> - <FC>%s</FC><R>%s</R>" %(rs["TopTimeNick"], rs["Code"], rec, "s")
                        try: this.client.sendLogMessage("<R>Rekorlar</R><BV>:</BV> <J>%s</J>\n\n%s" %(records, mapList))
                        except: this.client.sendMessage("<R>Rekor yok.</R>")
 



Üst