Vanlot Posted February 24, 2014 Share 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 ) Link to comment
AboShanab Posted February 24, 2014 Share 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 Link to comment
abu5lf Posted February 24, 2014 Share Posted February 24, 2014 same problem local staff = {} هذي حقت وش؟ Link to comment
Vanlot Posted February 24, 2014 Author Share Posted February 24, 2014 التيبل تبع الستاف Link to comment
iPrestege Posted February 24, 2014 Share Posted February 24, 2014 ممكن سؤال ؟ لية تحطهم بـ جدول فية غرض منها و لالا ؟ لانة كودك مادري كيف طالع . Link to comment
PaiN^ Posted February 24, 2014 Share 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 ) 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