SaedAmer Posted July 24, 2016 Share Posted July 24, 2016 السلام عليكم حاته سيرفر بس يظهر للكل ابيه يظهر للاعب فقط outputChatBox("#FF0000Sorry You Are Muted",source,255,0,0,true) Link to comment
gadid-lua Posted July 24, 2016 Share Posted July 24, 2016 السلام عليكم حاته سيرفر بس يظهر للكلابيه يظهر للاعب فقط outputChatBox("#FF0000Sorry You Are Muted",source,255,0,0,true) outputChatBox("#FF0000Sorry You Are Muted",source,255,0,0, player) Link to comment
فاّرس Posted July 24, 2016 Share Posted July 24, 2016 ^ الارقومنت الاخير حق اكواد الألوان ماله علاقه باللاعب, هو كوده صحيح اساساً. Link to comment
N3xT Posted July 24, 2016 Share Posted July 24, 2016 إطرح الكود كامل لأني ماني متأكد إذا السورس معرفه ولا لا Link to comment
Vunili Posted July 24, 2016 Share Posted July 24, 2016 مدري وش اقول صراحتن لاكن امسك outputChatBox ( "#FF0000You are muted", player, 255, 0, 0, true ) Link to comment
SaedAmer Posted July 24, 2016 Author Share Posted July 24, 2016 Groups = {"Console", "Admin1", "mosp", "SuperModerator1", "Moderator1", "Moderator2", "Master", "Moafek", "Sozr", "SuperModerator2", "msol.beot", "Super.Admin", "FDR", "Mangres", "m5fe", "Super.Police", "Big.Admin", "msol", "Head.Admin", "LVL1", "LVL2", "LVL3", "LVL4", "LVL5", "LVL6", "Help Console", "ACL-Manager", "General-Admin", "Help Console", "LVL1", "LVL2", "LVL3", "LVL4", "LVL5", "LVL6", "Everyone"} chat_range = 70 addEventHandler("onPlayerJoin", root, function() bindKey(source, "i", "down", "chatbox", "Local") end) addEventHandler("onResourceStart", resourceRoot, function() for i, player in pairs(getElementsByType("player")) do bindKey(player, "i", "down", "chatbox", "Local") end end) function isPlayerInRangeOfPoint(player, x, y, z, range) local px, py, pz = getElementPosition(player) return ((x-px)^2+(y-py)^2+(z-pz)^2)^0.5<=range end addCommandHandler("Local", function(player, _, ...) local px, py, pz = getElementPosition(player) local msg = table.concat({...}, " ") local nick = getPlayerName(player) local team = getPlayerTeam(player) local teamName local r, g, b if team then teamName = getTeamName(team) r, g, b = getTeamColor(team) else teamName = "" r, g, b = 255, 255, 255 end for _, v in ipairs(getElementsByType("player")) do if isPlayerInRangeOfPoint(v, px, py, pz, chat_range) or isPlayerOnGroup(v) then if not isPlayerMuted(player) then outputChatBox("#FFFF00(LOCAL) "..nick.."#FFFFFF: " ..msg, v, r, g, b, true) else outputChatBox("#FF0000Sorry You Are Muted",source,255,0,0,true) end end end end) Link to comment
N3xT Posted July 24, 2016 Share Posted July 24, 2016 مدري وش اقول صراحتنلاكن امسك outputChatBox ( "#FF0000You are muted", player, 255, 0, 0, true ) كودك غلط 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