orcun99 Posted September 4, 2017 Posted September 4, 2017 local playerTeam = getPlayerTeam ( source ) if exports.Xacl:isPlayerInGroup(source, "subadmin") and if ( playerTeam = "asd" ) then then some one help for team
developa Posted September 4, 2017 Posted September 4, 2017 if exports.Xacl:isPlayerInGroup(source, "subadmin") and getPlayerTeam(source) == "asd" then
orcun99 Posted September 4, 2017 Author Posted September 4, 2017 (edited) 3 minutes ago, developa said: if exports.Xacl:isPlayerInGroup(source, "subadmin") and getPlayerTeam(source) == "asd" then Thank u bro now no debugscript 3 erorrs but panel still not open I'm in subadmin group and my team Staff what's wrong? addCommandHandler("panel", function(source) if exports.Xacl:isPlayerInGroup(source, "subadmin") and getPlayerTeam(source) == "Staff" then triggerClientEvent(source, "openModPanel", getRootElement()) end end ) when I deleted this {{{{{{and getPlayerTeam(source) == "Staff"}}}}} then panel is working Edited September 4, 2017 by orcun99
ozulus Posted September 4, 2017 Posted September 4, 2017 local playerTeam = getPlayerTeam(source) local teamName = "" if isElement(playerTeam) then teamName = getTeamName(playerTeam) end if exports.Xacl:isPlayerInGroup(source, "subadmin") and (teamName = "Staff") then -- do something end
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