
xXMADEXx
Members-
Posts
2,718 -
Joined
-
Last visited
Everything posted by xXMADEXx
-
Is the admin resource failing to start? Open your MTA Server Console (the actual server) and type "restart admin" and see if it displays an error of some sort.
-
The problem isn't the ACL, it's because the default admin resource probably isn't running. MTA doesn't register the /register command by default, it's built into the admin resource.
-
I search how to add a background image to panel Freeroam
xXMADEXx replied to Furious^ONE!'s topic in Scripting
Use the function guiCreateStaticImage -
Welcome.
-
It doesn't need a player argument on the client side, it will only work for the local player.
-
Stop flooding this topic. Your code could just be something like this: -- Server side Code function getPlayerMoney ( player ) local m = tonumber ( getElementData ( player, "p_money" ) ) if ( not m ) then m = 0 setElementData ( player, "p_money", 0 ) end return m end function setPlayerMoney ( player, money ) return setElementData ( player, "p_money", money ) end function givePlayerMoney ( player, money ) local c = getPlayerMoney ( player ) return setPlayerMoney ( player, c + money ) end -- Client side Code function getPlayerMoney ( ) local m = tonumber ( getElementData ( localPlayer, "p_money" ) ) if ( not m ) then m = 0 setElementData ( localPlayer, "p_money", 0 ) end return m end function setPlayerMoney ( money ) return setElementData ( localPlayer, "p_money", money ) end function givePlayerMoney ( money ) local c = getPlayerMoney ( localPlayer ) return setPlayerMoney ( localPlayer, c + money ) end local sx, sy = guiGetScreenSize ( ) addEventHandler ( "onClientRender", root, function ( ) dxDrawText ( "You currently have $"..tostring ( getPlayerMoney ( ) ), 0, 0, sx, sy, tocolor ( 0, 255, 0, 255 ), 2, "default", "center", "top" ) end )
-
The problem is probably as you said due to overlapping the markers. However, there could be a method to do as you wish. You could do some type of a code like this: local m1 = createMarker ( 0, 0, 0, "cylinder", 5, 255, 255, 255, 120 ) local m2 = createMarker ( 0, 0, 0, "cylinder", 10, 255, 0, 0, 120 ) local data = { m1 = { }, m2 = { } } addEventHandler ( "onMarkerHit", root, function ( e ) if ( source == m1 ) then data.m1 [ e ] = true elseif ( source == m2 ) then data.m2 [ e ] = true end end ) addEventHandler ( "onMarkerLeave", root, function ( e ) if ( source == m1 ) then data.m1 [ e ] = nil elseif ( source == m2 ) then data.m2 [ e ] = nil end end ) function isElementWithinMarkers ( p ) return ( data.m1[p] and data.m2[p] ) == true end
-
Try re-installing GTA:SA
-
Hey guys, so me and one of my buddies decided that we are going to buy a VPS, but we are both Windows users, so we don't know what the best operating system (of linux) would be to put on it. The site supports the following operating systems: CentOS 5 (32 & 64 bit) CentOS 6 (32 & 64 bit) Debian 6 (32 & 64 bit) Ubuntu 12.10 (32 & 64 bit) Ubuntu 14.04 (64 bit) So if you have an opinion on what the best OS for hosting a VPS is, please leave a reply regarding the name and why you think it's the best. Thank you.
-
I'm pretty sure that means it detected an error in your script..
-
viewtopic.php?f=148&t=75501 Open the "Loops" section The function you'll need is getElementsByType. If you need any further help, don't hesitate to contact me.
-
Alright, glad you got it working.
-
My question is why don't you just change the max players in mtaserver.conf? 1. No, he won't download the files again, because the cached files are stored in [mta dir]/mods/deathmatch/ and all server files are stored to the same location 2. No need, because question one is no
-
sill not working!! and it say error Make sure the server is off when you edit the acl.xml If you still get the problem, post your acl.xml or use the default one.
-
Does /debugscript 3 say there's any errors in the script?
-
Try using this code (client), it should make the Patriot twice as strong: addEventHandler ( "onClientVehicleDamage", root, function ( _, _, loss ) if ( getElementID ( source ) == 470 ) then setElementHealth ( source, getElementHealth ( source ) + math.floor ( loss / 2 ) ) end end )
-
There's not really a difference between these, it's just a different state of the render process. https://wiki.multitheftauto.com/wiki/Ga ... sing_Order Try using something like this: local x,y = guiGetScreenSize () local showHunterPoints = false local hunters = 0 function fName () dxDrawRectangle (x/1.65, y/5, x/3, y/5, tocolor (0, 0, 0, 150)) dxDrawText ("Daily Rewards:", x/1.6, y/4.65, x, y, tocolor (255, 255, 255, 255), 1.25, "clear") dxDrawText ("1. Get 10 hunters", x/1.6, y/3.8, x, y, tocolor (255, 255, 255, 255), 1, "clear") dxDrawText ("2. Win 10 maps", x/1.6, y/3.3, x, y, tocolor (255, 255, 255, 255), 1, "clear") if ( showHunterPoints and hunters ) then dxDrawText (hunters.."/10", x/3, y/3, x, y, tocolor (0, 0, 0, 150), 7, "clear") end end addEventHandler ("onClientRender", root, fName ) function addPoint (hunt) showHunterPoints = true hunters = hunt end addEvent ("hunterADD", true) addEventHandler ("hunterADD", root, addPoint)
-
They're paying to make the hacks so they can make the anti-cheat system flawless, I'm sure they'd almost love it if someone kept making hacks and giving them to the developers.
-
You can just do the download from https://mtasa.com.com/ or you can download the Linux server at https://nightly.multitheftauto.com/
-
MySQL is actually a very simple language to learn. http://www.w3schools.com/php/php_mysql_intro.asp SQL Functions: https://wiki.multitheftauto.com/wiki/Se ... _functions
-
It would be better to store if the player is VIP with setElementData and getElementData
-
Someone messaged me this, which also made me kinda laugh.... I think it should be added to the spam list.
-
Oh, I didn't notice that. Yes, it would redefine the winner function to the player name, since the variable wasn't locally created. I fixed it in my code from my previous post.
-
Instead of trying to do all sorts of weird position comparisons, you should just create a col shape..
-
Try running this, not sure if it's going to make a difference though: local screenWidth,screenHeight = guiGetScreenSize() local downloadFiles = { "mods/alpha.txd", "mods/alpha.dff" } function downloadState() dxDrawText("Downloading... (0/2)",screenWidth,screenHeight,screenWidth,screenHeight,tocolor(255,255,255,255),1,"bankgothic") end --[[ This is handled in onClientPlayerSpawn for _, downFile in pairs( downloadFiles ) do downloadFile ( downFile ) downloadState() end ]] addEventHandler ( "onClientFileDownloadComplete", root, function ( file, success ) if ( success and fileExists ( "mods/alpha.dff" ) and fileExists ( "mods/alpha.txd" ) ) then local txdalp = engineLoadTXD ( "mods/alpha.txd" ) local dffalp = engineLoadDFF ( "mods/alpha.dff", 602 ) engineImportTXD ( txdalp, 602 ) engineReplaceModel ( dffalp, 602 ) removeEventHandler("onClientRender",root,downloadState) end end ) function checkIfPlayerAlreadyHasDownloaded() if ( fileExists("mods/alpha.dff") and fileExists("mods/alpha.txd")) then outputChatBox("Loading carmods...") local txdalp = engineLoadTXD ( "mods/alpha.txd" ) local dffalp = engineLoadDFF ( "mods/alpha.dff", 602 ) engineImportTXD ( txdalp, 602 ) engineReplaceModel ( dffalp, 602 ) else outputChatBox("client has no carmods, and has triggered the download!") for _, downFile in pairs( downloadFiles ) do downloadFile ( downFile ) addEventHandler ( "onClientRender", root, downloadState ) end end end addEventHandler("onClientPlayerSpawn", localPlayer, checkIfPlayerAlreadyHasDownloaded )