Jump to content

Help Script


UsErFaiLed

Recommended Posts

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

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