Jump to content

Et-win

Members
  • Posts

    1,390
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Et-win

  1. Yeah, but an exact version would be fine
  2. Et-win

    [HELP] BASE

    Add test outputChatBox'es into the code to know or it did pass all codes.
  3. Et-win

    [HELP] script

    local yourmarker = createMarker(1, 1, 1, "cylinder", 5, 255, 255, 255, 255) function enter(tElement) if (tElement == getLocalPlayer()) then if (source == yourmarker) then thetimer = setTimer(function() outputChatBox("Time is over! Move on!") end, 5000, 1) end end end function leave(tElement) if (tElement == getLocalPlayer()) then if (source == yourmarker) then if (isTimer(thetimer)) then killTimer(thetimer) outputChatBox("You left the marker! Wait until the time is over! Get back in right now!") end end end end addEventHandler("onClientMarkerHit", getRootElement(), enter) addEventHandler("onClientMarkerLeave", getRootElement(), leave) A very fast-made example of a full white-marker which is randomly created by position 1, 1, 1. (Didn't test it either, but it's about letting you understand one of the ways to do something like this) If you entered the marker you still can move, but if you go out of it, you will need to reënter the marker in order to finish the time. (If you leave the marker the timer get killed) Try to understand it and continue.
  4. If you want to register, then this code is used: [url=https://wiki.multitheftauto.com/wiki/AddAccount]https://wiki.multitheftauto.com/wiki/AddAccount[/url] This requires ACL Rights to be done. In ACL this is called 'function.addAccount'. So, you can create an ACL Group and add this 'function.addAccount' to it and add the resource to this group, or you give this resource ACL Group 'Admin'. Giving a resource Admin: 1. Press 'p' to open your Admin Panel 2. Go to tab 'Resources' 3. Click on 'Manage ACL' 4. Double click on 'Admin' (Under Groups) 5. Press 'Add Object' 6. Enter name: resource.login_panel 7. Press 'Ok' Now you gave the resource full permissions. This probably why register didn't work with your other login panel. To see and know what to do about this, just simply typ command: /debugscript 3 in-game or look on the console, so you spare us time with helping you while you can understand it by yourself if you did read that.
  5. Et-win

    [HELP] BASE

    Did you change the variables x, y and z? Because you are now moving the gate to x, y and z while it is already on that same variable.........
  6. I see that now in the history list yes. But still my question is which version of MTA that is.
  7. Login Panel: https://community.multitheftauto.com/ind ... ls&id=1557 (Needs Admin rights/function.addAccount)
  8. Et-win

    [HELP] BASE

    Debugscript 3 error please. Use /debugscript 3 command to see them. The first thing you give us as soon something is not working.
  9. As far as I know you need to modify resource 'race' for this, since I asked by myself here and they said the same.
  10. I believe that this: "cache: When the script file type is "client", this setting controls whether the file is saved on the clients' hard drive. Default is "true". Using "false" will mean the file is not saved." Wasn't there in the 'very beginning' of MTA and as far as I can remember this was recently added? My question is: Since what version of MTA this was added? I can't find it anymore.
  11. I did, I gave him a way to do it. But I am not going to teach him old school math, that is something he has to learn from his teachers.... Well if you want go a head and learn it him, be the school teacher. Nah, my math sucks, otherwise I would ^^
  12. Et-win

    ffs music

    They probably actually use fetchRemote for album covers. Yeah, forgot to add that. Thanks
  13. Or just help this person so she/he can learn.
  14. Et-win

    ffs music

    playSound(string URL) Also, I think, they use their own server to run the music from, with a '.xml' file with containing the album picture, song name and song file locations.
  15. Et-win

    [HELP] BASE

    function createTheGate () myGate1 = createObject ( ID, x, y, z, 0, 0, 0 ) myGate2 = createObject ( ID, x, y, z, 0, 0, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate ) function openMyGate (tPlayer) accountname = getAccountName (getPlayerAccount(tPlayer)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then moveObject ( myGate1, 4000, x, y, z ) else outputChatBox ("You do not have sufficient rights !", tPlayer) end addCommandHandler("open",openMyGate) function movingMyGateBack (tPlayer) accountname = getAccountName (getPlayerAccount(tPlayer)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then moveObject ( myGate1, 4000, x, y, z ) else outputChatBox ("You do not have sufficient rights !", tPlayer) end addCommandHandler("close",movingMyGateBack) Note that this is a serverside script now. EDIT: Note that your moveObject is using the same positions as createObject has. Also as far as I can see they are not defined in the script.
  16. Et-win

    [HELP] BASE

    I would use ACL Groups instead of Serials/IP's of players... If groups then just check or the player is in that specific group which can open and close the gate. aclGetGroup
  17. source: posting.php?mode=quote&f=91&p=370146 Your source = posting in this topic. Please check your links before posting a reply...
  18. Et-win

    [HELP] script

    setTimer --and/or onClientRender
  19. local fChild_Settings = xmlFindChild(mapMeta, "settings", 0) I bet you know the next code.
  20. If I was you, I shouldn't post my Facebook account here. And for sure if it is NOT hidden for people who are not your friends. Just saying.
  21. And do you also know where the script stops working? It would be ALOT easier if you know that.
  22. Go to the map editor and search for missle or anything with those letters. The model ID will be next to it. With this ID number you search here for the file name: https://wiki.multitheftauto.com/wiki/IDE_List (Note: All .TXD's are in gta3.img (In GTA San Andreas map) as far as I know)
  23. You learn everyday, and look better everyday
  24. local tVehicle = getPedOccupiedVehicle(thePlayer)
×
×
  • Create New...