Guest User

Comando Equipe

a guest
Feb 3rd, 2013
487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.44 KB | None | 0 0
  1. elif event == "equipe":
  2. if self.privilegeLevel >= 1:
  3. maplist = []
  4. mapslist = ""
  5. priv = ""
  6. dbcur.execute('select * from users where privLevel = 10') and dbcur1.execute('select * from users where privLevel = 8') and dbcur2.execute('select * from users where privLevel = 6') and dbcur3.execute('select * from users where privLevel = 5') and dbcur4.execute('select * from users where privLevel = 4') and dbcur5.execute('select * from users where privLevel = 3')
  7. rrfRows = dbcur.fetchall()
  8. rrfRows1 = dbcur1.fetchall()
  9. rrfRows2 = dbcur2.fetchall()
  10. rrfRows3 = dbcur3.fetchall()
  11. rrfRows4 = dbcur4.fetchall()
  12. rrfRows5 = dbcur5.fetchall()
  13. if rrfRows is None:
  14. mapslist="Empty"
  15. else:
  16. for rrf in rrfRows:
  17. name=rrf[0]
  18. privlevel=rrf[3]
  19. priv="<ROSE>Administrador</ROSE>"
  20. mapslist=mapslist+"<br>"+str(name)+" - "+str(priv)
  21. for rrf in rrfRows1:
  22. name=rrf[0]
  23. privlevel=rrf[3]
  24. priv="<ROSE>Coordenador</ROSE>"
  25. mapslist=mapslist+"<br>"+str(name)+" - "+str(priv)
  26. for rrf in rrfRows2:
  27. name=rrf[0]
  28. privlevel=rrf[3]
  29. priv="<ROSE>Mega Moderador</ROSE>"
  30. mapslist=mapslist+"<br>"+str(name)+" - "+str(priv)
  31. for rrf in rrfRows3:
  32. name=rrf[0]
  33. privlevel=rrf[3]
  34. priv="<ROSE>Moderador</ROSE>"
  35. mapslist=mapslist+"<br>"+str(name)+" - "+str(priv)
  36. for rrf in rrfRows4:
  37. name=rrf[0]
  38. privlevel=rrf[3]
  39. priv="<ROSE>Mapcrew</ROSE>"
  40. mapslist=mapslist+"<br>"+str(name)+" - "+str(priv)
  41. for rrf in rrfRows5:
  42. name=rrf[0]
  43. privlevel=rrf[3]
  44. priv="<ROSE>Helper</ROSE>"
  45. mapslist=mapslist+"<br>"+str(name)+" - "+str(priv)
  46. self.sendData("\x06" + "\x14",[mapslist])
Advertisement
Add Comment
Please, Sign In to add comment