Jump to content

xXMADEXx

Members
  • Posts

    2,718
  • Joined

  • Last visited

Everything posted by xXMADEXx

  1. xXMADEXx

    Base

    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.
  2. 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/
  3. That wouldn't work, at all. Lol, just lol.
  4. xXMADEXx

    Twitter

    I already tried that and it keeps giving an error: a boolean value and function cancelled to call. Post your code.
  5. xXMADEXx

    Twitter

    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.
  6. 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.
  7. Free scripters are rare, and if you're scamming them, well, it's just you and your server that is going to fall.
  8. 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/
  9. 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)
  10. xXMADEXx

    Desktop Drag Menu

    Thank you so much.
  11. You could do something like this: local vehicle = the_vehicle addEventHandler ( "onVehicleEnter", vehicle, function ( p ) setElementData ( p, "VehicleUpgrades", getVehicleUpgrades ( source ) ) end )
  12. xXMADEXx

    Desktop Drag Menu

    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):
  13. I suppose you could use setElementData and set the vehicle upgrades to the player, and get the ids using getVehicleUpgrades.
  14. 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.
  15. Ah, my bad. Didn't see the "6" before posting.
  16. onPlayerLogin -- event isObjectInACLGroup getTeamFromName
  17. 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.
  18. http://www.w3schools.com/php/php_mysql_intro.asp this could work for you.
  19. 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)
  20. health and ox are never being updated. You need to define the in the render function too.
  21. 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...
×
×
  • Create New...