Adham Posted June 28, 2016 Share Posted June 28, 2016 سلام عليكم كود الميوت في سبورت سيستم لو حدد اسم من القريد لست وضعط علي زر يعطي الاعب ميوت ويحدد اسم ويضعط علي زر ينفك ميوته م شتغل الكود addEventHandler("onClientGUIClick",root,function () if (source == GUIEditor.button[2])then local gg = guiGridListAddRow(GUIEditor.gridlist[1]) if getElementData (localPlayer,"MUTED") then return guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,"You are muted.", false, false) end if guiGetText(GUIEditor.edit[1]) ~= '' then triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) end end end) addEventHandler ("onClientGUIClick",root, function () if ( source == Mute ) then local plr = guiGridListGetSelectedItem (grid) if plr ~= -1 then local theName = guiGridListGetItemText (grid,plr,1) local thePlr = getPlayerFromName (theName) triggerServerEvent ("MUTE",localPlayer,thePlr,theName) end end end ) v = {} addEvent ("MUTE",true) addEventHandler ("MUTE",root, function (plr,name) if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Support")) ) then if not isTimer (v[plr]) and not getElementData(plr,"MUTED") then setElementData (plr,"MUTED",true) outputChatBox ("[support System]: ["..name:gsub("#%x%x%x%x%x%x","").."] Successfuly muted.",source,232,240,14) v[plr] = setTimer (function () removeElementData (plr,"MUTED") outputChatBox ("[support System]: ["..name:gsub("#%x%x%x%x%x%x","").."]Unmuted Successfuly ",plr,5,255,5) end,unmuteTime,1) else return outputChatBox ("[support System]: ["..name:gsub("#%x%x%x%x%x%x","").."] is already muted.",source,232,240,14) end end end ) addEvent ("UnMUTE",true) addEventHandler ("UnMUTE",root, function (plr,name) if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Support")) ) then if getElementData(plr,"MUTED")==true then removeElementData (plr,"MUTED") outputChatBox ("[support System]: ["..name:gsub("#%x%x%x%x%x%x","").."]Unmuted Successfuly ",plr,5,255,5) v[plr] = setTimer (function () removeElementData (plr,"MUTED") outputChatBox ("[support System]: ["..name:gsub("#%x%x%x%x%x%x","").."]Unmuted Successfuly ",plr,5,255,5) end,unmuteTime,1) else return outputChatBox ("[support System]: ["..name:gsub("#%x%x%x%x%x%x","").."] is already Unmuted ",source,5,255,5) end end end ) مدري لقيت الكود من مستر اعتقد Link to comment
فاّرس Posted June 28, 2016 Share Posted June 28, 2016 (edited) بالسيرفر؟ support بالكلينت؟ ووين الايفنت حق التريقر UnMUTE وين التريقر حق Edited June 28, 2016 by Guest Link to comment
Adham Posted June 28, 2016 Author Share Posted June 28, 2016 addEventHandler ("onClientGUIClick",root, function () if ( source == un ) then local plr = guiGridListGetSelectedItem (grid) if plr ~= -1 then local theName = guiGridListGetItemText (grid,plr,1) local thePlr = getPlayerFromName (theName) triggerServerEvent ("UnMUTE",localPlayer,thePlr,theName) end end end ) Link to comment
gadid-lua Posted June 28, 2016 Share Posted June 28, 2016 v = {} addEvent ("MUTE",true) addEventHandler ("MUTE",root, function (plr,name) if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Support")) ) then if not isTimer (v[plr]) and not getElementData(plr,"MUTED") then setElementData (plr,"MUTED",true) outputChatBox ("[support System]: ["..name:gsub("#%x%x%x%x%x%x","").."] Successfuly muted.",source,232,240,14) v[plr] = setTimer (function () removeElementData (plr,"MUTED") outputChatBox ("[support System]: ["..name:gsub("#%x%x%x%x%x%x","").."]Unmuted Successfuly ",plr,5,255,5) end,unmuteTime,1) else return outputChatBox ("[support System]: ["..name:gsub("#%x%x%x%x%x%x","").."] is already muted.",source,232,240,14) end end end ) Link to comment
Adham Posted June 28, 2016 Author Share Posted June 28, 2016 اصك نفسي ميوت واتكلم برده Link to comment
Mr.CoR Posted June 28, 2016 Share Posted June 28, 2016 اعتقد الميوت يبيله قواعد بيانات 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