Jump to content

Et-win

Members
  • Posts

    1,390
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Et-win

  1. Just saw my example is just checking or any team name was allowed to get into the colshape, did nothing with the player. Too tired to think at the moment, lol. Anyway this is just an example so you should make your own.
  2. allowedTeams = { "Team1", "Team2", } function test() local teamIsAllowed = false for numberData, teamData in ipairs(team) do for placeNumber, tableData in ipairs(allowedTeams) do if (getTeamName(teamData) == teamName) then teamIsAllowed = true end end end if (teamIsAllowed == true) then --Stuff else --Stuff end end You can do something like this.
  3. Lol'd. Also stealing. Anyway I'm still wondering how you guys know these scripts are leaked and such?
  4. I doubt there is anyone going to help you making to script this. And yes, I know you are going to say "If you don't want to help, then stfu", but still, why don't you atleast try to make a part by yourself or even try to bother to typ anything into the script?
  5. The script is still defining the function 'someFunc', so you can't start it with 'addEventHandler' yet. More I don't say.
  6. https://wiki.multitheftauto.com/wiki/Se ... ape_events Searching on Wiki is hard, huh?
  7. for placeNumber, tableData in ipairs(teamTable) do createTeam(tableData[1]--[[= Team Name]], tableData[2]--[[= R]], tableData[3]--[[= G]], tableData[4]--[[= B]]) end EDIT: You can also use the code 'unpack'. for placeNumber, tableData in ipairs(teamTable) do local tName, tR, tG, tB = unpack(tableData) createTeam(tName, tR, tG, tB) end
  8. @Line 50: Are you sure the data was set? Because, if you respawn, the element data is removed because the vehicle was destroyed. You need to replace the data.
  9. /debugscript 3 errors? Maybe event 'onPlayerChat' event in the script and it's blocking it?
  10. As soon as a client joins the server, you just can use 'onClientResourceStart' (Remember to use the resource-root, not root! (Otherwise it will start by every resource that gets started)) or put: functionname() to start the function. Why? Because when she/he joins, the scripts get started.
  11. No, you have to put right 'general.http' into the ACL from a group which is connected to a resource. (Just answering on what you said. I don't know what to do with web access)
  12. Yup, I could have been more clear Anyway back ontopic
  13. If you edit the ACL.xml file with the hand if your server is running it won't save. @Chaos
  14. Wut, weird... Try removing it, restarting server and then again? Further nope strange.
  15. No, there is not. Stop the server, then edit ACL and then start the server again. Or: 1. P 2. Resources 3. Manage ACL 4. Double-click Admin under GROUPS 5. Add Object 6. typ: resource.resourcename When editing the ACL while the server is running, nothing wil happen.
  16. getPlayerAccount ( source ) ) source to player
  17. aclGetGroup("Trial Staff") "Trial Staff" was probably not found. I think your ACL Group = "Trail Staff" by accident.
  18. Oops, sorry. The first source, remove it. And replace root with source again.
  19. That too yes. thanks a lot so should be ? triggerClientEvent(source,"showStatus",root,name,accountName) Yush.
  20. Some 'spoilers' of what settings are atleast in the panel (DX maybe coming later) Also, I'm not sure or it will be free or not.
  21. guiSetText(memo,"\n"..name.." has logged in as "..accountName) To: local gText = guiGetText(memo) guiSetText(memo, gText.."\n"..name.." has logged in as "..accountName)
  22. ^ and event: onPlayerChat
×
×
  • Create New...