perma/clear - Limpa o chat/sy? - Mostra o usuario com melhor conexao da sala. ( Nasa )/map map - Coloca um mapa na sala, coloque o @./map - Mata todo mundo colocando outro mapa/ls user - Procura o usuario e sua sala/ranking4 - Aparece o Ranking""" elif self.privilegeLevel==3: str_help = """List of Commands:/a message - Arb Chat/ch Username - Escolhe o shaman da proxima rodada/ban username hours reason - Bane um usuario pelo tempo determinado. Arbitros so podem dar ban de no maximo 2 horas./clear - Limpa o chat/map map - Coloca um mapa na sala, coloque o @./map - Mata todo mundo colocando outro mapa/ls user - Procura o usuario e sua sala/ranking5 - Aparece o Ranking""" else: str_help == "Unsupported!" self.sendData("\x06" + "\x14", [str_help]) elif event == "editeur": if self.username.startswith("*"): pass else: self.enterRoom("\x03"+"[Editeur] "+self.username) self.sendData("\x0E" + "\x0E",[]) elif event in ("kill", "suicide", "bubbles", "die"): self.isDead = True self.score -= 1 if self.score < 0: self.score = 0 self.room.informAll(TransformiceClientHandler.sendPlayerDied, [self.playerCode, self.score]) self.room.checkShouldChangeWorld() elif event == "info": if self.privilegeLevel>=5 and not self.isDrawer: name = self.server.getMapName(self.room.customMap) yes = int(self.server.getMapYesVotes(self.room.customMap)) no = int(self.server.getMapNoVotes(self.room.customMap)) perma = int(self.server.getMapPerma(self.room.customMap)) if yes > no: percent = round(float(no)/float(yes), 0) elif yes < no: percent = round(float(yes)/float(no), 0) else: percent = 0 total = yes+no if perma == 0: perm = "P0" elif perma == 1: perm = "P1" #Arkanlol - @215938 - 2389 - 52% - P0 self.sendData("\x1A" + "\x04", ["[Serveur] "+name+" - "+self.room.customMap+" - "+str(total)+" - "+str(percent)+"% - "+str(perm)]) elif event == "del": if self.privilegeLevel >= 5 and not self.isDrawer: if self.room.isCustom: dbcur.execute('UPDATE mapeditor set deleted = ? WHERE code = ?', ["1", str(self.room.customMap)]) self.sendServeurMessage("[%s] %s is now deleted."%(self.username,str(self.room.customMap))) elif event == "p1": if self.privilegeLevel >= 5 and not self.isDrawer: if self.room.isCustom: print '%s is now perm'%(self.room.customMap) self.room.informAll(TransformiceClientHandler.sendMapPerm, []) dbcur.execute('UPDATE mapeditor set perma = ? WHERE code = ?', ["1", str(self.room.customMap)]) self.sendServeurMessage("[%s] O mapa %s agora e permanente."%(self.username,str(self.room.customMap))) elif event == "p0": if self.privilegeLevel >= 5 and not self.isDrawer: if self.room.isCustom: print '%s is now perm'%(self.room.customMap) self.room.informAll(TransformiceClientHandler.sendMapPerm, []) dbcur.execute('UPDATE mapeditor set perma = ? WHERE code = ?', ["0", str(self.room.customMap)]) self.sendServeurMessage("[%s] O mapa %s nao e mais permanente."%(self.username,str(self.room.customMap))) #elif event == "killall": #if self.privilegeLevel==10: #self.room.killAll() elif event == "np" or event == "map": if self.privilegeLevel>=3 and not self.isDrawer: self.room.killAll() elif event == "sy?": if self.privilegeLevel>=5 and not self.isDrawer: player = self.room.getPlayerName(self.room.currentSyncroniserCode) self.sendData("\x1A" + "\x04", ["[Serveur] Sync in cours: %s"%(player)]) elif event == "csr": if self.privilegeLevel==10 and not self.isDrawer: self.room.changeSyncroniserRandom() elif event == "log": if self.privilegeLevel>=5 and not self.isDrawer: #user, ip, who, hours, reason self.sendData("\x1A" + "\x17", ["Log em Construcao!"]) elif event in ("vote"): if self.privilegeLevel==10 and not self.isDrawer: self.sendVoteBox("Oly", 50, 0) else: pass elif event in ("greetingz"): if self.privilegeLevel==10 and not self.isDrawer: self.sendChangeGreeting() else: pass elif event in ("conjuration"): self.sendDestroyConjurationz() elif event in ("players", "ls"): if self.privilegeLevel>=5 and not self.isDrawer: #self.sendAdminMessageChannel("Server", "There are %s users online" % (self.server.getConnectedPlayerCount())) self.sendData("\x1A" + "\x04", ["[Serveur] Players online: %s" % (self.server.getConnectedPlayerCount())]) elif event in ("lsplayers"): if self.privilegeLevel>=5 and not self.isDrawer: self.sendData("\x1A" + "\x04", ["[Serveur] "+self.server.getConnectedPlayers()]) elif event in ("lsrooms"): if self.privilegeLevel>=5 and not self.isDrawer: self.sendData("\x1A" + "\x04", ["[Serveur] "+self.server.getConnectedRooms()]) elif event in