LucasBaker Posted May 26, 2013 Share Posted May 26, 2013 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
Mossy Posted May 26, 2013 Share Posted May 26, 2013 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
MR.S3D Posted May 26, 2013 Share Posted May 26, 2013 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
LucasBaker Posted May 26, 2013 Author Share Posted May 26, 2013 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
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