Jump to content

help getplayername


Recommended Posts

function sayMessage(source, command, ...) 
    theText = {...} 
    text = table.concat(theText, " ") 
    playerAcc = getPlayerAccount(source) 
    if isObjectInACLGroup("user."..getAccountName(playerAcc), aclGetGroup("Admin")) then 
        if theText then 
            if not (text == "") then 
                outputChatBox("#2F4F4F[Administrador] "..getPlayerName..": #2F4F4F"..text, getRootElement(), 0,153,255, true) 
            else 
                outputChatBox("Use: /ALERTA ",source, 0,153,255,true) 
            end 
        end 
    end 
end 
addCommandHandler("alerta", sayMessage) 

Code:

Link to comment
if isObjectInACLGroup("user."..getAccountName(playerAcc), aclGetGroup("Admin")) then 
        if theText then 
            if not (text == "") then 
                outputChatBox("#2F4F4F[Administrador] "..getPlayerName..": #2F4F4F"..text, getRootElement(), 0,153,255, true) 

what

Link to comment
  
function sayMessage(source, command, ...) 
    local theText = {...} 
    local text = table.concat(theText, " ") 
    local playerAcc = getPlayerAccount(source) 
    if not isGuestAccount(playerAcc) then 
        if isObjectInACLGroup("user."..getAccountName(playerAcc), aclGetGroup("Admin")) then 
            if theText then 
                if not (text == "") then 
                    outputChatBox("#2F4F4F[Administrador] "..getPlayerName(source)..": #2F4F4F"..text, getRootElement(), 0,153,255, true) 
                else 
                    outputChatBox("Use: /ALERTA ",source, 0,153,255,true) 
                end 
            end  
        end 
    end 
end 
addCommandHandler("alerta", sayMessage) 
  

Link to comment
if isObjectInACLGroup("user."..getAccountName(playerAcc), aclGetGroup("Admin")) then 
        if theText then 
            if not (text == "") then 
                outputChatBox("#2F4F4F[Administrador] "..getPlayerName..": #2F4F4F"..text, getRootElement(), 0,153,255, true) 

what

thanks

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