Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. elif command in ["colornick"]:
  2. if argsCount == 0:
  3. this.client.sendMessage("<font color='#FFFFFF'>Escribe</font> <font color='#FFFF00'><b>/colornick piel</b></font><font color='#FFFFFF'> y selecciona un color de piel</font>")
  4. this.client.sendMessage("<font color='#FFFFFF'>Escribe</font> <font color='#FFFF00'><b>/colornick chat</b></font><font color='#FFFFFF'> y selecciona un color de chat</font>")
  5. if argsCount == 2:
  6. variable = values[1].lower()
  7. colorelegido = values[2].lower()
  8. if variable == "piel":
  9. xxxs = int(colorelegido)
  10. color = hex(xxxs).replace("0x", "")
  11. this.client.mouseColor = str(color)
  12. this.client.sendMessage("<font color='#"+str(color)+"'>Este es el color de tu ratón</font>")
  13. this.client.Cursor.execute("update users set MouseColor = %s where Username = %s", [color, this.client.playerName])
  14. if variable == "chat":
  15. if this.client.privLevel >= 1:
  16. xxxs = int(colorelegido)
  17. color = hex(xxxs).replace("0x", "")
  18. this.client.chatColor = "#"+str(color)
  19. this.client.sendMessage("<font color='"+str(this.client.chatColor)+"'>Este es tu nuevo color de chat</font>")
  20. this.client.Cursor.execute("update users set colorchat = %s where Username = %s", [this.client.chatColor, this.client.playerName])
  21. this.client.sendMessage("<font color='"+str(this.client.chatColor)+"'>SI USAS COLORES QUE CUESTEN LEER O DAÑEN LA VISTA SERÁS SANCIONADO.</font>")
  22. if not variable == "piel" and not variable == "chat":
  23. this.client.sendMessage("<font color='#FFFFFF'>Escribe</font> <font color='#FFFF00'><b>/colornick piel</b></font><font color='#FFFFFF'> y selecciona un color de piel</font>")
  24. this.client.sendMessage("<font color='#FFFFFF'>Escribe</font> <font color='#FFFF00'><b>/colornick chat</b></font><font color='#FFFFFF'> y selecciona un color de chat</font>")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement