Jump to content

xXMADEXx

Members
  • Posts

    2,718
  • Joined

  • Last visited

Everything posted by xXMADEXx

  1. You just need setElementDimension.. Example: addCommandHandler ( "world", function ( p, _, w ) if ( w and tonumber ( w ) ) then setElementDimension ( p, tonumber ( w ) ) outputChatBox ( "You have gone to world "..w, p ) end end )
  2. I suppose you could just put all of the contents from the xml file into a table and use callRemote.
  3. xXMADEXx

    Restore The Files?

    Hello. So, recently my computer crashed, and I had to do this thing called a "PC Refresh" which uninstalled all of the programs on my computer and it uninstalled MTA. Now, im not sure if it's possible, but is there a way I could get back some of the scripts that I lost? I had most of them backed up but not all. Thanks.
  4. xXMADEXx

    Function

    setElementPosition
  5. Wow, impressive! I cannot wait to play this!
  6. xXMADEXx

    Phone

    You are going to need to attempt to make it yourself, or pay someone to make it.
  7. Its mostly a problem with the firewall settings in USBWebHost.
  8. Post in the Espanol/Spanish section. viewforum.php?f=122
  9. http://img23.imageshack.us/img23/4883/z5y3.png Can't post with because the image is too large O_o
  10. You can just check the date..something like this, although this code hasn't been tested local nextClearDate = { } function checkDate ( ) local t = getRealTime ( ) local day = t['monthday'] local month = t['month']+1 local year = t['year'] + 1900 if ( #nextClearDate <= 0 ) then nextClearDate = { day = day, month = month, year = year } end if ( nextClearDate.year < year )then executeClear ( ) end if ( nextClearDate.month < month ) then executeClear ( ) end if ( nextClearDate.day < day and nextClearDate.month <= month ) then executeClear ( ) end end setTimer ( checkDate, 600000, 0 ) function executeClear ( ) dbQuery ( databaseconnection, "DELETE FROM TableName" ) local t = getRealTime ( ) local day = t['monthday'] local month = t['month']+1 local year = t['year'] + 1900 nextClearDate.day = nextClearDate.day + 7 if ( nextClearDate.day > 30 ) then nextClearDate.day = 1 nextClearDate.month = nextClearDate.month + 1 end if ( nextClearDate.month > 12 ) then nextClearDate.year = nextClearDate.year + 1 nextClearDate.month = 1 end end
  11. addEventHandler("onClientRender", root, function ( ) dxDrawRectangle(408, 159, 498, 314, tocolor(0, 0, 0, 208), true) dxDrawText("Numar Telefon: " .. getElementData(thePlayer, "cellnumber") .. "\nPermis de Conducere: " .. carlicense .. "\nPort Armă: " .. gunlicense .. "\nVehicule (" .. numcars .. "): " .. string.sub(carids, 1, string.len(carids)-2).. "\nProprietății (" .. numproperties .. "): " .. string.sub(properties, 1, string.len(properties)-2) .. "\nOre jucate pe caracter: " .. hoursplayed .. " oră/e\nLimbi Vorbite: " .. table.concat(languages, ", ") .. "\nSocial Security Numar: ".. finalstring .."", 414, 226, 654, 378, tocolor(255, 255, 255, 255), 1.30, "clear", "left", "top", false, false, true, false, false) dxDrawLine(408, 206, 904, 206, tocolor(255, 255, 255, 255), 2, true) dxDrawText("~-~-~-~-~" .. getPlayerName(thePlayer) .. "~-~-~-~-~", 516, 172, 797, 194, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "left", "top", false, false, true, false, false) dxDrawImage(730, 252, 118, 107, ":skins/img/000.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawRectangle(876, 444, 28, 27, tocolor(0, 0, 0, 255), true) dxDrawRectangle(875, 443, 28, 27, tocolor(0, 0, 0, 247), true) dxDrawText("X", 879, 442, 900, 466, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) end ) To make a button, you'll need to make one (Maybe with dxDrawText & dxDrawRectangle) and then when the client clicks, check to see if the cursor is inside the coordinates.
  12. I have one..... then what? what's the steps that needs to be done? any more info appreciated. the mysql part is fine... Well you need to make a query to insert or select data. You can try this: http://www.mysqltutorial.org/
  13. You need an MySQL data base host that'll allow remote connections.
  14. The mods will only work if the web server is hosted on the same computer as the MTA server due to "fetchRemote" on the client side script.
  15. xXMADEXx

    Zombie

    You already posted this: viewtopic.php?f=108&t=67504
  16. No one is going to make it for free. You'll need to learn how to do it yourself, or pay someone.
  17. You can try this function: https://wiki.multitheftauto.com/wiki/IsPlayerInACL Also, try posting in section espaonol: viewforum.php?f=122
  18. Well, you'll need to learn Lua (Best way would prob be to study how other scripts are made) or you'll probably need to try to find someone to make these for you. Be sure to check MTA Community.
  19. Few resources I don't want anymore https://community.multitheftauto.com/index.php?p= ... ls&id=7912 https://community.multitheftauto.com/index.php?p= ... ls&id=7577 https://community.multitheftauto.com/index.php?p= ... ls&id=7797 https://community.multitheftauto.com/index.php?p= ... ls&id=7445 https://community.multitheftauto.com/index.php?p= ... ls&id=7451 DONE
  20. Hi guys. I just wanted to share a little bit about my HTTP mod loader system. This resource is a script that allows you to upload your mods to a locally hosted webserver, and when clients join they can download/enable/disable/delete them onto/from their local computer. This script is very useful if you have a lot of mods on your server and you're losing players due to the download size. How-to Install: 1. You need to have a web server (Preferably XAMPP or WAMP -> 64 bit|32 bit) 2. Upload your mods to the web server (XAMPP: %install path%/htdocs | WAMP: %install path%/www) 3. Add the files to mod_c.lua 4. Login to router (Using http://192.168.0.1) 5. Find the port forwarding section 6. Port forward port 80 (This is done so that clients can download the mods via an apache web server) 7. Open client.lua and change the "sreverIp" and "ipv4IP" variables (To what it says) 8. Start resource 9. Join game and type /vehmods Download https://community.multitheftauto.com/index.php?p= ... ls&id=8249 Note: For a hosted server, it REQUIRES a web-server on the same host (same IP)
  21. Looks really good, good luck!
  22. The easiest way would probably be to just use an MySQL database.
  23. Not functions, shaders. I be alive there is a blur shader on the MTA community.
×
×
  • Create New...