Kazafka Posted January 2, 2020 Share Posted January 2, 2020 (edited) Today, I was testing my policeman job (that I will surely post) on my server, because I wanted to know, if other players (not from one XML file) can access to be policemans. Suddenly, I saw, that on other nickname, I can open F1 panel. So what can I do? Thanks everybody for advance. Here is my part of acl.xml for proof, that only me and my friend are in Admin group: <acl> <group name="Everyone"> <acl name="Default"></acl> <object name="user.*"></object> <object name="resource.*"></object> </group> <group name="Moderator"> <acl name="Moderator"></acl> <object name="resource.mapcycler"></object> <object name="resource.mapmanager"></object> <object name="resource.resourcemanager"></object> <object name="resource.votemanager"></object> </group> <group name="SuperModerator"> <acl name="Moderator"></acl> <acl name="SuperModerator"></acl> </group> <group name="Admin"> <acl name="Moderator"></acl> <acl name="SuperModerator"></acl> <acl name="Admin"></acl> <acl name="RPC"></acl> <object name="resource.admin"></object> <object name="resource.webadmin"></object> <object name="resource.acpanel"></object> <object name="resource.modloader"></object> <object name="resource.loginpanel"></object> <object name="resource.bank"></object> <object name="resource.stats"></object> <object name="resource.vsys"></object> <object name="resource.cp"></object> <object name="resource.Serwer"></object> <object name="user.VaporZ"></object> <!--My nick--> <object name="user.maxeo11"></object> <!--My friend's nick--> <object name="resource.job3"></object> <object name="resource.cs"></object> </group> blah blah blah blah blah blah </acl> Edited January 2, 2020 by VaporZ idk Link to comment
Kazafka Posted January 2, 2020 Author Share Posted January 2, 2020 (edited) 11 minutes ago, DiGiTal said: explain more !! !! !! So, when I wanted to test my policeman job script, (that I've already posted: ) I quit my server, changed username and joined back. When I wanted to go for a ride to LSPD, I tought, let's teleport. So I've pressed F1 and Freeroam Panel appeared. I don''t know why It does, because I've declarated to ACL.XML file, that only me and my friend are administrators, so to other player, it shouldn't appear, I guess. ANY HELP NOW? Edited January 2, 2020 by VaporZ Link to comment
DiGiTal Posted January 2, 2020 Share Posted January 2, 2020 @VaporZ " I've declarated to ACL.XML file, that only me and my friend are administrators, so to other player, it shouldn't" Yea right you are just guessing. Because adding yourself or anyone from acl doesn't mean anything , till you mentione on your script that ONLY Admin Group can access to it.So you have to script for that ! Link to comment
Kazafka Posted January 2, 2020 Author Share Posted January 2, 2020 (edited) 12 minutes ago, DiGiTal said: @VaporZ " I've declarated to ACL.XML file, that only me and my friend are administrators, so to other player, it shouldn't" Yea right you are just guessing. Because adding yourself or anyone from acl doesn't mean anything , till you mentione on your script that ONLY Admin Group can access to it.So you have to script for that ! single script or edit freeroam.zip? BTW ok XD Edited January 2, 2020 by VaporZ Link to comment
DiGiTal Posted January 2, 2020 Share Posted January 2, 2020 editing the freeroam , for the access , check on wiki there is already usefull function gets if the players is an admin ----------------------------------------------------------- addEventHandler('onClientResourceStart', resourceRoot, function() if access then --- access accepted or not ( IF HE IS ADMIN OR NOT ) i think you have to use triggering serverSideEvent fadeCamera(true) getPlayers() setJetpackMaxHeight ( 9001 ) triggerServerEvent('onLoadedAtClient', resourceRoot) createWindow(wndMain) hideAllWindows() bindKey('f1', 'down', toggleFRWindow) guiCheckBoxSetSelected(getControl(wndMain, 'jetpack'), doesPedHaveJetPack(localPlayer)) guiCheckBoxSetSelected(getControl(wndMain, 'falloff'), canPedBeKnockedOffBike(localPlayer)) end end ) Link to comment
Kazafka Posted January 2, 2020 Author Share Posted January 2, 2020 1 minute ago, DiGiTal said: editing the freeroam , for the access , check on wiki there is already usefull function gets if the players is an admin ----------------------------------------------------------- addEventHandler('onClientResourceStart', resourceRoot, function() if access then --- access accepted or not ( IF HE IS ADMIN OR NOT ) i think you have to use triggering serverSideEvent fadeCamera(true) getPlayers() setJetpackMaxHeight ( 9001 ) triggerServerEvent('onLoadedAtClient', resourceRoot) createWindow(wndMain) hideAllWindows() bindKey('f1', 'down', toggleFRWindow) guiCheckBoxSetSelected(getControl(wndMain, 'jetpack'), doesPedHaveJetPack(localPlayer)) guiCheckBoxSetSelected(getControl(wndMain, 'falloff'), canPedBeKnockedOffBike(localPlayer)) end end ) Ok ok dude Im doing it myself now 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