Jump to content

Resource only for admins.


Recommended Posts

  
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 :o

Try this:

if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Admin")) then 

Link to comment

This is for team not admin :o

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

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 by Guest
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...