Jump to content

end


Recommended Posts

Posted

آلسلآمم عليكمم

آبي تصحيح لـ end

هنآ ..

لو يجي بآلتآيمر آند آصير متلخبط !! .. :mrgreen:

addEventHandler ( "onPlayerChat", root,  
    function ( msg, msgType )  
        if ( msg == "" ) and ( msgType == 2 ) or ( msgType == 1 ) then  
     setPlayerMuted(source,true) 
  setTimer ( 
    function() 
  setPlayerMuted(source,false) 
    end,15000,0) 
  end 
 end 
) 
  

Posted

جرب

addEventHandler ( "onPlayerChat", root, 
    function ( msg, msgType ) 
        if ( msg == "" ) and ( msgType == 2 ) or ( msgType == 1 ) then 
     setPlayerMuted(source,true) 
setTimer (setPlayerMuted,15000,1,source,false) 
  end 
 end) 
  
Posted

-- # Server Side : 
addEventHandler ( "onPlayerChat", root,  
    function ( msg, msgType )  
        if ( msg == "" and msgType == 1 or msgType == 2  ) then 
     setPlayerMuted( source,true ) 
setTimer (  
    function ( source ) 
        setPlayerMuted ( source,false ) 
    end,15000,1,source 
    ) 
    end 
end 
) 
Posted

مآ آشتغل وضضففتهة للأدممينةة ..

آبغآهه يعطي ميوت ل لآعب لمآ يكتب آي كلمةة , 15 ثآنيةة ..

Posted

-- # Server Side : 
addEventHandler ( "onPlayerChat", root,  
    function ( _, msgType )  
        if ( msgType == 1 or msgType == 2  ) then 
     setPlayerMuted( source,true ) 
setTimer (  
    function ( source ) 
        setPlayerMuted ( source,false ) 
    end,15000,1,source 
    ) 
    end 
end 
) 

تأكد من نوع الشات msgType .. :mrgreen:

Posted

آبيهة ع آلـ Say

+

Team

ولآههنت ليش مآ آشتغل ذآ ؟

  
addEventHandler ( "onPlayerChat", root, 
    function ( _, msgType ) 
        if ( msgType == 1 or msgType == 2  ) then 
     setPlayerMuted( source,true ) 
outputChatBox ( "#FF0000Wait 15 Seconds !", source, 255, 255, 255, true ) 
setTimer ( 
    function ( source ) 
        setPlayerMuted ( source,false ) 
    end,5000,1,source 
    ) 
    end 
end 
) 

Posted

-- # Server Side : 
addEventHandler ( "onPlayerChat", root,  
    function ( _, msgType )  
        if ( msgType == 0 or msgType == 2  ) then 
        outputChatBox ( "#FF0000Wait 15 Seconds !", source, 255, 255, 255, true ) 
        setPlayerMuted( source,true ) 
setTimer (  
    function ( source ) 
        setPlayerMuted ( source,false ) 
    end,15000,1,source 
    ) 
    end 
end 
) 
Posted

غيرت آلميوت ..

وبغيتهة ..

كآنسل آفنت ..

يعني مثلآ لو كتبت بآلشآت آي شي ..

يجي بآلشآت بس لو آكتب مرةة ثآنيةة بآلشآت يققلي وآيت ..

وهكذآ ,

كل مآ آحآول آتكلم بآلشآت يققلي وآيت !

  
addEventHandler ( "onPlayerChat", root, 
    function ( _, msgType ) 
        if ( msgType == 0 or msgType == 2  ) then 
        outputChatBox ( "#FFFF00Wait 15 Seconds !", source, 255, 255, 255, true ) 
        cancelEvent() 
setTimer ( 
    function ( ) 
        cancelEvent() 
    end,15000,1,source 
    ) 
    end 
end 
) 

Posted

تققريبآ آلكود حقق آلميوت كويسس ..

بس آبيهة مآ يطلع

you are muted

بآلشآت ..

بدآل ذي

Wait ...

Posted

-- # Server Side : 
  
local TimeChecker = {   } 
local TheLastMessage = {        } 
  
addEventHandler("onPlayerChat",getRootElement(), 
    function ( msg,type ) 
        if ( type == 0 or type == 2 ) then 
                if TimeChecker[source] and TimeChecker[source] + 15000 > getTickCount() then 
                cancelEvent (   ) 
                 outputChatBox("Wait 15 Second !!",source,255,0,0) 
                return 
            else 
                TimeChecker[source] = getTickCount() 
            end 
            if TheLastMessage[source] and TheLastMessage[source] == msg then 
                cancelEvent (   ) 
                outputChatBox("Stop Send The Same Message !?",source, 255, 0, 0) 
            return 
                else 
                    TheLastMessage[source] = msg 
            end 
        end 
    end 
) 

لم يتم التجربة .. :)

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