Jump to content

yaver123

Members
  • Posts

    59
  • Joined

  • Last visited

Details

  • Gang
    vallas

yaver123's Achievements

Snitch

Snitch (10/54)

0

Reputation

  1. pero lo copie y todo como lo tienen ustedes y no me anda
  2. PRIMERO LEE ARRIBA DIJE Hola ise este script que me paso un chico de aca de foro y no anda QUE ME PASO UN CHICO YO SOLO ISE LO DEL META MEN OTRA COSA NO ANDA ENTRA UN USER Y NO APARECE NADA ...
  3. para que me ayuden mejor nadie me ayuda nunca nunca comentan mis post
  4. pero creo que no entendes por que yo ise uno pero no anda function dxDrawColorText(str, ax, ay, bx, by, color, scale, font, left, top, clip, wordbreak, postGUI) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font ) ax = ax + w color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end last = e + 1 s, e, cap, col = str:find( pat, last ) end if last <= #str then cap = str:sub( last ) local w = dxGetTextWidth( cap, scale, font ) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font, left, top, clip, wordbreak, postGUI ) end end local messageJoin = "" local messageQuit = "" function renderPlayerJoined ( ) dxDrawColorText("* ".. messageJoin,504.0,4.0,574.0,20.0,tocolor(200,0,0,255),0.7,"sans","left","top",false,false,false) end function renderPlayerLeft ( ) dxDrawColorText("* ".. messageQuit,503.0,16.0,573.0,32.0,tocolor(0,0,255,170),0.7,"sans","left","top",false,false,false) end addEventHandler('onClientPlayerJoin', root, function() messageJoin = getPlayerName(source) .. " #ffffffa entrado al servidor." addEventHandler ( "onClientRender", root, renderPlayerJoined ) setTimer ( function ( ) removeEventHandler ( "onClientRender", root, renderPlayerJoined ) end ,6000,1 ) end ) addEventHandler('onClientPlayerChangeNick', root, function(oldNick, newNick) outputChatBox('* ' .. oldNick .. ' #ffffffis now known as ' .. newNick, 255, 100, 100) end ) addEventHandler('onClientPlayerQuit', root, function(reason) messageQuit = getPlayerName(source) .. " #ffffffa salido del server [" .. reason .. "]" addEventHandler ( "onClientRender", root, renderPlayerLeft ) setTimer ( function ( ) removeEventHandler ( "onClientRender", root, renderPlayerLeft ) end ,6000,1 ) end )
  5. no sera local esBot = getElementData("slothBot"(attacker) ) te falto la T axel ayudame en los otros posts
  6. Hola bueno hacemos este post aver si me ayudan mejor quisiera hacer un script donde , cuando uno se connecta aparesca esto * ejemplo has joined the game " que diga "ejemplo se a unido " y cuando se va diga "ejemplo abandono el server" que en vez de que aparesca en el chat que aparesca a la derecha de la pantalla
  7. Hola ise este script que me paso un chico de aca de foro y no anda que es lo que salio mal o lo que falta para que anda quiero cambiar el connect de los users y que aparesca a la derecha function dxDrawColorText(str, ax, ay, bx, by, color, scale, font, left, top, clip, wordbreak, postGUI) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font ) ax = ax + w color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end last = e + 1 s, e, cap, col = str:find( pat, last ) end if last <= #str then cap = str:sub( last ) local w = dxGetTextWidth( cap, scale, font ) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font, left, top, clip, wordbreak, postGUI ) end end local messageJoin = "" local messageQuit = "" function renderPlayerJoined ( ) dxDrawColorText("* ".. messageJoin,504.0,4.0,574.0,20.0,tocolor(200,0,0,255),0.7,"sans","left","top",false,false,false) end function renderPlayerLeft ( ) dxDrawColorText("* ".. messageQuit,503.0,16.0,573.0,32.0,tocolor(0,0,255,170),0.7,"sans","left","top",false,false,false) end addEventHandler('onClientPlayerJoin', root, function() messageJoin = getPlayerName(source) .. " #ffffffa entrado al servidor." addEventHandler ( "onClientRender", root, renderPlayerJoined ) setTimer ( function ( ) removeEventHandler ( "onClientRender", root, renderPlayerJoined ) end ,6000,1 ) end ) addEventHandler('onClientPlayerChangeNick', root, function(oldNick, newNick) outputChatBox('* ' .. oldNick .. ' #ffffffis now known as ' .. newNick, 255, 100, 100) end ) addEventHandler('onClientPlayerQuit', root, function(reason) messageQuit = getPlayerName(source) .. " #ffffffa salido del server [" .. reason .. "]" addEventHandler ( "onClientRender", root, renderPlayerLeft ) setTimer ( function ( ) removeEventHandler ( "onClientRender", root, renderPlayerLeft ) end ,6000,1 ) end ) y el meta es "fisker" version="1.0.0" type="script" name="redirect" description="c" />
  8. function dxDrawColorText(str, ax, ay, bx, by, color, scale, font, left, top, clip, wordbreak, postGUI) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font ) ax = ax + w color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end last = e + 1 s, e, cap, col = str:find( pat, last ) end if last <= #str then cap = str:sub( last ) local w = dxGetTextWidth( cap, scale, font ) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font, left, top, clip, wordbreak, postGUI ) end end local messageJoin = "" local messageQuit = "" function renderPlayerJoined ( ) dxDrawColorText("* ".. messageJoin,504.0,4.0,574.0,20.0,tocolor(200,0,0,255),0.7,"sans","left","top",false,false,false) end function renderPlayerLeft ( ) dxDrawColorText("* ".. messageQuit,503.0,16.0,573.0,32.0,tocolor(0,0,255,170),0.7,"sans","left","top",false,false,false) end addEventHandler('onClientPlayerJoin', root, function() messageJoin = getPlayerName(source) .. " #ffffffa entrado al servidor." addEventHandler ( "onClientRender", root, renderPlayerJoined ) setTimer ( function ( ) removeEventHandler ( "onClientRender", root, renderPlayerJoined ) end ,6000,1 ) end ) addEventHandler('onClientPlayerChangeNick', root, function(oldNick, newNick) outputChatBox('* ' .. oldNick .. ' #ffffffis now known as ' .. newNick, 255, 100, 100) end ) addEventHandler('onClientPlayerQuit', root, function(reason) messageQuit = getPlayerName(source) .. " #ffffffa salido del server [" .. reason .. "]" addEventHandler ( "onClientRender", root, renderPlayerLeft ) setTimer ( function ( ) removeEventHandler ( "onClientRender", root, renderPlayerLeft ) end ,6000,1 ) end ) Elmota en que parte pongo para cambiarla de lugar? osea que en ves que este arriba que este a la derecha
  9. entonces el que anda es local posiciones = { { 0, 0, 5 } { 0, 0, 10 } } function consoleSetPlayerPosition ( commandName, numero ) local numero = tonumber ( numero ) if ( numero ) then if numero >= 1 then setElementPosition ( localPlayer, unpack ( posiciones [ numero-1 ] ) ) else outputChatBox("Ha ingresado un número invalido. Sólo puede ingresar del 1 en adelante", 255, 255, 255, true) end else outputChatBox("No es un numero!", 255, 255, 255, true) end end addCommandHandler ( "lugar", consoleSetPlayerPosition ) y con eso sirve?
  10. Hola solidus vos sos el unico que me puede ayudar creo aca veo que se puede hacer que el panel de admin se abra con dos teclas lo vi en la wiki - Definir una función que devuelve un mensaje si se pulsa el control, y otro diferente si no es la función printMessageFunction ( ) - si las teclas de control izquierda o derecha se pulsa, el usuario ha pulsado la tecla "control + p" combo si GetKeyState ( "lctrl" ) == verdadero o GetKeyState ( "RCTRL" ) == verdadera continuación outputChatBox ( "Ha pulsado 'Control + P". " ) - si ninguno de los que se presiona, simplemente pulsa el p " "llave demás outputChatBox ( "Ha pulsado 'p'." ) final final - se unen la "p" para nuestra función bindKey ( "p" , "abajo" , "mensaje de impresión" , printMessageFunction ) osea como tengo que ponerlo para abra la tecla en el panel? https://wiki.multitheftauto.com/wiki/GetKeyState
  11. Ok aca lo ise no se si esta bien , estoy aprendiendo local function playerChat(message, messageType) if messageType == 0 then cancelEvent() local accountName = getAccountName ( getPlayerAccount ) outputServerLog("TAB: "..accountName..": "..message) end end addEventHandler("onPlayerLogin", root,onPlayerLogin) eso esta bien? me lo puede hacer ustedes o ayudame mas asi aprendo , con esto aprendo mucho hacer otros scripts y como exporto la columna? me lo hacen asi aprendo como hacer cosas parecidas?
  12. YO LO ISE ASI ESTA BIEN? local function playerChat(message, messageType) if messageType == 0 then cancelEvent() local accountName = getAccountName ( getPlayerAccount ( source ) ) outputServerLog("TAB: "..accountName(source)..": "..message) end end SI ESTA MAL LO PUEDEN PONER MEJOR?
  13. Bueno ya saben que antes ise un post y pregunte como cambiar el comando para abrir el panel admin por dos :ejemplo:: altgr + p y bueno aca consegui un panel de otra cosa que se abre con dos teclas if not getKeyState("lctrl") and not getKeyState("rctrl") then return end -- если окно уже показано, то просто скрыть его if guiGetVisible(tGUI_Window[1]) then guiSetVisible( tGUI_Window[1], false ) showCursor(false) return end if not fIsGUIActionsAllowed() then return end local uVehicle = getPedOccupiedVehicle(localPlayer) if not uVehicle then return end local tHandling = getVehicleHandling(uVehicle) if not uVehicle then return end fUpdateGUIFromHandlingTable( tHandling, getElementModel(uVehicle) ) guiSetVisible( tGUI_Window[1], true ) showCursor(true) end bindKey( "h", "down", fOpenHandlingGUI ) quisiera saber si podrian poner que ese comando ( que se abra con dos teclas ) en mi panel de admin este es el panel me ayudan http://pastebin.com/9Q3ky9dh
×
×
  • Create New...