Jump to content

Tails

Members
  • Posts

    740
  • Joined

  • Days Won

    16

Everything posted by Tails

  1. How to update the resources folder?
  2. So I just opened up the Map Editor, only to be dissapointed because I couldn't find out how to resize objects and change the alpha of vehicles and objects. New changes in Mta 1.3.1:
  3. Tails

    Map problem

    Remove the ; You're not working in any tables, so no comma's are needed. function start() removeWorldModel(4025, 300, 1777.8359, -1773.9063, 12.5234) removeWorldModel(4019, 300, 1777.8359, -1773.9063, 12.5234) removeWorldModel(4215, 300, 1777.5547, -1775.0391, 36.7500) end addEventHandler("onResourceStart", getResourceRootElement(), start)
  4. Hey fellow MTA'ers. I was wondering if it is possible to disable the teamchat on a specific team? Thanks in advance.
  5. Thanks you very very much
  6. I'm sorry I am still a complete noob. How would I add that into that complicated script?
  7. Hi guys. I am attempting to edit a little part of the Admin script in MTA. What I want is instead of /slap the players health but the players vehicle health. Is there a way to edit the script below so that it does? This is the part of the script: elseif ( action == "slap" ) then if ( getElementHealth ( player ) > 0 ) and ( not isPedDead ( player ) ) then if ( ( not data ) or ( not tonumber ( data ) ) ) then data = 20 end if ( ( tonumber ( data ) >= 0 ) ) then if ( tonumber ( data ) > getElementHealth ( player ) ) then setTimer ( killPed, 50, 1, player ) else setElementHealth ( player, getElementHealth ( player ) - data ) end local x, y, z = getElementVelocity ( player ) setElementVelocity ( player, x , y, z + 0.2 ) mdata = data else action = nil end Thanks in advance!
  8. OR you can always use Arezu's mapping toolbox to stack objects automatically: http://www.mediafire.com/?muchs3nu6lo99sc Extract to resources > In editor type: /start amt Never thought of that
  9. Hi Kino, You can use the IMG Tool @gtagarage.com to extract the .dff's from the gta3.img inside the models folder in the GTA SA root folder. Then you can use TXD Workshop to read out the .dff file from the file tab. This will give you the ''texture names'' but not the txd file. But you can easily make one yourself with file > new > then import the texture and give it the same name as the one you read from the .dff file (This is CaSe SenSitiVe). Save it as yourtexture.txd and make a script using the engineLoadTXD and engineImportTXD commands. Here's a working example: addEventHandler('onClientResourceStart', resourceRoot, function() txd = engineLoadTXD ( "yourtexture.txd" ) engineImportTXD ( txd, id) -- Replace id with the object id number. (It will only work if the object is using the same texture name as the one in your .txd) end )
  10. Tails

    Shoot object

    Oke , so what I want is to make the players vehicle shoot Objects on command. This works if I do x + 125 but this will always shoot the object into one direction, regardless of the vehicles rotation. So I tried to add the + 125 to the rX position instead but that didn't work, it just floats up a little bit. Any bit of help is appreciated. Part of my script: -- This will shoot the object 125 units from the X position of the players vehicle local x,y,z = getElementPosition(theVehicle) local rX,rY,rZ = getElementRotation(theVehicle) ball = createObject ( 1249, x, y, z +1, rX, rY, rZ) moveObject ( ball, 2500, x +125, y, z, rX, rY, rZ ) -- I assumed this would shoot the object 125 units relative to the vehicles rotation but that's not the case, it just floats about 2 inches up. local x,y,z = getElementPosition(theVehicle) local rX,rY,rZ = getElementRotation(theVehicle) ball = createObject ( 1249, x, y, z +1, rX, rY, rZ) moveObject ( ball, 2500, x, y, z, rX + 125, rY, rZ ) Tails
  11. Oke re-register is fine, but what about his stats?
  12. Hi, I'm running my own server, and a friend of mine wants to change his account name. Is that possible? Greetings, Tails
  13. How exactly do I add the skins to the list?
  14. So this is what I have so far. I used the guieditor addon and then I added the script to my marker hit script. So I already got that going, I hit the marker and the window pops up. Now how would I go about making it so the player get to actually choose their skin rather than just a window with nothing in it. I already made the base with the guieditor addon. I'd appreciate it if you could help me with this. function MarkerHit ( thePlayer, matchingDimension ) local elementType = getElementType ( thePlayer ) if ( elementType == "player" and not isPedInVehicle ( thePlayer ) ) then if ( source == skinMarker ) then GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(0.0175,0.2783,0.2387,0.465,"Choose your Skin",true) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(0.0471,0.086,0.9058,0.7778,true,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Skins",0.2) showCursor (true,true) for i = 1, 16 do guiGridListAddRow(GUIEditor_Grid[1]) end GUIEditor_Button[1] = guiCreateButton(0.356,0.8817,0.2984,0.0896,"OK",true,GUIEditor_Window[1]) end end end addEventHandler ( "onClientMarkerHit", root, MarkerHit ) Thanks in advance.
  15. Thanks so much. I appreciate it.
  16. Hi there, I'm trying to make a window that should popup whenever a player joins the server. It works if I use the commandHandler but it just won't show using the EventHandler. Would appreciate it if you could help me with this. function infoGui () local sWidth,sHeight = guiGetScreenSize() infoGuiWindow = guiCreateWindow ( sWidth-600, sHeight-400, sWidth-400, sHeight-300, "Server Rules", false ) guiCreateLabel(0.05, 0.1, 0.94, 0.2, "1:", true, infoGuiWindow) closeButton = guiCreateButton(0.5, 0.5, 0.25, 0.1, "Close", true, infoGuiWindow) showCursor ( true ) end addEventHandler("onPlayerJoin", getRootElement(), infoGui) addCommandHandler("z", infoGui)
  17. Tails

    playsong3d

    The url does not exist.
  18. Thanks you very much guys. Very helpful.
  19. Woops. Guess what...problems... I'm getting bad arguments @ setPedOnFire and isPedOnFire but I don't really understand why? Any bit of help is appreciated. function playerfire ( thePlayer ) thePlayer = isElement ( thePlayer ) setPedOnFire ( thePlayer, true ) if ( isPedOnFire ( thePlayer ) ) then setTimer ( function ( thePlayer ) setElementHealth ( thePlayer, getElementHealth ( thePlayer ) + 5 ) end , 2000, 0, source ) end end addCommandHandler("fire", playerfire)
  20. I just figured, what is more than 1 player dies, everyone will go on to the same bed. I guess I have to stick with the first script then and change the setCameraTarget to something else.
  21. I tested it, it had no debug errors. And no that script doesn't let me respawn at all
  22. Animation is still not working!
  23. That doesn't work at all and I don't want the player to be frozen right when he dies.
  24. Adding the quotation marks didn't help. The reason I added the freeze function is because I don't want the player to be able to cancel the animation. Also, why does the player sometimes not spawn the second time? local DieingPed1 = createPed ( 2336.5439453125, -1172.0966796875, 1031.96875, mySkin ) function deathCheck ( ) local x,y,z = getElementPosition ( source ) if ( isPedDead ( source ) ) then outputChatBox ("Type /respawn to respawn immediately.", getRootElement ( ), 255,0,0,true ) setTimer ( setElementInterior, 2900, 1, source, 5 ) setTimer ( spawnPlayer, 3000, 1, source, 2000.9599609375, -1402.8125, 17.690458297729, 0, mySkin ) setTimer ( setElementFrozen, 3000, 1, source, true ) end if ( isElementFrozen ( source ) ) then setPedAnimation ( source, "GANGS", "leanIDLE" ) setTimer ( setElementPosition, 12000, 1, source, 2030.2861328125, -1418.5458984375, 16.9921875 ) setTimer ( setElementFrozen, 12000, 1, source, false ) fadeCamera ( source, true, 3, 0,0,0 ) setCameraTarget ( source, source ) end end addEventHandler ( "onPlayerWasted", root, deathCheck )
×
×
  • Create New...