Jump to content

Lloyd Logan

Members
  • Posts

    642
  • Joined

  • Last visited

Everything posted by Lloyd Logan

  1. Array? I'm sounding quite the noob here An array is a table. Just add this to your gamemode: local g_pSkins = { [218] = { 0, 0, 0 }, [219] = { 0, 0, 0 }, [220] = { 0, 0, 0 } }; addEventHandler( "onPlayerSpawn", root, function( _, _, _, _, _, nSkin ) if ( g_pSkins[nSkin] ) then local pTeam, nRotation, nInterior, nDimension = getPlayerTeam( source ), getElementRotation( source ), getElementInterior( source ), getElementDimension( source ); spawnPlayer( source, g_pSkins[nSkin][1], g_pSkins[nSkin][2], g_pSkins[nSkin][3], nRotation, nSkin, nInterior, nDimension, pTeam ); end end ); I didn't test the code, there might be an error. P.S. Don't look at the identation, it's impossible to do anything with Notepad Thanks I'll try!!
  2. So is this a valid script or just an "along the lines" example?
  3. So why is it that when I download a skin mod it has several txds and dffs, like feet.txd arms.txd?
  4. How do i make it so that when a player dies, they have to wait until everyone dies except one player (thesurvivor), then everyone spawns together? Thanks Lloyd
  5. They are in something called a "resource" inside your server folder, this will help you... https://wiki.multitheftauto.com/wiki/Scr ... troduction
  6. addEventHandler ( "onPlayerWasted", root, function ( _, killer ) if ( killer and killer ~= source ) then giveWeapon( killer, 24, 1) end end ) That one?
  7. So what would i do if i were to give him ammo?
  8. Thanks alot Castillo! Edit: One more question sorry, is it possible to make it so that when a player kills another, they get an item or something?
  9. Hey, i am creating a simple spawn script, how is it so that when they spawn they only have 10 health? Thanks Lloyd
  10. Well i'm not really sure about map editor, but don't you have to replace your edited map with your servers map? Im not a mapper so i am not too sure?
  11. What do you mean by that?
  12. Well you could mount the image on seperate drives, then install two GTA'S from them, then install two MTA's from the serperate GTAS?
  13. Hey, i was wondering how you put in serveral txds and dffs, as i downloaded a skin mod and it had 4 txds and 4 dffs, so if this were the case for one : txd7 = engineLoadTXD("skins/12.txd") -- Police LV engineImportTXD(txd7, 51) dff7 = engineLoadDFF("skins/12.dff", 51) engineReplaceModel(dff7, 51) Would i just keep continuing doing this with the dffs and txds? Would it not mess it up if i were to put a txd file over another txd file? If you get what i mean? Thanks in advance Lloyd Logan
  14. OKay, so i have a skin selector and i have made it so when you select a skin it spawns you to a point. Its not a gui tho, anyways it is Team DM and i was wonder in you were in the "RED" team you could have certain skins to choose from then spawn to the RED base?
  15. Array? I'm sounding quite the noob here
  16. How can i make it so that there are 2 spawn points, and depending on which skin you have, you are spawned at one of the spawn points?
  17. Its all working! Wehay! I had a bit of trouble with the register buttons, but that was easily fixed! Thanks Castillo!
  18. Okay, i put that on and, login_client:61: Bad arguement @ 'guiSetText' [Expected gui element at argument 1, got nill] login_client:62: Bad arguement @ 'guiSetText' [Expected gui element at argument 1, got nill] login_client:64: Bad arguement @ 'guiSetText' [Expected gui element at argument 1, got nill] login_client:65: Bad arguement @ 'guiSetText' [Expected gui element at argument 1, got nill] login_client:95 Bad arguement @ 'addEventHandler' [Expected gui element at argument 2, got nill ] Thats whats coming up?
  19. Hey, I made i login script which is a basic username/password then the register and login buttons. The problem is when i start it i get no errors, and when i join the server enter my details, click login or register, nothing happens, nothing in the console at all. The resource has acl rights but still nothing? Here is the script... There is also a black screen behind the login panel. Server side. Your help is much appreciated, thanks, Lloyd
  20. I am not too sure by what you mean here, If you are meaning to remove the removeEventHandler for the other Elements, i'll try, but if you mean removeEventHandler on the dxDrawImage, that is not what i am currently doing?
  21. It hasn't , is this because of maybe on client render? I am going out, but i will look into this, it should be so simple!
×
×
  • Create New...