Jump to content

Arsilex

Members
  • Posts

    1,410
  • Joined

  • Last visited

Everything posted by Arsilex

  1. pos a mi me anda a la perfecion no se que abras echo mal
  2. lo primero no lo iciste tu y lo segundo lo tengo yo me va perfecto y lo de cambiarlo tienes que cambiar las coordenadas de el dxDrawColoreText que aun no lo averigue donde aver si me dice elmota donde es
  3. vale muchas gracias voy a mirar aver si saco algo
  4. Hola miren ize este script y me sale el cuadro y todo eso pero no me sale el nombre del jugador que sali y que entra local screenWidth, screenHeight = guiGetScreenSize() alpha=0 alpha2=0 Maximo=8 Maximo2=12.75 addEventHandler("onClientPlayerJoin",getRootElement(), function (joinquit) Join = getPlayerName ( source ) .." se a unido al servidor." setTimer (stopDrawing, 11700, 1) setTimer (deleteAlpha, 11300, 1) setTimer (startDrawing, 5000, 1) end ) addEventHandler('onClientPlayerQuit', root, function ( ) Quit = getPlayerName ( source ) .." se fue del servidor." setTimer (stopDrawing, 11700, 1) setTimer (deleteAlpha, 11300, 1) setTimer (startDrawing, 5000, 1) end ) function stopDrawing () removeEventHandler ( "onClientRender", root, mainDrawing) end function startDrawing () addEventHandler ( "onClientRender", root, mainDrawing) setTimer (MovingShit, 50, Maximo) setTimer (MovingShit2, 50, Maximo2) end function MovingShit() alpha = alpha+20 end function MovingShit2() alpha2 = alpha2+20 end function deleteAlpha () setTimer (MovingShit3, 50, Maximo) setTimer (MovingShit4, 50, Maximo2) end function MovingShit3() alpha = alpha-20 end function MovingShit4() alpha2 = alpha2-20 end function mainDrawing () dxDrawImage (screenWidth/2 - 240, screenHeight - 200, 480, 175, "bg.png", 0, 0, 0, tocolor (0,0,0,alpha2)) dxDrawRectangle (screenWidth/2 - 224, screenHeight - 189, 448, 151.6, tocolor (170, 14, 162, alpha)) dxDrawText ("\n"..name, screenWidth/2 - 225, screenHeight - 190, screenWidth/2 + 224, screenHeight + 189, tocolor (255, 255, 255, alpha2), 1.5, "default-bold", "center", "top", true, false, false) dxDrawText ("\n"..name, screenWidth/2 - 224, screenHeight - 189, screenWidth/2 + 224, screenHeight + 189, tocolor (0, 0, 0, alpha2), 1.5, "default-bold", "center", "top", true, false, false) dxDrawText ("\n\n\n\n[Join]: ", screenWidth/2 - 225, screenHeight - 190, screenWidth/2, screenHeight + 189, tocolor (255, 255, 255, alpha2), 1.5, "default-bold", "right", "top", true, false, false) dxDrawText ("\n\n\n\n\n[Quit]: ", screenWidth/2 - 225, screenHeight - 190, screenWidth/2, screenHeight + 189, tocolor (255, 255, 255, alpha2), 1.5, "default-bold", "right", "top", true, false, false) dxDrawText ("\n\n\n\n[Join]: ", screenWidth/2 - 224, screenHeight - 189, screenWidth/2, screenHeight + 189, tocolor (0, 0, 0, alpha2), 1.5, "default-bold", "right", "top", true, false, false) dxDrawText ("\n\n\n\n\n[Quit]: ", screenWidth/2 - 224, screenHeight - 189, screenWidth/2, screenHeight + 189, tocolor (0, 0, 0, alpha2), 1.5, "default-bold", "right", "top", true, false, false) dxDrawText ("\n\n\n\n "..Join, screenWidth/2 - 1, screenHeight - 190, screenWidth/2 + 224, screenHeight + 189, tocolor (0, 0, 0, alpha2), 1.5, "default-bold", "left", "top", true, false, false) dxDrawText ("\n\n\n\n\n "..Quit, screenWidth/2 - 1, screenHeight - 190, screenWidth/2 + 224, screenHeight + 189, tocolor (0, 0, 0, alpha2), 1.5, "default-bold", "left", "top", true, false, false) dxDrawText ("\n\n\n\n "..Join, screenWidth/2, screenHeight - 189, screenWidth/2 + 224, screenHeight + 189, tocolor (255, 255, 255, alpha2), 1.5, "default-bold", "left", "top", true, false, false) dxDrawText ("\n\n\n\n\n "..Quit, screenWidth/2, screenHeight - 189, screenWidth/2 + 224, screenHeight + 189, tocolor (255, 255, 255, alpha2), 1.5, "default-bold", "left", "top", true, false, false) end Alguen me puede decir en que falla?
  5. Arsilex

    Variable

    y como ago para que al poner /redo mas de 1 vez en un mapa salga en chat que no se puede resetear mapa y que no sen resete ???
  6. Arsilex

    Variable

    pero no ay que ponerle cuantos redos se pueden dar maximo====
  7. Arsilex

    Variable

    esto valdria mira redo = 1 local redo = changeGamemodeMap
  8. Arsilex

    Variable

    Alguen me dice donde podria leer mas sobre variables como se usan nesesito para el script de race cuando ponen un comando que solos e permita una vez usarlo 5 minutos
  9. tienes que editar el scoreboard ya que el no puede monstrar imagenes
  10. Arsilex

    Logout

    no por que el prefiere echar a la personas por que ay panel de race que se bugea si te deslogeas y compras cosas no te kita money por eso sera?
  11. Sorry si me funciona pero me puedes decir como le puede hacer para que se me cambie de sitio?
  12. g_Root = getRootElement() addEventHandler('onPlayerChangeNick', g_Root, function ( ) local Name = getRootElementNick dxDrawText ( Name, 44, screenHeight - 41, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, "pricedown" ) dxDrawText ( Name, 44, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "pricedown" ) end ) Asi???
  13. Hola amigos queria saber como acer para que al entrar un jugador al sv el mensaje del chatbox aparezca en otra parte y no en el chatbox por ejemplo ariva a la derecha y cosas asi me pueden decir que tengo que acer ?
  14. Arsilex

    Flag

    nada sigue sin ir
  15. Arsilex

    Flag

    no va tio aparece la tabla ID pero no sale nada
  16. Arsilex

    Flag

    local optimize = true -- Should the script be optimized? (if optimized, cannot be used client-side) local ids = {} function assignID() for i=1,getMaxPlayers() do if not ids[i] then ids[i] = source setElementData(source,"id",i,not optimize) break end end end addEventHandler("onPlayerJoin",root,assignID) function startup() for k, v in ipairs(getElementsByType("player")) do local id = getElementData(v,"id") if id then ids[id] = v end end end addEventHandler("onResourceStart",resourceRoot,startup) function getPlayerID(player) for k, v in ipairs(ids) do if v == player then return k end end end function freeID() local id = getElementData(source,"id") if not id then return end ids[id] = nil end addEventHandler("onPlayerQuit",root,freeID) function getPlayerByID(id) local player = ids[id] return player or false end ese sirve?
  17. Arsilex

    Flag

    am Edit: olle y para añadir delante del nombre ID del personaje por ejemplo cuando alguen entre el primero de todos que le den id 1 y asi como se aria?
  18. Arsilex

    Flag

    no yo no quero el script ese cambia el admin y no por que carga mucho despues tengo esto exports.scoreboard:addScoreboardColumn('Country') exports.scoreboard:addScoreboardColumn('Home') function showHome () local Home = call(getResourceFromName("admin"), "getPlayerCountry", source) setElementData(source,"Country",Home) end addEventHandler("onPlayerJoin",getRootElement(),showHome) lo quero que me digan que llamada tengo que poner ._.
  19. Arsilex

    Flag

    Hola alguen me puede decir que evento se utiliza para cojer las banderas del admin y ponerlas en tab?
  20. perfecto castillo muchas gracias ^^ (EL MEJOR)
  21. al comenzar el mapa me funcionan los colores pero los colores al cambiar vehiculo sigue sin cambiar
  22. pero a mi en race dm cuando cambias de coche con un pickup no me cambia el color
  23. --server-side local colors = { { 128, 255, 0 }, { 43, 25, 255 }, { 255, 2, 255 }, { 0, 255, 247 }, { 201, 255, 0 }, { 255, 0, 0 }, { 0, 81, 255 }, { 252, 255, 36 }, { 87, 16, 154 }, { 255, 94, 0 } } addEventHandler ( 'onVehicleEnter', root, function ( ) setVehicleColor ( source, unpack ( colors[ math.random ( #colors ) ] ) ) end ) --meta "AsuS" description="changes car color " version="1" type="script" />
  24. pos no me funciona solo funciona al cambiar de mapa pero de coche no funciona
  25. pos no me funciona cambio el mapa y se quedan los colores de mta normales
×
×
  • Create New...