Jump to content

شات بوكس


Vanlot

Recommended Posts

المفروض انو كل ستاف يشوف الميساج لكن كل الاشخاص تشوفو

function getOnlineStaff(removeHEX) 
    local players = { }; 
    for i, v in pairs(getElementsByType'player') do 
        if hasObjectPermissionTo(v, 'function.setPlayerMuted',true) then 
       table.insert ( players, v); 
        end 
    end 
    return players; 
end 
  
addEvent("onAdminCall",true) 
addEventHandler("onAdminCall",root, 
function (newname) 
local staff = {} 
 for i, v in pairs(getOnlineStaff()) do 
 outputChatBox( newname.." need help.Please contact the player", v, 255, 255, 0, true) 
end 
end 
) 
  

Link to comment
addEvent( "onAdminCall", true ); 
addEventHandler( "onAdminCall", root, 
    function( newname ) 
        local staff = { }; 
        for _, v in ipairs( getElementsByType( "player" ) ) do 
            if hasObjectPermissionTo( v, "function.setPlayerMuted", true ) then 
                outputChatBox( newname.." need help.Please contact the player", v, 255, 255, 0, true ) 
            end 
        end 
    end 
) 

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