Jump to content

[BUG] How to fix this interesting bug in this script?


Tokio

Recommended Posts

function adminuzi(thePlayer, commandName, ...)
	outputDebugString("function is working P1")
	for group, serverGroupName in pairs( names ) do
		if group then
			outputDebugString("P2")
			if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup( group )) then
				outputDebugString("P3 - acl valid")
				message = table.concat({...}, " ")
				groupName = names[group]
				outputChatBox("#0088FF[SUPERFUN-Rangos]#d8001f "..groupName.." "..getFixedName(thePlayer)..": "..message,root,0,0,0,true)
			end
		end
	end
end
addCommandHandler("asay", adminuzi)

Try that

Edited by pa3ck
  • Like 1
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...