Jump to content

x[ طلب ]x ميوت في سبورت سيستم


Recommended Posts

سلام عليكم كود الميوت في سبورت سيستم

لو حدد اسم من القريد لست وضعط علي زر

يعطي الاعب ميوت

ويحدد اسم ويضعط علي زر ينفك ميوته

م شتغل الكود

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

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