xXMADEXx
Members-
Posts
2,718 -
Joined
-
Last visited
Everything posted by xXMADEXx
-
Well, Raspberry Pi is powerful enough to run an apache web server so I'd assume that it'd be able to run an MTA server. Check these links: http://www.raspberrypi.org/documentatio ... /apache.md viewtopic.php?f=106&t=58533
-
Thanks
-
Thanks, actually had it done for a few days, just forgot about it lol.
-
At the moment it only supports replacing vehicle models, nothing to do with handlings. I haven't decided if I'll add some type of cusotm handling data yet, but probably wont because it's not hard to script custom handling with setModelHandling.
-
Hello everybody, This is a resource that I made to download modded vehicle files, as you play on the server, so you don't have to wait for the pre-download to download the vehicle mods, greatly decreasing download time. This resource is similar to my HTTP Mod Downloader resource, however it doesn't require a local web server, because it uses MTA's downloadFile function that was introduced in MTA 1.4. Resource setup Installing modded vehicles Installing modded skins Installing modded weapons Uninstalling vehicle mods Screenshots http://imgur.com/PS3IFh7,KOxgo46,5udUeOc,xPb7uX6 If any bugs are found, please let me know via Skype (Madex-MTA) or a forum PM. Any and all feedback is gratefully appreciated! Download the resource @ https://community.multitheftauto.com/in ... s&id=11265
-
I believe that gate is part of a bigger gate system, but I might be wrong. If I am right, it would probably require some 3D model editing to remove it.
-
You need to use addEvent for your own events. function objectExplosion (theShooter, object) outputChatBox ( "Player " .. getPlayerName(theShooter) .. " triggered object shoot " ) if ( (targetDistance*10) < 50) then createExplosion ( hitX, hitY, hitZ, 2, theShooter) destroyElement (object) else setTimer ( function() createExplosion ( hitX, hitY, hitZ, 2, theShooter ) destroyElement(object) end, targetDistance*10, 1 ) end end addEvent ( "onSpecialEvent", true ); addEventHandler ( "onSpecialEvent", getRootElement(), objectExplosion )
-
There is no database in resource folder even when I start the script. That's because its using executeSQLQuery, and not the sqlite/mysql functions. The script is saving the data to registry.db located in the same directory as acl.xml Like that? function TableReset ( player ) executeSQLQuery("DELETE FROM 'Drift_top_byS3Dd'") addCommandHandler("DeleteTopDrift", TableReset) end Not quite, but close. function TableReset ( player ) executeSQLQuery("DELETE FROM Drift_top_byS3Dd") end addCommandHandler("DeleteTopDrift", TableReset)
-
Use the DELETE statement in SQL. DELETE FROM TableName
-
As long as the image is drawn with [wik]dxDrawImage[/wiki], you could just rotation argument.
-
Text-to-speech in MTA has actually been around for quite a while Voice messaging isn't the same as text to speech... Honestly, why don't you use your time to make something useful in MTA, rather than just ranting about how people should use their time to make something useful. Anyway, good job with this resource. I think that it does create a good base for emailing within a server. I don't know exactly how useful the actual interface is, but its functions could be used to do one of the things that MHS had said. Overall, it's pretty useful.
-
Debug errors? (/debugscript 3)
-
I don't believe that you can, but I could be wrong. I think you can only set the font of them. You might be able to get a custom size using guiCreateFont, and setting a specific value for the size parameter.
-
You can try something like this: addEventHandler ( "onClientGUIChanged", MemoElement, function ( ) local text = guiGetText ( source ); if ( string.len ( text ) > 300 ) then guiSetText ( source, string.sub ( text, 0, 300 ) ); end end );
-
Why did you bump a 3 year old topic...?
-
It has a good CPU, but as WhoAmI said, it really depends on what type of gamemodes you're running, and how many players will be on it. It has a good CPU, but the RAM is pretty low. It is really hard to say. A rough estimate would be probably about 2-3 servers with about 20 players each maybe.
-
Ah, I didn't notice this. You're creating marker as a local variable, meaning it will only be accessible in that block of code, so it doesn't exist in the function that's being called by onPlayerMarkerHit. Maybe try using something like this: local markers = { } addEventHandler ( "onResourceStart", resourceRoot, function ( ) for index, d in pairs ( modelki ) do local x, y, z, rx, ry, rz, int, dim, skin = d[1], d[2], d[3], d[4], d[5], d[6], d[7], d[8], d[9] local ped = createPed ( skin, x, y, z ) setElementRotation ( ped, rx, ry, rz ) setElementInterior ( ped, int ) setElementDimension ( ped, dim ) setElementFrozen ( ped, true ) setElementData ( ped, "modelka", true ) markers [ index ] = createMarker ( x + 1, y, z - 1, "cylinder", 1, 255, 51, 255, 50 ) addEventHandler ( "onPlayerMarkerHit", root, function ( hitMarker ) outputChatBox ( "test" ) if ( table.isIn ( markers, hitMarker ) ) then if ( isElement ( source ) and getElementType ( source ) == "player" ) then outputChatBox ( "test1" ) podejmijPrace ( source, skin ) end end end ) end end ) function table.isIn ( tb, value ) for index, val in pairs ( tb ) do if ( value == val ) then return true end end return false; end
-
I see, ty Ryan, do you recommend SQLlite? SQLite or MySQL will work the same. SQLite is better if you don't want to install other software (XAMPP/WAMP/etc..), however you would have to download the file if you want to view it. MySQL is better if you want to be able to access your database through a website, but it requires a little more setup, and it may not be as fast as SQLite.
-
Try using this: function cuffed() local copx, copy, copz = getElementPosition (arrester) local x, y, z = getElementPosition (localPlayer) local copangle = ( 360 - math.deg ( math.atan2 ( ( copx - x ), ( copy - y ) ) ) ) % 360 local rx, ry, _ = getElementRotation ( localPlayer ); setElementRotation(localPlayer, rx, ry, copangle) local dist = getDistanceBetweenPoints2D (copx, copy, x, y) if dist < 2 then setControlState("forwards", false) setControlState("sprint", false ) else setControlState("forwards", true) setControlState("sprint", true ) end end _ isn't defined by MTA or Lua, so this could be causing the problem.
-
Try using this: addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, d in pairs ( modelki ) do local x, y, z, rx, ry, rz, int, dim, skin = d[1], d[2], d[3], d[4], d[5], d[6], d[7], d[8], d[9] local ped = createPed ( skin, x, y, z ) setElementRotation ( ped, rx, ry, rz ) setElementInterior ( ped, int ) setElementDimension ( ped, dim ) setElementFrozen ( ped, true ) setElementData ( ped, "modelka", true ) local marker = createMarker ( x + 1, y, z - 1, "cylinder", 1, 255, 51, 255, 50 ) addEventHandler ( "onPlayerMarkerHit", root, function ( hitMarker ) outputChatBox ( "test" ) if ( hitMarker == marker ) then if ( isElement ( source ) and getElementType ( source ) == "player" ) then outputChatBox ( "test1" ) podejmijPrace ( source, skin ) end end end ) end end ) in onPlayerMarkerHit, the source is the player that hit, so I think if you use "root" rather than "marker," it should work.
-
Use this: function removeHex ( str ) return str:gsub ( "#%x%x%x%x%x%x", "" ); end str is the string - the player name.
-
Its not actually sending files, it just sending file paths and their hashes.
