UsErFaiLed Posted September 27, 2013 Share Posted September 27, 2013 Hello guys I wanted someone to help me if I want that when someone puts up a tent the message but only Admins can see Message by Please Help Me GOOGLE TRANSLATOR!! function admintent (thePlayer) outputChatBox("Player "..getPlayerName(source).." Colocou uma Tenda", getRootElement(), 255 , 255 ,255 , true ) end addEventHandler("onPlayerPitchATent", getRootElement(), admintent) Link to comment
3NAD Posted September 27, 2013 Share Posted September 27, 2013 function admintent ( thePlayer ) for i, v in ipairs ( getElementsByType ( "player" ) ) do local plrAcc = getPlayerAccount ( v ) if not isGuestAccount ( plrAcc ) then if isObjectInACLGroup ( "user." .. getAccountName(plrAcc), aclGetGroup ( "admin" ) ) then outputChatBox("Player "..getPlayerName(source).." Colocou uma Tenda", v, 255 , 255 ,255 , true ) end end end end addEventHandler("onPlayerPitchATent", root, admintent) 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