Jump to content

مساعده


Recommended Posts

Posted

السلام عليكم اخواني كل اللي بطلبه منكم كود

سيرفر سايد وكلنت سايد

هذا اذا كان في سيرفر

انا سويت سبورت سيستم اخواني وسويت لها مسح الشات وكل شي بس اللي ناقص

اني اسويلها ميوت فاللي يقدر يسوي الكود يرسله يكون جزاه الله خير

لاني حاولت كثير وما نفع معي

Posted

السلام عليكم اخواني كل اللي بطلبه منكم كود

سيرفر سايد وكلنت سايد

هذا اذا كان في سيرفر

انا سويت سبورت سيستم اخواني وسويت لها مسح الشات وكل شي بس اللي ناقص

اني اسويلها ميوت فاللي يقدر يسوي الكود يرسله يكون جزاه الله خير

لاني حاولت كثير وما نفع معي

Posted
setTimer  

-- أستخدم التايمر لتحديد وقت الميوت

setElementData  

-- حط داتا عليه أنه ميوت

getElementData  

-- أذا أرسل رسالة بالشات سوي تحقق أنه ما عليه الداتا اللي فوق

Posted
setTimer  

-- أستخدم التايمر لتحديد وقت الميوت

setElementData  

-- حط داتا عليه أنه ميوت

getElementData  

-- أذا أرسل رسالة بالشات سوي تحقق أنه ما عليه الداتا اللي فوق

Posted

اوك اخوي ممكن تطرحلي كود يسهل الامر علي شوي

مثال يعني لو تسمح

لاني مو راضي يظبط معي برضو

Posted

اوك اخوي ممكن تطرحلي كود يسهل الامر علي شوي

مثال يعني لو تسمح

لاني مو راضي يظبط معي برضو

Posted

-- client 
addEventHandler ("onClientGUIClick",muteButton, 
function () 
local plr = guiGridListGetSelectedItem (playersGrid) 
if plr ~= -1 then 
local theName = guiGridListGetItemText (playersGrid,plr,1) 
local thePlr = getPlayerFromName (theName) 
triggerServerEvent ("MUTE",localPlayer,thePlr,theName) 
end 
end 
) 
  
addEventHandler ("onClientGUIClick",sendButton, 
function () 
if getElementData (localPlayer,"MUTED") then return outputChatBox ("You are muted.",255,5,5) end 
-- send message code 
end 
,false) 

-- server 
v = {} 
addEvent ("MUTE",true) 
addEventHandler ("MUTE",root, 
function (plr,name) 
if not isTimer (v[plr]) and not getElementData(plr,"MUTED") then 
setElementData (plr,"MUTED",true) 
v[plr] = setTimer (function () 
removeElementData (plr,"MUTED") 
outputChatBox ("UNMUTED SUCCESSFULY - SUPPORT SYSTEM",plr,5,255,5) 
end,unmuteTime,1) 
else return 
outputChatBox (""..name.." is already muted.",source,255,5,5) 
end 
end 
) 
Posted

-- client 
addEventHandler ("onClientGUIClick",muteButton, 
function () 
local plr = guiGridListGetSelectedItem (playersGrid) 
if plr ~= -1 then 
local theName = guiGridListGetItemText (playersGrid,plr,1) 
local thePlr = getPlayerFromName (theName) 
triggerServerEvent ("MUTE",localPlayer,thePlr,theName) 
end 
end 
) 
  
addEventHandler ("onClientGUIClick",sendButton, 
function () 
if getElementData (localPlayer,"MUTED") then return outputChatBox ("You are muted.",255,5,5) end 
-- send message code 
end 
,false) 

-- server 
v = {} 
addEvent ("MUTE",true) 
addEventHandler ("MUTE",root, 
function (plr,name) 
if not isTimer (v[plr]) and not getElementData(plr,"MUTED") then 
setElementData (plr,"MUTED",true) 
v[plr] = setTimer (function () 
removeElementData (plr,"MUTED") 
outputChatBox ("UNMUTED SUCCESSFULY - SUPPORT SYSTEM",plr,5,255,5) 
end,unmuteTime,1) 
else return 
outputChatBox (""..name.." is already muted.",source,255,5,5) 
end 
end 
) 
Posted

+شكرا لك على المساعده انا ما ابي تايمر لفك الميوت انا ابي زر اللي يفكه شكرا انا بحاول واذا ما عرفت بعرضه عليكم انشاء الله وما تقصرون

Posted

يعطيكم الف عافيه اخواني تمت الافاده تسلمو كلكم ما قصرتم

ولكن احب اوجه شكر خاص للاخ

DTC12

لانه سهلها علي مره يعطيه الف عافيه

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