Vanlot Posted February 24, 2014 Posted February 24, 2014 المفروض انو كل ستاف يشوف الميساج لكن كل الاشخاص تشوفو 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 )
AboShanab Posted February 24, 2014 Posted February 24, 2014 function getOnlineStaff () local players = { }; for i, v in ipairs(getElementsByType('player')) do if hasObjectPermissionTo(v, 'function.setPlayerMuted',true) then table.insert ( players, v ); end end return players; end
iPrestege Posted February 24, 2014 Posted February 24, 2014 ممكن سؤال ؟ لية تحطهم بـ جدول فية غرض منها و لالا ؟ لانة كودك مادري كيف طالع .
PaiN^ Posted February 24, 2014 Posted February 24, 2014 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 )
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