Jump to content

Flipi

Members
  • Posts

    321
  • Joined

  • Last visited

Everything posted by Flipi

  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? ?
  16. Flipi

    Ayuda script

    a un player en especifico, ejemplo que en scoreboard aparezca su nombre (pablito) y cuando escriba en el chatbox aparezca con el tag que le puse ( [noob]pablito ), algo parecido a un tag de admins que se encuentra en la comunidad, pero que se le pueda aplicar a cualquier player, Se entiende?
  17. Flipi

    Ayuda script

    Hola amigos, una pregunta como puedo hacer un script que me permita colocar a cualquier "player" un "tag" en específico? Ejemplo: panchito = [loco]panchito pablito = [noob]pablito se entiende la idea?, tendría que hacerlo dependiendo del serial de cada jugador o no?
  18. Flipi

    Help my script

    oh thanks , I added some font sizes! c:
  19. Flipi

    Help my script

    then remove the dxtext of server-side and added a new event in client-side? in where part the client? some example?
  20. Flipi

    Help my script

    help me add it to my script?, I'm confused
  21. Flipi

    Help my script

    I do not understand how to do so
  22. Flipi

    Help my script

    but as I can make it change color with the setting?
  23. Flipi

    Help my script

    How do I run the setting of my script? (the script is a shout admin) Server-side function shout( player, cmd, ... ) local accountname = getAccountName( getPlayerAccount( player ) ) local w = {...} local message = table.concat(w, " ") if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then triggerClientEvent ( root, "onShouts", root, message ) if get ("ColorText") then dxDrawText(ColorText, theText, leftB, topB, left, top, tocolor(255,255,255,255), 3, "default-bold", "left", "top", false, true, true,true) else outputChatBox( "* #0080FFNo puedes usar este comando!", player, 255, 255, 255, true ) end end end addCommandHandler( "shout", shout ) Client local sx, sy = guiGetScreenSize() local sx = sx / 2 local sy = sy / 2 function drawText() local width = dxGetTextWidth(theText, 3, "default") local height = dxGetFontHeight(3, "default") local leftB = sx - width / 2 local topB = sy - (height + 5) local left = sx - width / 2 local top = sy - height local ColorText = "#0080FF" dxDrawText(theText, leftB+2, topB+2, left, top, tocolor(0, 0, 0, 255), 3, "default-bold", "left", "top", false, true, true) dxDrawText(ColorText, theText, leftB, topB, left, top, tocolor(255,255,255,255), 3, "default-bold", "left", "top", false, true, true,true) end draw = false function drawShout(text) if not draw then theText = text addEventHandler("onClientRender", root, drawText) draw = true setTimer(function() draw = false removeEventHandler("onClientRender", root, drawText) end, 5000, 1) end end addEvent("onShouts", true) addEventHandler("onShouts", root, drawShout) Meta setting name="*Colortexto" value="#0080FF" />
  24. Flipi

    Ayuda setting!

    como seria, asi? server... function shout( player, cmd, ... ) local accountname = getAccountName( getPlayerAccount( player ) ) local w = {...} local message = table.concat(w, " ") if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then triggerClientEvent ( root, "onShouts", root, message ) if get ("ColorText") then dxDrawText(ColorText, theText, leftB, topB, left, top, tocolor(255,255,255,255), 3, "default-bold", "left", "top", false, true, true,true) else outputChatBox( "* #0080FFNo puedes usar este comando!", player, 255, 255, 255, true ) end end end addCommandHandler( "shout", shout ) client.... local sx, sy = guiGetScreenSize() local sx = sx / 2 local sy = sy / 2 function drawText() local width = dxGetTextWidth(theText, 3, "default") local height = dxGetFontHeight(3, "default") local leftB = sx - width / 2 local topB = sy - (height + 5) local left = sx - width / 2 local top = sy - height local ColorText = "#0080FF" dxDrawText(theText, leftB+2, topB+2, left, top, tocolor(0, 0, 0, 255), 3, "default-bold", "left", "top", false, true, true) dxDrawText(ColorText, theText, leftB, topB, left, top, tocolor(255,255,255,255), 3, "default-bold", "left", "top", false, true, true,true) end draw = false function drawShout(text) if not draw then theText = text addEventHandler("onClientRender", root, drawText) draw = true setTimer(function() draw = false removeEventHandler("onClientRender", root, drawText) end, 5000, 1) end end addEvent("onShouts", true) addEventHandler("onShouts", root, drawShout) modifique un poco el server-side, pero aún así no logro hacerlo funcionar alguna ayuda?
  25. Flipi

    Ayuda setting!

    como seria, asi? server... function shout( player, cmd, ... ) local accountname = getAccountName( getPlayerAccount( player ) ) local w = {...} local message = table.concat(w, " ") if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then triggerClientEvent ( root, "onShouts", root, message ) if get ("ColorText") then dxDrawText(ColorText, theText, leftB, topB, left, top, tocolor(255,255,255,255), 3, "default-bold", "left", "top", false, true, true,true) else outputChatBox( "* #0080FFNo puedes usar este comando!", player, 255, 255, 255, true ) end end end addCommandHandler( "shout", shout ) client.... local sx, sy = guiGetScreenSize() local sx = sx / 2 local sy = sy / 2 function drawText() local width = dxGetTextWidth(theText, 3, "default") local height = dxGetFontHeight(3, "default") local leftB = sx - width / 2 local topB = sy - (height + 5) local left = sx - width / 2 local top = sy - height local ColorText = "#0080FF" dxDrawText(theText, leftB+2, topB+2, left, top, tocolor(0, 0, 0, 255), 3, "default-bold", "left", "top", false, true, true) dxDrawText(ColorText, theText, leftB, topB, left, top, tocolor(255,255,255,255), 3, "default-bold", "left", "top", false, true, true,true) end draw = false function drawShout(text) if not draw then theText = text addEventHandler("onClientRender", root, drawText) draw = true setTimer(function() draw = false removeEventHandler("onClientRender", root, drawText) end, 5000, 1) end end addEvent("onShouts", true) addEventHandler("onShouts", root, drawShout) modifique un poco el server-side, pero aún así no logro hacerlo funcionar
×
×
  • Create New...