Jump to content

حفظ الميوت


emad10

Recommended Posts

^^ جرب حـلي وخلكك من اللي يقرقر من غير سنع :lol: :lol: :lol:

يا حليوهـ مانبي هنا سب و هياط .. اذا تعرف تساعد الرجال ساعدهـ ما تعرف خلك ساكت .. وبعدين اذا ما تعرف كودك كيف فكرتهـ ليه تطرحه :lol:

خل الرجال يجرب :lol::lol:

Link to comment
  setAccountData ( playeraccount, "mute", playermute ) 

؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟

صح؟

حط يوزر الكونسل في قروب الادمن

ججرب الططريقةة ورد خخبر < اصصلاً ما يبيلها تجريب مبينةة :|

ذا يحفظ الميوت عن طريق الحساب اذا مو مسجل ما ينحفظ يعني !!

Link to comment
  setAccountData ( playeraccount, "mute", playermute ) 

؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟

صح؟

حط يوزر الكونسل في قروب الادمن

ججرب الططريقةة ورد خخبر < اصصلاً ما يبيلها تجريب مبينةة :|

ذا يحفظ الميوت عن طريق الحساب اذا مو مسجل ما ينحفظ يعني !!

خله يجرب :redhotevil:

Link to comment
function admin (message) 
     if message == "ممكن ادمنية" then 
          setPlayerMuted(source, true) 
          outputChatBox(getPlayerName(source).." لقد حصلت على ميوت دقيقة", root, 255,0,0) 
          setTimer(setPlayerMuted, 100000, 1, source, false) 
          setAccountData ( playeraccount, "mute", playermute ) 
     end 
end 
addEventHandler("onPlayerChat", root, admin) 

Link to comment

local MutedSerial = {} 
  
addEventHandler("onPlayerChat", root, 
function(msg) 
     if msg == "ممكن ادمنية" then 
          local serial = getPlayerSerial(source) 
          if MutedSerial[serial] then 
               killTimer(MutedSerial[serial]) 
               MutedSerial[serial] = nil 
          end 
          setPlayerMuted(source, true) 
          outputChatBox(getPlayerName(source).." لقد حصل على ميوت دقيقة", root, 255,0,0) 
          MutedSerial[serial] = setTimer(function(serial) 
               MutedSerial[serial] = nil 
               for _,player in ipairs(getElementsByType('player')) do 
                    if getPlayerSerial(player) == serial and isPlayerMuted(player) then 
                         setPlayerMuted(player, false) 
                         outputChatBox(getPlayerName(player).." لقد تم فك الميوت عن", root, 255,0,0) 
                    end 
               end 
          end,60000,1,serial) 
     end 
end) 
  
addEventHandler("onPlayerJoin", root, 
function() 
     local serial = getPlayerSerial(source) 
     if MutedSerial[serial] then 
          setPlayerMuted(source, true) 
     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...