Jump to content

Help pls D:


Recommended Posts

WARNING: sh_admins\admincommands:lua:3: Bad argument @'isObjectInACLGroup' [expected string at argument 1, got boolean]

 

WARNING: sh_admins\admincommands:lua:3: Bad argument @''setElementPosition' [Expected element at argument 1,got nil]

 

function gotovh (thePlayer)
local account = getAccountName ( getPlayerAccount ( thePlayer ) )
        if isObjectInACLGroup(aclGetGroup("Admin,Moderator,Owner")) then
       
        end          
       setElementPosition( player, 0, 0, 3 ) -- teleport player to the centre of SA 
	   

end
addCommandHandler("vh", gotovh)
Link to comment

you do it with Team Admin 





function gotovh (thePlayer)
local account = getAccountName ( getPlayerAccount ( thePlayer ) )
        if getTeamName(getPlayerTeam(thePlayer)) == "Admin" then
       
        end          
       setElementPosition( player, 0, 0, 3 ) -- teleport player to the centre of SA 
	   

end
addCommandHandler("vh", gotovh)
 
Link to comment
if isObjectInACLGroup(aclGetGroup("Admin,Moderator,Owner")) then

change it to:

if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Owner")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Admin")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Moderator")) then

 

Edited by gubi
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...