-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
Yo nunca dije que lo hayas robado, si te lo pasaron debe ser porque no quieren que lo edites .
-
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 .
-
Download a program called "sqlitebrowser". P.S: There's a command to remove accounts: delaccount
-
Ese mismo que tenes vos, creas la fuente con dxCreateFont y luego la usas en dxDrawText.
-
Vas a tener que cambiarlo en el race, no es global.
-
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
-
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.
-
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.
-
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 )
-
No, eso crea una fuente nueva para usarse luego en dxDrawText.
-
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.
-
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.
-
You must create a radar area using this: createRadarArea Then set a element data to it: setElementData (theArea, "zombieProof", true)
-
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).
-
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" />
-
function jetpack( thePlayer ) if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup ( "Admin" ) ) then givePedJetPack ( thePlayer ) else removePedJetPack ( thePlayer ) end end
-
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
-
When you're replacing a lot of objects and a big map, the streamer will do weird stuff, like make things dissapear.
-
-- 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
-
But, you can replace the objects with invisible ones, replacing the model & TXD.
-
I have started the map and I got warnings on the server console, from line 92 to 111 the model id's are invalid.
-
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 .
-
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
-
Slothman zombies/Slothbot and many other resources without permission: https://community.multitheftauto.com/index.php?p= ... ls&id=3406
