Jump to content

BorderLine

Members
  • Posts

    1,027
  • Joined

  • Last visited

Everything posted by BorderLine

  1. aaaaaaaaah ahora entiendo. addCommandHandler( "pm", function( thePlayer, commandName, otherPlayer, ... ) local account = getPlayerAccount(thePlayer) local account2 = getPlayerAccount(otherPlayer) if exports.players:isLoggedIn( thePlayer ) then if otherPlayer and ( ... ) then local message = table.concat( { ... }, " " ) local player, name = exports.players:getFromName( thePlayer, otherPlayer ) if player then if isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Everyone' ) ) and if isObjectInACLGroup( 'user.'..getAccountName( account2 ), aclGetGroup( 'Admin' ) ) or if isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Admin' ) ) and if isObjectInACLGroup( 'user.'..getAccountName( account2 ), aclGetGroup( 'Everyone' ) ) then pm( thePlayer, player, message ) else outputChatBox( "El jugador no es un administrador", thePlayer, 255, 255, 255 ) end end end end end else outputChatBox( "Syntax: /" .. commandName .. " [player] [ooc text]", thePlayer, 255, 255, 255 ) end end end ) No estoy seguro. Dudo mucho, pero testealo
  2. download last versions, Webpanel, webadmin. and add admins rights? all that is ok?
  3. te falto givePlayerMoney
  4. intenta esto addCommandHandler( "pm", function( thePlayer, commandName, otherPlayer, ... ) local account = getPlayerAccount(thePlayer) if exports.players:isLoggedIn( thePlayer ) then if otherPlayer and ( ... ) then local message = table.concat( { ... }, " " ) local player, name = exports.players:getFromName( thePlayer, otherPlayer ) if player then if isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Admin' ) ) then pm( thePlayer, player, message ) else outputChatBox( "El jugador no es un administrador", thePlayer, 255, 255, 255 ) end end else outputChatBox( "Syntax: /" .. commandName .. " [player] [ooc text]", thePlayer, 255, 255, 255 ) end end end )
  5. debes quitar el botton y el drawline creo que dibuja el boton settings. tambien quitar el xml qyue guarda la configuracion
  6. esas cordenadas debes sakarlas tu. te pones en el lugar donde kieres el blip. abres el panel de admin, te selecicionas y ai tienes las cordenadas x,z,y
  7. sorry for wasted your time guys.. but was my bad i put "onClientPedHeliKilled" and was "onClientPlayerHeliKilled" thanks, now its solved
  8. Nobody know why this is wrong?
  9. gatec1 = createObject(7017, 1521.6103515625, 1789.4267578125, 7.57905626297, 0, 90, 0) gatec1marker = createMarker ( 1521.6103515625, 1789.4267578125, 7.57905626297,'cylinder', 15, 0, 0, 255, 0) function enablecommand (hitPlayer) if (hitPlayer == gatec1maker) then addCommandHandler("open",open) end end addEventHandler("onMarkerHit",gatec1marker , enablecommand) function disablecommand(hitPlayer) removeEventHandler("onMarkerHit",gatec1marker , enablecommand) end addEventHandler ("onMarkerLeave",gatec1marker,disablecommand) function open() moveObject (gatec1, 4000, 1527.1838378906, 1789.4267578125, 7.57905626297) end function close(hitPlayer) moveObject (gatec1,3000,1521.6103515625, 1789.4267578125, 7.57905626297) end addEventHandler ("onMarkerLeave",gatec1marker,close) Nose si funcione pero intenta
  10. BorderLine

    Correr

    si. usa setWeaponProperty() mira las flags y sus descripciones suerte
  11. gatec1 = createObject(7017, 1521.6103515625, 1789.4267578125, 7.57905626297, 0, 90, 0) gatec1marker = createMarker ( 1521.6103515625, 1789.4267578125, 7.57905626297,'cylinder', 15, 0, 0, 255, 0) function open(hitPlayer) moveObject (gatec1, 4000, 1527.1838378906, 1789.4267578125, 7.57905626297) end addEventHandler("onMarkerHit",gatec1marker , open) function close(hitPlayer) moveObject (gatec1,3000,1521.6103515625, 1789.4267578125, 7.57905626297) end addEventHandler ("onMarkerLeave",gatec1marker,close) prueba esto y si te gusta. Con marcadores. Nomas editale el tamaño del marker
  12. Hi everyone. Well i was making a simple script. and is the example from wikki. but this dont work. Is enabled this function in the actually mta version?? my code function cancelDeath() cancelEvent() end addEventHandler("onClientPedHeliKilled", root, cancelDeath) meta 'Yakuza' version='1' name='helikill' description='Scripts.' type='script' /> client="1.3.0-9.03893" /> If someone know about this thanks for your time
  13. probaste cambiando el content color?
  14. Receives any number of arguments, and prints their values to stdout, using the tostring function to convert them to strings. print is not intended for formatted output, but only as a quick way to show a value, typically for debugging. For formatted output, use string.format.
  15. abres el archivo .map e ingrresas las contraseñas por class despues si que nose como se hace para ingresarla, me parece que te aparece un gui
  16. sacame una duda, quieres detruir los blips cierto? y porq el asunto del print( "number of players in team: " .. tostring( countPlayersInTeam( getPlayerTeam( player ) ) ) ); ?
  17. descargalo de nuevo para que pudas usarlo con las contraseñas. https://community.multitheftauto.com/index.php?p= ... ls&id=1152
  18. Ese script es bastante complicado para editarlo, ya que no esta programado en Lua un 100%. Fijate en el codigo. Deberas usar las pass o crear uno desde 0. Usa el GUIEditor y te sera facil hacer un spawn, ya lo demas es hacer triggers y setcameramatrix y setElementModel y esas cosas. Suerte
  19. la verdad la programacion, en general, no es algo que se aprende por medio de videos o tutoriales, lo mejor es aprenderlo por ti mismo, como aprender a leer y escribir. Primero, la programacion en lua debes tener un buen conocimiento en ingles. Eso es esencial. Puedes visitar la Wiki de MTA. Algunos de los buenos usuarios activos del foro de MTA se han dado el tiempo para traducir todo y asi poder facilitar el conocimiento. Aca te dejo el post de @Akiba (Benxamix2) viewtopic.php?f=122&t=30847. Esas son las funciones de MTA. estan al costado derecho tanto las funciones y eventos de clientside y serverside.
  20. BorderLine

    Help Font.

    the format file to fonts is "ttf" not tff .. fix it in meta try this srfont = dxCreateFont("font.ttf",13) g_GuiLabel = { } function GuiShow() if g_Settings.Visible then g_GuiLabel.Speed:visible(true) g_GuiLabel.Unit:visible(true) end end addEventHandler("onClientScreenFadedIn", root, GuiShow) function GuiHide() g_GuiLabel.Speed:visible(false) g_GuiLabel.Unit:visible(false) end addEventHandler("onClientScreenFadedOut", root, GuiHide) function GuiInitialize() local screenWidth, screenHeight = guiGetScreenSize() g_GuiLabel.Speed = dxText:create("0", screenWidth-72, screenHeight - 36, false, srfont, 2, "right") g_GuiLabel.Speed:type("stroke", 3, 0, 0, 0, 255) g_GuiLabel.Speed:color(0,170,255,255) g_GuiLabel.Unit = dxText:create("", screenWidth-64, screenHeight - 28, false, srfont, 1, "left") g_GuiLabel.Unit:type("stroke", 2, 0, 0, 0, 255) g_GuiLabel.Unit:color(255,255,255,255) GuiHide() end GuiInitialize()
  21. Esto suele pasar cuando editas el race y cambias algun detalle que crees ser minimo. Es medio complicado editarlo, si es que lo hisiste. Intenta descargando la ultima version del mapnamager. Aca el link http://code.google.com/p/mtasa-resources/downloads/list Y sino intenta cambiar ambos, el votemanager y el Race por la nueva version Suerte
  22. ooh claro se me paso la S lo testeare ensegida man.. muchas gracias
  23. mmm no se me ocurre algo, solo se me ocurre esto del handling para ke se vea mas real, podrias cambiar los grados del carro de modo que se incline, pero no se veria tan real a menos ke agreges esto y le des una bind key para activarlo o desactivarlo con un toggle
  24. BorderLine

    Duda

    podria ser algo como esto? function FIX (driver) local theVehicle = getPedOccupiedVehicle( driver ) if ( theVehicle ) then setVehicleWheelStates ( theVehicle, frontLeft, 0 ) setVehicleWheelStates ( theVehicle, frontRight, 0 ) setVehicleWheelStates ( theVehicle, rearLeft, 0 ) setVehicleWheelStates ( theVehicle, rearRight, 0 ) end end
×
×
  • Create New...