Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. I'm sorry to say this, but you should just make your own race script.
  2. Castillo

    Que hise mal?

    Tu post esta vacio, el script es demasiado largo para las "lua" y "code" tags, postealo en pastebin.com y luego nos das el link.
  3. function checkRank() local account = getPlayerAccount(source) if (account and isGuestAccount(account)) then setElementData(source, "Rank","Login") return end local kills = tonumber(getElementData(source,"Zombie kills")) if (kills >= 25 and kills <= 49) then setElementData(source, "Rank","Rookie") end end addEventHandler("onPlayerLogout", getRootElement(), checkRank) addEventHandler("onPlayerLogin", getRootElement(), checkRank)
  4. function checkRank(player) local account = getPlayerAccount(player) if (account and isGuestAccount(account)) then outputChatBox("hello") end end Show us how you execute "checkRank" function.
  5. No es magico, eso solo guarda el dinero.
  6. Si, arregle un error, copialo de nuevo y proba. P.D: Es server side.
  7. function greenzoneEnter ( element ) local t = getElementType( element ) if (t == "player") then outputChatBox('#FF0000*ROAM: #FFFF00Login for your kills and stats to be saved', element, 255, 0, 0, true) elseif (t == "ped") then killPed ( element ) end end
  8. function playerLeave() local playeracc = getPlayerAccount(source) if ( playeracc ) then local playercash = getPlayerMoney(source) setAccountData(playeracc, "cash", playercash) end end function playerReJoin() local playeracc = getPlayerAccount(source) if ( playeracc ) then local playerbank = getAccountData(playeracc, "cash") if (playerbank) then setPlayerMoney(source, tonumber(playerbank)) end end end addEventHandler("onPlayerJoin", getRootElement(), playerReJoin) addEventHandler("onPlayerQuit", getRootElement(), playerLeave)
  9. Is "player" a valid player element? outputChatBox("#FF0000hi", player, 255, 0, 0, true)
  10. Post your radar area code, I'm sure you're using negative values.
  11. Por supuesto, el MTA no trae ningun script para guardar kills, dinero, etc.
  12. No te entiendo, no es ningun comando. Esta función se utiliza para devolver la duración de la reproducción del elemento de sonido especificado.
  13. Como vamos a ayudarte si no posteas tu script para guardar los datos?
  14. Si son archivos, no live-streams, entonces podrias usar getSoundLength y verificar cuando se acabe el sonido.
  15. Vehicle mod: https://community.multitheftauto.com/index.php?p= ... ls&id=3588
  16. Cuando un vehiculo explota se queda ahi, si tenes un sistema de respawn de vehiculos entonces se destruira.
  17. setElementDimension getElementDimension But if you're talking about like: race and deathmatch at the same time, then you'll have to re-write both game modes to work at the same time, which is a lot of work.
  18. You can use it, but as far as I know, it won't make any difference.
  19. https://wiki.multitheftauto.com/wiki/Slothman/Slothbot
  20. Benxamix: El vento "onClientPlayerJoin" solo se ejecuta para todos menos el CLIENTE. Usa "onClientResourceStart" que es cuando el recurso se termina de descargar.
  21. Castillo

    Firstperson

    Ami me funciona perfecto, pusiste el script como client side supongo?
  22. Castillo

    Firstperson

    Que yo sepa el script de FPS es: "FPS.lua", copialo dentro de otro recurso, crea un meta.xml y ya deberia funcionar.
  23. To be able to compile a script it must have no errors, debug your script before try to compile it.
×
×
  • Create New...