Jump to content

Ab-47

Members
  • Posts

    367
  • Joined

  • Last visited

Everything posted by Ab-47

  1. Ab-47

    /me command

    Learn to script would be a first. Here's the wiki: https://wiki.multitheftauto.com/
  2. Ab-47

    Safe Area

    Stand in the bottom right of the area you want the col-shape then press "P" to open your admins panel and note down your "X", "Y" and "Z" co-ordinates, that'd be the first step of making a col-shape. You can use col-Circles, col-Cuboids, etc. I've been using colCuboid, works fine so: createColCuboid( x, y, z, length, width, height) You can complete the rest now
  3. Change the bind key to something else, then maybe it'd work. Could be a keyboard malfunction or something.
  4. try adding this to your server side: local acc = getAccountName(getPlayerAccount(source))
  5. Ab-47

    music help

    >-> Your script will simply play a sound to the person who entered the vehicle or to everyone on the server.
  6. I support this rule, I totally agree with you on this. Server owners should compile their scripts or keep them in a safe place, nothing MTA team could do about that, unless ability to compile those files in the "Mods > Deathmatch > Resources", after the download of a servers resources, or even set restrictive access to those files. Well, I still agree with ya.
  7. Ab-47

    music help

    And you may also want to use: playSound with getPedOccupiedVehicle
  8. Do you even have "m1x, m1y, myz" & "m2x, m2y, m2z" defined? Use /debugscript 3 in-game and tell me if you see any bad arguments/errors.
  9. Oh lol sorry, didn't take a look at the thread whilst posting and mistaken this for another topic. Sorry
  10. I can make it center the window in all resolutions: centerTheWindow(theGUI) --Within the function of the GUI function centerTheWindow(centerWindow) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(centerWindow,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(centerWindow,x,y,false) end
  11. Use the guieditor resource to get the dxDraw positions, output the code and replace the positions with your existing script.
  12. Ab-47

    Car lock help

    Is this /lock or like when you spawn and go up to it you can only enter if youre that user If there's a guy called: "Username" and you type /lock the car he's in will be locked. You can also add people's usernames and get the data. Like setElementData ( thePlayer, "Username", "TheUsername" ) or local TheUsername = etc.. setElementData ( thePlayer, "Username", ..TheUsername When the player logs in from the login panel his data will be set, make sure you define: TheUsername or enter the players username.. then for the locker script you could use: function lockTheVeh ( thePlayer ) local player = getPlayerFromName(Username) playervehicle = getPlayerOccupiedVehicle ( thePlayer ) if ( playervehicle ) then if (getElementData (thePlayer, "Username") == "TheUsername" ) then if not isVehicleLocked ( playervehicle ) then setVehicleLocked ( playervehicle, true ) end end end end addCommandHandler ( "lock", lockTheVeh )
  13. Ab-47

    Car lock help

    Is this /lock or like when you spawn and go up to it you can only enter if youre that user If there's a guy called: "Username" and you type /lock the car he's in will be locked.
  14. This is just too epic, doesn't that 2% till complete, get your mind wizzing around in circles.. :
  15. Here's a hint, do it yourself. We don't make scripts for people, post your script and we could help you out.
  16. Ab-47

    Car lock help

    function lockTheVeh ( thePlayer ) local player = getPlayerFromName(Username) playervehicle = getPlayerOccupiedVehicle ( thePlayer ) if ( playervehicle ) then if (Username) then if not isVehicleLocked ( playervehicle ) then setVehicleLocked ( playervehicle, true ) end end end end addCommandHandler ( "lock", lockTheVeh ) Not tested
  17. You forgot to include the "function"
  18. Exactly; local sound = playSound3D( 'Your Link here', x, y, z ) "Your Link here" defines the area where you paste a .mp3 link, no need to download the song.
  19. How bout checking it yourself? /debugscript 3 and check for bad arguments.
  20. Required Functions; setElementHealth getElementHealth addEventHandler Simple hint; make it yourself. Wiki; https://wiki.multitheftauto.com/
  21. AP = Admin Panel Ahoi guys, after some time of scripting I've come across a few functions and an addition to the existing admin panel that could be added. It would make scripting a bit more easy than it is at the moment. So the admin panel addition would be; 'Set Occupation' This addition will give you the ability to create an occupation selection and the ability to set a players occupation just like the 'Set Team' button in the admins panel. This would be a cool extra addition to the admins panel and would give many non-scripters a satisfaction. With this addition of the admins panel, I've come up with a few functions that can be used; 'createOccupation' 'setPlayerOccupation' 'getPlayerOccupation' 'countPlayersInOccupation' 'getOccupationColor' 'getOccupationFromName' 'setOccupationName' 'setOccupationFriendlyFire' So that's the occupation function + addition, here's some extra functions I was thinking about; 'isPlayerAdmin' This function will be used to retrieve data if the player is an admin or not. Required Syntax; int isPlayerAdmin ( player thePlayer ) Required Arguments; thePlayer: The player whose admin data you want to determine. Returns; Returns the admin data as an int, or false if the player is invalid. That's all I can think of atm, sorry if this suggestion was suggested before, I couldn't seem to find that topic. Also sorry if I didn't give required information. Get voting
  22. Just be patient, you'd most probably get an offer if you aren't scamming, I mean 250$ quite allot. Anywho, sorry I cant take the offer, I'm in another community and not an expert scripter
  23. Downloadable resource, if that's what you're looking for: https://community.multitheftauto.com/ind ... ls&id=2727
  24. Ab-47

    plz help

    Read: Learn the language, use the following, simple as that. Just in-case you didn't catch the part of the quote: We do not create scripts for you! Learn how P.s; If you're using the default gamemode, you don't need anything more superior or less, simply create a script, with given functions in the quote, add a meta.xml and start your resource. Good Luck
×
×
  • Create New...