Jump to content

EstrategiaGTA

Members
  • Posts

    684
  • Joined

  • Last visited

Everything posted by EstrategiaGTA

  1. EstrategiaGTA

    ayuda

    Pero cuando lo usabas en PlayerOn, ¿funcionaba?
  2. EstrategiaGTA

    ayuda

    Haber... Entonces dime, ¿con tu primer script, el de PlayerOn function, te funcionaba bien?
  3. No, you can't. That's just like disabling the quit command, impossible.
  4. EstrategiaGTA

    ayuda

    ¿Y así que te dice? Que raro que te diga que hay 0 jugadores... local msgs = { "* bienvenido!", "* registrate!", "* logeate!" , "* Jugadores online: ".. #getElementsByType("player") .." estan conectados!" } setTimer( function() outputChatBox( msgs[math.random( 1, #msgs )], root, 255, 255, 255, true ) end, 25000, 0 )
  5. Si es un resource que tiene muchas imágenes y archivos yo prefiero mejor separarlo en carpetas, así se organiza mejor.
  6. What does /debugscript 3 say? What's the problem with the script?
  7. Actually it is not hard, just use removeCommandHandler setTimer So when you use the command, it removes the command and in X seconds you set it back.
  8. You can use onVehicleExplode if your script is server-side and if it is client-side use onClientVehicleExplode events.
  9. EstrategiaGTA

    ayuda

    Prueba así local msgs = { "* bienvenido!", "* registrate!", "* logeate!" , "* Jugadores online: ".. getPlayerCount () .." estan conectados!" } setTimer( function() outputChatBox( msgs[math.random( 1, #msgs )], root, 255, 255, 255, true ) end, 25000, 0 )
  10. Remember, Lua is case-sensitive. That means, you can't use for example "BanPlayer", you must use "banPlayer". Well, just change CreateObject to createObject and it will work.
  11. EstrategiaGTA

    ayuda

    Creo que se refiere a añadir su outputChatBox a la tabla. local msgs = { '* bienvenido!', '* registrate!', '* logeate!' , '* Jugadores online: '..getPlayerCount()..' estan conectados!'} setTimer( function() outputChatBox( msgs[math.random( 1, #msgs )], root, 255, 255, 255, true ) end, 25000, 0 ) Asegúrate de que sea server-side.
  12. EstrategiaGTA

    Question

    Yes you can do it, but I don't think that all the users of your server live in the same city, do they?
  13. ¿Qué dice /debugscript 3? ¿Cuál es el problema, que parte falla? Y yo que tú cambiaría esta línea: imgLogo = guiCreateStaticImage(10, 22, 380, 62, ":login/logo.png", false, wdwMain) Por esta: imgLogo = guiCreateStaticImage(10, 22, 380, 62, "login/logo.png", false, wdwMain) Asegúrate de que también hayas agregado la imagen a meta.xml y que esté en la carpeta logo.
  14. Usa guiSetVisible guiGetVisible if then showCursor bindKey "onClientResourceStart" El script de Atouk está mal: eso abrirá siempre el GUI cuando pulsas F4, por lo tanto puedes tener como 10000 windows abiertas.
  15. Usa setVehicleLocked Eso serviría para bloquear el vehículo para todos.
  16. Con la última versión de MTA, ahora necesitas re-compilar tus scripts en https://luac.multitheftauto.com
  17. ¿Destruir un vehículo o cual? Julian, en realidad él se refería en chat diciendo "!destroy [nombre]", por lo que en vez de addCommandHandler debería usar: "onPlayerChat"
  18. Para lo del jetpack, ¿te refieres que quieres que el GUI solo se abra si estás en una coordenada Z concreta? Y para solo para un team, usa: local elteam = getPlayerTeam(localPlayer) if getTeamName(elteam) == "El Team" then
  19. Pero ahí no tienes givePlayerMoney en ningún sitio. Y yo mejor usaría esto, en vez de triggerClientEvent triggerServerEvent
×
×
  • Create New...