Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    Problema :S

    Yo nunca dije que lo hayas robado, si te lo pasaron debe ser porque no quieren que lo edites .
  2. Castillo

    Problema :S

    Con un decompilador, pero el script no volvera a funcionar por si solo . Para eso se invento el compilador, para que los que roban scripts no los puedan editar .
  3. Download a program called "sqlitebrowser". P.S: There's a command to remove accounts: delaccount
  4. Castillo

    Problema :S

    Ese mismo que tenes vos, creas la fuente con dxCreateFont y luego la usas en dxDrawText.
  5. Castillo

    Problema :S

    Vas a tener que cambiarlo en el race, no es global.
  6. Castillo

    Short question

    Ok, I found out my error, I never get the player name, just the player himself (userdata). function tables() outputChatBox("Top 3 points:", getRootElement(), 255,255,255) for index, data in ipairs(sortAccounts()) do outputChatBox("#"..tostring(index)..": ".. tostring(data.name) .." - ".. tostring(data.points), getRootElement(), 255, 255, 255) if (index == 3) then break end end end addCommandHandler("top", tables) function sortAccounts() local rowdata = {} for index, account in pairs(getAccounts()) do if (not isGuestAccount(account) and getAccountPlayer(account)) then table.insert(rowdata, {name = getPlayerName(getAccountPlayer(account)), points = getAccountData(account,"Points")}) end end local comparator = function (a, b) return (tonumber(a.points) or 0) > (tonumber(b.points) or 0) end table.sort(rowdata, comparator) return rowdata end
  7. That's the normal gui-progress bar since I joined MTA, I don't know what are you talking about, maybe you're a bit blind? Or you may have changed the GUI theme and now you lost it.
  8. Every and each post in this topic is a total MESS. @Hunterix: You must edit the scoreboard resource, it only draw's TEXT's now, the script won't do some magic stuff to render a image with dxDrawText. Start learning by yourself.
  9. local theMarker = createMarker ( 2467.8647460938, -1648.7094726563, 12.47255897522, "cylinder", 1, 255, 255, 0, 170 ) function mission1Marker(thePlayer,matchingDimension) if (matchingDimension) then triggerClientEvent ( thePlayer, "showMission1", thePlayer ) end end addEventHandler("onPlayerMarkerHit",theMarker,mission1Marker) addEvent("rejectTheMission", true) addEventHandler("rejectTheMission", root, function () triggerClientEvent ( source, "unshowMission1", source ) end ) addEvent("acceptTheMission", true) addEventHandler("acceptTheMission", root, function() triggerClientEvent ( source, "unshowMission1", source ) end )
  10. Castillo

    Problema :S

    No, eso crea una fuente nueva para usarse luego en dxDrawText.
  11. Car mods: https://community.multitheftauto.com/index.php?p= ... ls&id=3425 https://community.multitheftauto.com/index.php?p= ... ls&id=3426 https://community.multitheftauto.com/index.php?p= ... ls&id=3427 https://community.multitheftauto.com/index.php?p= ... ls&id=3429 I would ban him.
  12. Hola, aqui te dejo la introducion a Lua traducida al Español por miembros de la comunidad: https://wiki.multitheftauto.com/wiki/ES/ ... %B3n_a_Lua Buena suerte.
  13. Castillo

    About Zday

    You must create a radar area using this: createRadarArea Then set a element data to it: setElementData (theArea, "zombieProof", true)
  14. The c-panel dev is paused for now, I don't know when I'll re-write the script once again (to get all bugs fixed and make it more efficient).
  15. Castillo

    About Zday

    Go to the zombies resource and open meta.xml, then change the StreamMethod to 2. And to create spawn points in your map: "Zombie_spawn (1)" interior="0" posX="0" posY="0" posZ="2" rotX="0" rotY="0" rotZ="0" />
  16. Castillo

    help

    function jetpack( thePlayer ) if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup ( "Admin" ) ) then givePedJetPack ( thePlayer ) else removePedJetPack ( thePlayer ) end end
  17. Castillo

    Short question

    You want to get only the accounts that are in use? if so, try this: function tables() outputChatBox("Top 3 points:", getRootElement(), 255,255,255) for index, data in ipairs(sortAccounts()) do outputChatBox("#"..tostring(index)..": ".. tostring(data.name) .." - ".. tostring(data.points), getRootElement(), 255, 255, 255) if index == 3 then break end end end addCommandHandler("top", tables) function sortAccounts() local rowdata = {} for index, account in pairs(getAccounts()) do if (not isGuestAccount(account)) then rowdata[index] = { name = getAccountPlayer(account), points = getAccountData(account,"Points"), } end end local comparator = function (a, b) return (tonumber(a.points) or 0) > (tonumber(b.points) or 0) end table.sort(rowdata, comparator) return rowdata end
  18. Castillo

    Short question

    What returns a userdata?
  19. When you're replacing a lot of objects and a big map, the streamer will do weird stuff, like make things dissapear.
  20. Castillo

    Short question

    -- server side: addCommandHandler("getplayer", function (player, cmd, accountName) local account = getAccount(accountName) if (account and not isGuestAccount(account)) then local thePlayer = getAccountPlayer(account) if (thePlayer) then outputChatBox("The owner of the account: ".. tostring(accountName) .." is: ".. tostring(getPlayerName(thePlayer)),player,0,255,0) end end end) This should work like this: /getplayer
  21. But, you can replace the objects with invisible ones, replacing the model & TXD.
  22. I have started the map and I got warnings on the server console, from line 92 to 111 the model id's are invalid.
  23. Un scripter gratis? osea que solo sera admin en el servidor, no le pagaran dinero (real)? si es asi, entonces no creo que encuentren uno que este dispuesto a gastar su tiempo, ya que todos tienen sus propios proyectos .
  24. Car mods: https://community.multitheftauto.com/index.php?p= ... ls&id=3424 https://community.multitheftauto.com/index.php?p= ... ls&id=3423 https://community.multitheftauto.com/index.php?p= ... ls&id=3422 https://community.multitheftauto.com/index.php?p= ... ls&id=3420
  25. Slothman zombies/Slothbot and many other resources without permission: https://community.multitheftauto.com/index.php?p= ... ls&id=3406
×
×
  • Create New...