Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- elif command in ["colornick"]:
- if argsCount == 0:
- 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>")
- 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>")
- if argsCount == 2:
- variable = values[1].lower()
- colorelegido = values[2].lower()
- if variable == "piel":
- xxxs = int(colorelegido)
- color = hex(xxxs).replace("0x", "")
- this.client.mouseColor = str(color)
- this.client.sendMessage("<font color='#"+str(color)+"'>Este es el color de tu ratón</font>")
- this.client.Cursor.execute("update users set MouseColor = %s where Username = %s", [color, this.client.playerName])
- if variable == "chat":
- if this.client.privLevel >= 1:
- xxxs = int(colorelegido)
- color = hex(xxxs).replace("0x", "")
- this.client.chatColor = "#"+str(color)
- this.client.sendMessage("<font color='"+str(this.client.chatColor)+"'>Este es tu nuevo color de chat</font>")
- this.client.Cursor.execute("update users set colorchat = %s where Username = %s", [this.client.chatColor, this.client.playerName])
- this.client.sendMessage("<font color='"+str(this.client.chatColor)+"'>SI USAS COLORES QUE CUESTEN LEER O DAÑEN LA VISTA SERÁS SANCIONADO.</font>")
- if not variable == "piel" and not variable == "chat":
- 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>")
- 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