
xXMADEXx
Members-
Posts
2,718 -
Joined
-
Last visited
Everything posted by xXMADEXx
-
As far as I know, I helped you with a piece of code, I showed you were to start with scripting and I was the only person that was trying to help you. And still with disrespect? Pathetic little kid that you are. No need to get all angry... He just has decided, he wants people to do the work for him.
-
Any subdomains of mtasa.com/multitheftauto.com, it will redirect you to that picture lol. Examples: http://xxmadexx.mtasa.com/ http://subsite.mtasa.com/ http://dogs.mtasa.com/
-
That wouldn't work, at all. Lol, just lol.
-
Contact the developer.
-
I already tried that and it keeps giving an error: a boolean value and function cancelled to call. Post your code.
-
It would require callRemote. fetchRemote downloads files, and callRemote can call the php script & get a returned value. Use this: https://dev.twitter.com/docs/twitter-libraries, they have many different libraries, including PHP and Lua. I've never used either one though.
-
Use this: http://convertffs.com
-
The error is saying that in the file racevoting_server.lua on line 217, the script is trying to call a variable named "errorCode," and errorCode isn't defined.
-
Free scripters are rare, and if you're scamming them, well, it's just you and your server that is going to fall.
-
If you have someone host your server, it's bound for your gamemode to be leaked. You should really buy a host, if you don't want your gamemode leaked. Here are some MTA hosters: https://mtasa.com/hosters/
-
isPlayerMuted and setplayerMuted are default functions....((Not Tested)) addEventHandler('onPlayerChat', root, function( message, messageType ) local echipa = getPlayerTeam (source) if messageType == 0 and isPlayerMuted ( source ) then outputChatBox("You are muted on Public chat. You can still use TeamChat.",source) elseif messageType == 2 then if ( echipa ) then local r, g, b = getTeamColor ( echipa ) for k, p in ipairs ( getPlayersInTeam ( echipa ) ) do outputChatBox(getPlayerName ( source )": #FFFFFF"..message, p, r, g, b, true ) end end end cancelEvent( ) end ) function mutePlayer(player,command,victimName) if victimName then local tipu = getPlayerFromName(victimName) if tipu then if ( not isPlayerMuted(tipu) ) then setPlayerMuted(tipu, true) outputChatBox("You have been muted.",tipu) end else outputChatBox("Could not find player with name: "..tostring(victimName),player) end else outputChatBox("Usage: /pmute ",player) end end addCommandHandler("pmute",mutePlayer)
-
You could do something like this: local vehicle = the_vehicle addEventHandler ( "onVehicleEnter", vehicle, function ( p ) setElementData ( p, "VehicleUpgrades", getVehicleUpgrades ( source ) ) end )
-
Hello guys. So, when I start MTA for the first time, it changes my personalization settings, and changes the windows desktop drag menu. It makes it white, and made out of periods. It suppose to be blue, with a darker blue border... I tried to change my personaliztion settings so that it'd go back to normal but it didn't work. I just don't like the look of it. If you know how to change it, please tell me thanks. Mine: What it suppose to look like (In green, couldn't find the blue version):
-
I suppose you could use setElementData and set the vehicle upgrades to the player, and get the ids using getVehicleUpgrades.
-
It'd be better to use https://luac.multitheftauto.com/ than deleting the client scripts every time they join, because they'll always be a download when the client joins.
-
Ah, my bad. Didn't see the "6" before posting.
-
ACL Group Admin will be moven to staff team when login?
xXMADEXx replied to Jullul7000's topic in Scripting
onPlayerLogin -- event isObjectInACLGroup getTeamFromName -
How to update the player's health? * I'm not really a long time to write lua, is not yet a lot of things to be understood. In the code that I posted.
-
http://www.w3schools.com/php/php_mysql_intro.asp this could work for you.
-
local player = getLocalPlayer() local x, y = guiGetScreenSize() local oy = y/1000 scale = guiCreateStaticImage(0, 878, 1440, 27, "data/scale.png", false) number = guiCreateStaticImage(0, 864, 1440, 27, "data/number.png", false) guiSetVisible( scale, true ) guiSetVisible( number, true ) local HEALTH_line = function()6 local healh = math.ceil( getElementHealth( player )) local ox = x/1000 line = guiCreateStaticImage(health*ox, 882, 2, 23, "data/line.png", false) end addEventHandler("onClientRender", getRootElement(), HEALTH_line)
-
health and ox are never being updated. You need to define the in the render function too.
-
It's kind of a bad idea to make something like this, for example if an admin gets mad and the server has this resource, he could just ban all of the players...