-
Posts
1,410 -
Joined
-
Last visited
Everything posted by Arsilex
-
pos a mi me anda a la perfecion no se que abras echo mal
-
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
-
vale muchas gracias voy a mirar aver si saco algo
-
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?
-
tienes que editar el scoreboard ya que el no puede monstrar imagenes
-
Sorry si me funciona pero me puedes decir como le puede hacer para que se me cambie de sitio?
-
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???
-
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 ?
-
no va tio aparece la tabla ID pero no sale nada
-
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?
-
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?
-
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 ._.
-
Hola alguen me puede decir que evento se utiliza para cojer las banderas del admin y ponerlas en tab?
-
perfecto castillo muchas gracias ^^ (EL MEJOR)
-
al comenzar el mapa me funcionan los colores pero los colores al cambiar vehiculo sigue sin cambiar
-
pero a mi en race dm cuando cambias de coche con un pickup no me cambia el color
-
--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" />
-
pos no me funciona solo funciona al cambiar de mapa pero de coche no funciona
-
pos no me funciona cambio el mapa y se quedan los colores de mta normales