Jump to content

KryngeerPL

Members
  • Posts

    42
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

KryngeerPL's Achievements

Rat

Rat (9/54)

0

Reputation

  1. @UP Nope, look at permissions. In Everyone group (Default permissions) you see settime to false. But in moderator this is true and Admin get its rights from other groups. Admin right replace Everyone rights. @Bilal135 I'm not want to allo settime for Everyone. I want to block it. I wrote to you some time before, when I change it to true, on chatbox I had message "Access denied [bla bla bla]" but command work. And I saw, this commands work only for clear commands form admin panel, not for freeroam. So I need to block admin commands AND freeroam commands like jetpack, settime etc. And look for one from rights <right name="command.givevehicle" access="false"></right> You see? This command is in format /givevehicle [nick] [car id], but in freeroam is /createvehicle [id]. In ACL is more commands like this, but no where is command.createvehicle etc.
  2. Anubhav understand what I need, but it's for every groups. I want it only for Everyone group.
  3. This rights <right name="command.settime" access="false"></right> etc. are for admin panel and command /settime [time]. But commands from freeroam are not in ACL, so how can I block it for group Everyone?
  4. Ok I find a problem. This permissions are for commands like /setskin KryngeerPL 10, not for command from freeroam. So how can I make ACL for freeroam? < right name="freeroam.command.settime" access="false"></right> or how?
  5. function destroyVehiclesOfModel(modelID) -- get a table of all the vehicles that exist and loop through it local vehicles = getElementsByType("vehicle") for i,v in ipairs(vehicles) do -- if the vehicle's ID is the one provided, destroy it if (getElementModel(v) == modelID) then destroyElement(v) end end end I want to change it for all vehicles, not for 1 type and i want to destroy vehicles if they're empty. I'm not want any timer, I want only command.
  6. Sorry I mistake this topic with my other one. I want here isVehicleEmpty because my console say it's bad argument etc.
  7. I have a biiig problem. I change permission to "true" and then when I use this command I see on chatbox "Access denied" but command works. How can I fix it? PS I want to disable it
  8. function destroyVehiclesOfModel(modelID) -- get a table of all the vehicles that exist and loop through it local vehicles = getElementsByType("vehicle") for i,v in ipairs(vehicles) do -- if the vehicle's ID is the one provided, destroy it if (getElementModel(v) == modelID) then destroyElement(v) end end end
  9. Your wiki is here! note: I just copy pasted.! And who can add a line with isObjectInACLGroup? Please, I'm noob in LUA and if I will do it, it won't work....
  10. It doesn't work. First I add it for server side, but it cause this: [2014-11-11 15:02:23] WARNING: forbidweapons\server.lua:2: Bad argument @ 'getTeamName' [Expected team at argument 1, got boolean] [2014-11-11 15:02:23] WARNING: forbidweapons\server.lua:6: Bad argument @ 'toggleControl' [Expected player at argument 1, got string 'fire']
  11. And can I get a script for despawning vehicles? because mtasa.com server has some problems with pages, so I can't go to wiki for destroyObject.
  12. Can moderator move my topic to right section?
  13. But resource "admin" won't change it? When I delete some lines from ACL, in console I saw admin add these deleted lines back. I must save this line and add second with function?
  14. Hello guys. I need a script which will be forbid weapons. I found this script https://community.multitheftauto.com/index.php?p=resources&s=details&id=3531 but it's blocking getting weapons for every group. I try to change it, but i'm noob in LUA and it doesn't work. Can anyone make a script for this?
×
×
  • Create New...