Jump to content

Noki

Members
  • Posts

    851
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Noki

  1. onVehicleEnter Cancel that event if the user (player entering the vehicle) isn't in a certain ACL group, or has certain element data.
  2. I'm not too confident about downloading an .exe from you...
  3. A resource/account is an element. Callum means temporary elements. But no, you can't, and I have no idea as to why you would want to either.
  4. Forgot all about table returns... Thanks Prestege.
  5. Hey, I'm not the best with tables... at all. So, say I have a table that contains people's serials. I want to know what type of loop I'd use, and how I would detect if their serial matches any one of them from the table. I need to know the table layout as well. I don't care about efficiency by the way. local allowedSerials = { {"5y7rwfbh54ywgbvfgvnwe45gnaevhrt5"} -- Note, these aren't real serials, just examples for the sake of it {"nregaau3brquq34hqvgr85rfa348t585t"} } for k, v in ipairs (allowdSerials) do -- code end function checkForSerial() sourceSerial = getPlayerSerial(source); if (sourceSerial ~= allowedSerials[1]) then kickPlayer(source, "You ain't allowed nigga"); end end addEventHandler("onPlayerJoin", root, checkForSerial) That's what I suppose it would look like... I'm not sure. Any help would be appreciated. Thanks.
  6. I take that as a question.. A: It has come to inactivity really. Last post was in December, then you bumped it. Q: When someone pretends to be the opposite sex online, is it alright to tell them to "go away"?
  7. Yes, but more like resource:file.html. Nothing should have access outside of its own resource unless exported somehow. Oh yeah, I said a stupid question. It's using fetchRemote lol. Needs? No, MTA doesn't need it. MTA needs bug fixes, then super new radical features.
  8. Would it be possible to open a HTML page on your local machine? C:\html\index.html
  9. That's what you need for a custom system that relies on exports.
  10. Noki

    stopResource

    In your console type 'aclrequest allow all'. This will create an ACL group for the resource, granting it permissions to use the functions it requests.
  11. Make sure the resource is on your start list, as ToffBrown said.
  12. Host name meaning server name? Well, in the DayZ resources, it restricts what you can call your server. Read the readme.txt file to find out more.
  13. Alright. Go to server > mods > deathmatch > resources. In there, create a new folder called 'teams'. Go into that folder and create a file called script.lua. Paste this code into it, then save it: createTeam("Team name", 200, 50, 0) --Those are the RGB colours. Create another file called meta.xml. Paste this into it, then save it (in the same folder): <meta> <script src="script.lua" type="server"/> </meta> Now, when you start your server, you should have a resource called 'teams'. Write /start teams into the chatbox, and watch your resource start.
  14. Yes, KRZO. It happens to me as well. Although, it isn't a serious issue.
  15. Noki

    Cameras

    You add it in a group as 'command.cmdName'.
  16. Why do we even need this if you're going to FORCE everyone to use luac.multitheftauto.com?
  17. Noki

    Cameras

    addCommandHandler("cctv", functionName, true)
  18. Noki

    Green Candy

    Does Eir contain everything the latest normal 1.4 nightlies have in them?
  19. That is outdated. Use this and select r995.
  20. Noki

    [HELP] Script

    text is server side, and dx is client side. Take your pick, which ever one you want. local time = getRealTime() local hours = time.hour local minutes = time.minute dxDrawText(..hours..":"..minutes.., args)
  21. Noki

    Paid Scripter

    Very trustworthy and honest guy. No need to hesitate here. He is honest and loves what he does.
  22. Noki

    mysql insert

    On every query, insert? No. You want it to insert multiple integer values into columns? It sounds like you've seen a database before, and just want to know how to insert stuff, am I right? dbExec
  23. Has the connection even been created? Try checking if it was created, and if it was, then execute your code.
×
×
  • Create New...