Jump to content

xXMADEXx

Members
  • Posts

    2,718
  • Joined

  • Last visited

Everything posted by xXMADEXx

  1. All these things are already in MTA:SA. If MTA was to make a GTA V mod, probably the only thing that would really be different would be the graphics and map. Pretty much anything in GTA V can be modded into MTA:SA.
  2. I don't see any errors, does debugscript notify you of any errors? (/debugscript 3)
  3. Im confused, what exactly are you trying to do?
  4. Oops, I forgot an argument. Try this: addEventHandler ( "onPlayerWasted", root, function ( ) setTimer ( function ( p ) if ( isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) ) then spawnPlayer ( p, -1187, 179, 14, 0, 217 ); else spawnPlayer ( p, 202.47, 99.30, 4.4, 0, 135 ); end end, 1500, 1, source ); end );
  5. Your setElementModel is wrong. Use this: setElementModel( source, 214 ) Edit: Try using this: addEventHandler ( "onPlayerWasted", root, function ( ) setTimer ( function ( p ) if ( isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) ) then spawnPlayer ( p, -1187, 179, 14, 0, 217 ); else spawnPlayer ( p, 202.47, 99.30, 4.4, 0, 135 ); end end, 1500, source ); end );
  6. Making a meta is probably one of the easiest things ever... It would be kinda pointless to have this. https://wiki.multitheftauto.com/wiki/Meta.xml
  7. Well, you could do it like that, but I was referfering to just using the relative ratios, like: 0 = 0% of screen 0.5 = 50% of screen 1 = 100% of screen So, something like this: guiCreateWindow ( 0.3, 0.3, 0.6, 0.6, "Relative Window", true )
  8. 1) You just have to use basic math for all resolutions, use the following format: local screenWidth, screenHeight = guiGetScreenSize ( ); local screenWidth, screenHeight = screenWidth/YOUR_RESOLUTION_X, screenHeight/YOUR_RESOLUTION_Y dxDrawRectangle ( screenWidth*POS_X, screenHeight*POS_Y, screenWidth*WIDTH, screenHeight*HEIGHT, ... ); (Example, if my resolution was 1280x800) local screenWidth, screenHeight = guiGetScreenSize ( ); local screenWidth, screenHeight = screenWidth/1280, screenHeight/800 dxDrawRectangle ( screenWidth*1000, screenHeight*200, screenWidth*200, screenHeight*400 ); 2) You have to use the ratio numbers for everything 3) It really depends. If the window is always going to be constant, at the same place, and same size, then you could use relative. If you're going to have moving/resizing elements, it would be easier to do it with absolute values, just to make the math a little bit easier 4) SQLite is better for performance, and MySQL is better for accessibility. I'd recommend that you store all the items in a table, and only load the items when the resource starts or save them when the resource stops.
  9. You can use math.random to calculate the X and Y, then use getGroundPosition.
  10. no no you dont understand ,, not when i enter a vehicle it take the money .. i need it when i FIRE with hydra missle it take the money .. HELP Use this function/event: https://wiki.multitheftauto.com/wiki/On ... WeaponFire
  11. That script wouldn't work on MTA.
  12. I've uploaded version 1.1.3 and it has quite a bit of major bug fixes and new things for scripting with the gamemode. Changelog: Download: https://github.com/braydondavis/Nerd-Ga ... master.zip
  13. Try replacing line 2 with this: medicTeam = { ['Médicos']=true }
  14. You must be doing something wrong. The ModDownloader script is only about 12kb of client scripts. You don't need edit the meta at all, the script does it all. Please follow these steps: 1) Stop the ModDownloader script, if it is running 2) Open the meta.xml, and replace all the contents with the following: <meta> <info author="xXMADEXx" type="script" version="1.0.1" name="Mod Downloader" /> <oop>true</oop> <script src="sLoader.lua" type="server" /> <script src="sUpdater.lua" type="server" /> <script src="cFunctions.lua" type="client" /> <script src="cDownloader.lua" type="client" /> <script src="cMods.lua" type="client" /> <script src="cInter.lua" type="client" /> <aclrequest> <!-- Acess to restart self after meta.xml has been modified (sLoader.lua) --> <right name="function.restartResource" access="true"></right> <!-- Access to check for updates (sUpdater.lua) --> <right name="function.callRemote" access="true"></right> </aclrequest> </meta> 3) Save & Exist the meta.xml 4) Open smods.xml and confirm all the mods are correct and exist 5) Save & exist smods.xml 6) Make sure resource.ModDownloader has access to function.restartResource 7) Start ModDownloader, it will check for dff/txd files missing in the meta.xml and add them automatically
  15. You can use a timer (setTimer), and inside the timer, loop the players. Get their team (getPlayerTeam) and set their nametag color using setPlayerNametagColor to whatever getTeamColor returns.
  16. Please post any debug errors. /debugscript 3
  17. What exactly are you trying to do? It might just be able to be done with the PHP SDK. If it can't be done with the SDK, please post your Lua and PHP code.
  18. You could just use it as an export. Syntax: bool addPlayerEXP ( player thePlayer, int theExperience ) Example: addEventHandler ( "onPlayerLogin", root, function ( ) exports.exp_system:addPlayerEXP ( source, 100 ); outputChatBox ( "Here's 100 exp for logging in!", source ); end );
  19. You're welcome, happy to help!
  20. Are you sure you have some type of MySQL server software running? Also, try changing localhost to 127.0.0.1, sometimes that works.
  21. Whenever the map is changed by a player, you just call outputChatBox. You can get the player name with getPlayerName.
  22. What do you mean? You just want to draw images instead of text?
  23. Add me on Skype (Madex-MTA) and I will try and help you there.
×
×
  • Create New...