TadeoShakur Posted March 24, 2016 Share Posted March 24, 2016 Okey, i've a resource called ''flying_cars'', all players can use it ._. How to make that resource only for admins Link to comment
WhiteCatMeow Posted March 25, 2016 Share Posted March 25, 2016 if getPlayerTeam(theElementHere) == getTeamFromName(theTeamYouWant) then --[[your code here]]-- end --[[add this because we use then in 3rd line]]-- Link to comment
1LoL1 Posted March 26, 2016 Share Posted March 26, 2016 if getPlayerTeam(theElementHere) == getTeamFromName(theTeamYouWant) then --[[your code here]]-- end --[[add this because we use then in 3rd line]]-- This is for team not admin Try this: if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Admin")) then Link to comment
CrazyK Posted March 26, 2016 Share Posted March 26, 2016 This is for team not admin he said "(theTeamYouWant)" he can simply rename that team as "Staff" or "Admins" and it will be only for the admins. Link to comment
1LoL1 Posted March 26, 2016 Share Posted March 26, 2016 This is for team not admin he said "(theTeamYouWant)" he can simply rename that team as "Staff" or "Admins" and it will be only for the admins. Again i say this is for team.... not admin in acl.xml. 100% he don't want for team.. but for "Admin" in acl.xml. Link to comment
TadeoShakur Posted March 26, 2016 Author Share Posted March 26, 2016 (edited) if isObjectInACLGroup("user."..cuenta, aclGetGroup("Admin")) then It work in fly cars. But in ''superman'' resource i get the next error: [13:34:30] ERROR: Client <(NAME HERE)> triggered server side event superman:stop, but event is not added serverside what i should do?? thanks ^^ Edited March 26, 2016 by Guest Link to comment
Bilal135 Posted March 27, 2016 Share Posted March 27, 2016 Add this to the serverside and the error should disappear. addEvent("superman:stop", true) 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