Jump to content

isObjectInACLGroup | outputchatbox , root | HELP


Annas

Recommended Posts

simple help , and thx ..

i need a simple script

when a player in acl group "Supporter" then

outputchatbox "PLAYER NAME is available for help"

i try to make this but idk why not work ..

SERVER SIDE :

function tagPlayer (player, command) 
    local accName = getAccountName ( getPlayerAccount ( player ) ) 
    if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Supporter" ) ) then 
    outputChatBox( "Supporter " .. player .. " is available for help ", root, 255, 171, 1) 
end 
addCommandHandler( "helpsup", tagPlayer ) 

Link to comment

You have to provide a string, such as the player's name there, not the player element itself.

function tagPlayer (player, command) 
    local accName = getAccountName ( getPlayerAccount ( player ) ) 
    if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Supporter" ) ) then 
    outputChatBox( "Supporter " .. getPlayerName(player) .. " is available for help ", root, 255, 171, 1) 
end 
addCommandHandler( "helpsup", tagPlayer ) 

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...