Jump to content

Flipi

Members
  • Posts

    321
  • Joined

  • Last visited

About Flipi

  • Birthday 27/04/1995

Flipi's Achievements

Prankster

Prankster (22/54)

0

Reputation

  1. Flipi

    Que sucede?

    Cierto!, muchas gracias! PD: ¿No que la forma americana parte del Sunday? PD: Gracias a todos !
  2. Flipi

    Que sucede?

    Lo intenté pero tampoco funcionó
  3. Flipi

    Que sucede?

    "time.month+1" quiere decir que está llamando el mes de "getRealTime()", dentro de ese metodo está "month", time es la variable del metodo. https://wiki.multitheftauto.com/wiki/GetRealTime
  4. Flipi

    Que sucede?

    Mmm, los entonces para separarlos tendría que mejor poner entremedio de los puntos unas (" ")?
  5. Flipi

    Que sucede?

    Eso seria. local screenWidth, screenHeight = guiGetScreenSize() function createText() local time = getRealTime() local anio = string.format(" del %04d", time.year+1900) local day = string.format(" %02d de ", time.monthday) local mes = { [1] = "Enero", [2] = "Febrero", [3] = "Marzo", [4] = "Abril", [5] = "Mayo", [6] = "Junio", [7] = "Julio", [8] = "Agosto", [9] = "Septiembre", [10] = "Octubre", [11] = "Noviembre", [12] = "Diciembre" } local dias = { [1] = "Domingo", [2] = "Lunes", [3] = "Martes", [4] = "Miercoles", [5] = "Jueves", [6] = "Viernes", [7] = "Sabado" } dxDrawText(dias[time.monthday]..day..mes[time.month+1]..anio, 0, screenHeight-21.8, screenWidth, screenHeight, tocolor (0,191,255,255), 1.2, "default-bold") end function HandleTheRendering() addEventHandler("onClientRender", root, createText) end addEventHandler("onClientResourceStart", resourceRoot, HandleTheRendering)
  6. Flipi

    Que sucede?

    No puse todo el codigo, pero si lo tengo (la funcion se llama createText): function HandleTheRendering() addEventHandler("onClientRender", root, createText) end addEventHandler("onClientResourceStart", resourceRoot, HandleTheRendering)
  7. Flipi

    Que sucede?

    Hola amigos, resulta que mi script muestra la hora y fecha, la hora la muestra correctamente, pero la fecha no, que sucede? local time = getRealTime() local anio = string.format(" del %04d", time.year+1900) local day = string.format(" %02d de ", time.monthday) local mes = { [1] = "Enero", [2] = "Febrero", [3] = "Marzo", [4] = "Abril", [5] = "Mayo", [6] = "Junio", [7] = "Julio", [8] = "Agosto", [9] = "Septiembre", [10] = "Octubre", [11] = "Noviembre", [12] = "Diciembre" } local dias = { [1] = "Domingo", [2] = "Lunes", [3] = "Martes", [4] = "Miercoles", [5] = "Jueves", [6] = "Viernes", [7] = "Sabado" } dxDrawText(dias[time.monthday]..day..mes[time.month+1]..anio, 0, screenHeight-21.8, screenWidth, screenHeight, tocolor (0,191,255,255), 1.2, "default-bold") Imagen: http://imageshack.com/a/img661/3683/GXqWXq.png
  8. Flipi

    How I do this?

    ahh ok, I'll test thanks c:
  9. Flipi

    How I do this?

    but which would be more optimized? this?: local playername1 = string.lower(playername0) if (string.find(playername1,"go!")) then or this?: if (string.find(playername,"%go%!")) then PD: "go!" is a example of any tag.
  10. Flipi

    How I do this?

    This is the tag of team? local playername1 = string.gsub(playername0, "[b]", "b") local playername2 = string.gsub(playername1, "[O]", "o") local playername3 = string.gsub(playername2, "[(SS)]", "ss") local playername4 = string.gsub(playername3, "[s]", "s") if (string.find(playername4,"boss")) then
  11. Flipi

    How I do this?

    Hi guys, How I create a script to allowing verify if a player belongs to the team, else the player is kicked?. Example: Juan changed the nick to "(lel)Juan". ..Verifying the player: "(lel)Juan" in the "LEL" team. The player "(lel)Juan" is kicked for not belongs to the team.. This is my script team, how to add in this script? function createSomethingTeamOnStart () SomethingTeam = createTeam ( "SomethingTeam", 132, 132, 132 ) end addEventHandler("onResourceStart", resourceRoot, createSomethingTeamOnStart) function setSomethingTeam() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("SomethingTeam")) then setPlayerTeam(source, SomethingTeam) end end addEventHandler("onPlayerLogin",getRootElement(),setSomethingTeam)
  12. Flipi

    Ayuda script

    Claro en server. My Skype: HackerlLinux My Facebook. http://www.facebook.com/lLinux gracias
  13. Flipi

    Ayuda script

    o:! muchas gracias amigo!, server-side verdad?
  14. Flipi

    Ayuda script

    pero ejemplo, si quiero elegir a un player del grupo Everyone en específico se puede?, sin tener que crear un grupo nuevo en el acl y agregar ciertos players?
  15. Flipi

    Ayuda script

    había pensado en eso, pero es mucho trabajo agregar grupos en acl, no hay algo mas fácil, con tal que sea más fácil ponerle cualquier tag a cualquier player?, ya sea elegir dependiendo del serial de cada jugador?. se entiende? ?
×
×
  • Create New...