shoBy Posted September 9, 2014 Share Posted September 9, 2014 My VIP menu can access admin panel and admin commands and I don't know how to solve this problem. I need help, please. Here is the script: Client ------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- Informations - ------------------------------------------------------------------------------------------------------------------------------------------------------------------- --|||||||||||||||||||||||||||||||||||||||||||| --|||+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-||| --|||- +||| --|||+ @: Created by Iser -||| --|||- @: 12/08/2014 +||| --|||+ @: Client.lua -||| --|||- +||| --|||+ -||| --|||- +||| --|||+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-||| --|||||||||||||||||||||||||||||||||||||||||||| ------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- Script Introduction - ------------------------------------------------------------------------------------------------------------------------------------------------------------------- SYSTEMWindow = guiCreateWindow(203, 154, 498, 370, "VIP SYSTEM BY ISER", false) guiWindowSetSizable(SYSTEMWindow, false) guiSetAlpha(SYSTEMWindow, 1.00) selecionar = guiCreateButton(9, 310, 166, 50, "Get it!", false, SYSTEMWindow) guiSetFont(selecionar, "default-bold-small") guiSetProperty(selecionar, "NormalTextColour", "FFFFFFFF") Horns = guiCreateGridList(9, 24, 166, 280, false, SYSTEMWindow) guiGridListSetSelectionMode(Horns, 2) column = guiGridListAddColumn(Horns, "Menu", 0.9) local rowx rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1, "Weapons", false, false) guiGridListSetItemColor (Horns, rowx, 1, 255, 0, 0 ) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1, "CZ 550", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1, "AK-47", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1, "M4", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1, "PDW", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1, "Desert Eagle", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1, "Weapon Ammo", false, false) guiGridListSetItemColor (Horns, rowx, 1, 255, 0, 0 ) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1, "CZ 550 Mag", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1, "AK Mag", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1, "M4 Mag", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1, "PDW Mag", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1, "Desert Eagle Mag", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Food&Drink", false, false) guiGridListSetItemColor (Horns, rowx, 1, 255, 0, 0 ) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Pizza", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Milk", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Useful items", false, false) guiGridListSetItemColor (Horns, rowx, 1, 255, 0, 0 ) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Map", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"GPS", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Infrared Googles", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Binoculars", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Medicals", false, false) guiGridListSetItemColor (Horns, rowx, 1, 255, 0, 0 ) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Medic Kit", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Morphine", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Painkiller", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Blood Bag", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Car essentials", false, false) guiGridListSetItemColor (Horns,rowx, 1, 255, 0, 0 ) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Tire", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Engine", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Full Gas Canister", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Skins", false, false) guiGridListSetItemColor (Horns, rowx, 1, 255, 0, 0 ) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Ghillie Suit", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Civilian Clothing", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Camouflage Clothing", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Camping", false, false) guiGridListSetItemColor (Horns, rowx, 1, 255, 0, 0 ) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Tent", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Backpack", false, false) guiGridListSetItemColor (Horns, rowx, 1, 255, 0, 0 ) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Czeck Backpack", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"Comming soon", false, false) guiGridListSetItemColor (Horns, rowx, 1, 255, 0, 0 ) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"-", false, false) rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, rowx, 1,"-", false, false) guiSetVisible(SYSTEMWindow, false) labelvip = guiCreateLabel(273, 34, 103, 47, "V.I.P", false, SYSTEMWindow) guiSetFont(labelvip, "sa-gothic") guiLabelSetColor(labelvip, 253, 220, 1) equipar = guiCreateButton(189, 91, 283, 57, "Take essentials items!", false,SYSTEMWindow) guiSetFont(equipar, "default-bold-small") guiSetProperty(equipar, "NormalTextColour", "FFFFFFFF") memo = guiCreateMemo(181, 261, 307, 99, "Plugin scripted by shoBy.\n\nThe VIP Menu isn't ready yet. Use only essentials item menu.\n\n Problems? Skype contact: shoby.hns", false, SYSTEMWindow) guiMemoSetReadOnly(memo, true) spawnsanchez = guiCreateButton(189, 158, 84, 98, "Respawn Sanchez", false, SYSTEMWindow) guiSetFont(spawnsanchez, "default-bold-small") guiSetProperty(spawnsanchez, "NormalTextColour", "FFFFFFFF") spawnpatriot = guiCreateButton(286, 158, 84, 98, "Respawn Patriot", false, SYSTEMWindow) guiSetFont(spawnpatriot, "default-bold-small") guiSetProperty(spawnpatriot, "NormalTextColour", "FFFFFFFF") slotsmochila = guiCreateButton(388, 158, 84, 98, "25 slots", false, SYSTEMWindow) guiSetFont(slotsmochila, "default-bold-small") guiSetProperty(slotsmochila, "NormalTextColour", "FFFFFFFF") local player = getLocalPlayer() addEventHandler("onClientGUIClick", selecionar, function() local row, column = guiGridListGetSelectedItem(Horns) if row == 1 then ----- CZ triggerServerEvent("AS50", player, 2) elseif row == 2 then ----- M4 triggerServerEvent("M4", player,3) elseif row == 3 then ----- M4 triggerServerEvent("MP5", player,4) elseif row == 4 then ----- M4 triggerServerEvent("Desert Eagle", player,6) elseif row == 6 then ----- M4 triggerServerEvent("CZ MAG", player,7) elseif row == 7 then ----- M4 triggerServerEvent("M4 MAG", player, elseif row == 8 then ----- M4 triggerServerEvent("MP5MAG", player,9) elseif row == 9 then ----- M4 triggerServerEvent("Desert Eagle Mag", player,11) elseif row == 11 then ----- M4 triggerServerEvent("Milk", player,12) elseif row == 12 then ----- M4 triggerServerEvent("COOKED", player,14) elseif row == 14 then ----- M4 triggerServerEvent("MAP", player,15) elseif row == 15 then ----- M4 triggerServerEvent("GPS", player,16) elseif row == 16 then ----- M4 triggerServerEvent("Infrared Goggles", player,17) elseif row == 17 then ----- M4 triggerServerEvent("Night Vision Goggles", player,18) elseif row == 18 then ----- M4 triggerServerEvent("Toolbox", player,19) elseif row == 19 then ----- M4 triggerServerEvent("Watch", player,20) ---- Pulo para TiTuLo -------- elseif row == 21 then ----- M4 triggerServerEvent("Medic Kit", player,22) elseif row == 22 then ----- M4 triggerServerEvent("Morphine", player,23) elseif row == 23 then ----- M4 triggerServerEvent("Bandage", player,24) elseif row == 24 then ----- M4 triggerServerEvent("PainKiller", player,25) ---- Pulo para Titulo ----- elseif row == 26 then ----- M4 triggerServerEvent("Tire", player,27) elseif row == 27 then ----- M4 triggerServerEvent("Engine", player,28) elseif row == 28 then ----- M4 triggerServerEvent("Tank Parts", player,29) ---- Pulo para Titulo ----- elseif row == 30 then ----- M4 triggerServerEvent("Ghillie Suit", player,31) elseif row == 31 then ----- M4 triggerServerEvent("Civilian Cloting", player,32) elseif row == 32 then ----- M4 triggerServerEvent("Camouflage Cloting", player,33) ---- Pulo para Titulo ----- elseif row == 34 then ----- M4 triggerServerEvent("Full Gas Canister", player,35) elseif row == 35 then ----- M4 triggerServerEvent("Tent", player,36) elseif row == 6 then ----- M4 triggerServerEvent("Wire Fence", player,38) elseif row == 38 then ----- M4 triggerServerEvent("Coyote Backpack", player,39) elseif row == 39 then ----- M4 triggerServerEvent("Czech backpack", player,40) elseif row == 41 then ----- M4 triggerServerEvent("AK-47", player,42) elseif row == 42 then ----- M4 triggerServerEvent("AK MAG", player,43) end end, false) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == equipar) then triggerServerEvent("onClientGiveWeapon", localPlayer, "Equiparme") end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == spawnsanchez) then triggerServerEvent("onClientGiveWeapon", localPlayer, "SpawnSanchez") end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == spawnpatriot) then triggerServerEvent("onClientGiveWeapon", localPlayer, "Spawnpatriot") end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == slotsmochila) then triggerServerEvent("onClientGiveWeapon", localPlayer, "slotsmochila") Link to comment
myonlake Posted September 9, 2014 Share Posted September 9, 2014 It is not the VIP panel that triggers that. It is a problem in your ACL, or something else is triggering your admin panel. Link to comment
shoBy Posted September 9, 2014 Author Share Posted September 9, 2014 How can I remove this access ? Also vip has access to /ban /kick and theese commands. Please help. <acl name="Moderator"></acl> <acl name="SuperModerator"></acl> <acl name="Admin"></acl> <acl name="Owner"></acl> <acl name="VIP"></acl> <acl name="RPC"></acl> This lines are copying the access from that groups, right ? Link to comment
myonlake Posted September 9, 2014 Share Posted September 9, 2014 Yes, it is inheriting ACL rules from those specified ACL groups. I suggest you remove all of those others and just add a few more lines into the VIP ACL group to allow the kick and ban commands. https://wiki.multitheftauto.com/wiki/Ac ... ntrol_List Link to comment
shoBy Posted September 9, 2014 Author Share Posted September 9, 2014 Ok man. Thanks a lot! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now