Jump to content

x[ استفسار ]x في كود


Recommended Posts

local text = "كيلر" 
  
addEventHandler("onPlayerChat", root, 
    function ( msg ) 
        if string.find(msg,text) then 
            if not isPlayerMuted ( source ) then 
                setPlayerMuted(source, true) 
                outputChatBox("تم صكك ميوت", source, 255, 0, 0, true) 
            end 
        end 
    end ) 
Link to comment

جرب من زمان مابرمج :

Words = { "ياكيلر", "كيلر" } 
Mute = 1 -- عدد الدقائق لازالة الميوت 
  
function RemoveMute ( text ) 
    setPlayerMuted ( source, false ) 
    outputChatBox ( .. text , source, 255, 255, 0, true ) 
end 
  
addEventHandler ( "onPlayerChat", root, function ( msg, mtype )  
    for i, v in ipairs ( Words ) do 
        if ( mtype == 0 ) or ( mtype == 2 ) then 
            if string.find ( msg, v ) then 
        if not ( isPlayerMuted ( source ) ) then 
    setPlayerMuted ( source, true ) 
        outputChatBox ( "دقيقة" tostring ( Mute ) "تم صكك ميوت لمدة", source, 255, 255, 0, true ) 
            setTimer ( RemoveMute, Mute * 10000, 1, "تم ازالة الميوت" ) 
                end 
            end 
        end 
    end 
end ) 
Edited by Guest
Link to comment

Words = { "ياكيلر", "كيلر" } 
  
addEventHandler ( "onPlayerChat", root, function ( msg, mtype ) 
    for i, v in ipairs ( Words ) do 
        if ( mtype == 0 ) or ( mtype == 2 ) then 
            if string.find ( msg, v ) then 
        if not ( isPlayerMuted ( source ) ) then 
    setPlayerMuted ( source, true ) 
        outputChatBox ( "تم صكك ميوت", source, 255, 255, 0, true ) 
                end 
            end 
        end 
    end 
end ) 

لاتنسى تحطه في قروب الادمن

Link to comment
حطه في قروب الادمن

resouce.اسم المود

Words = { "ياكيلر", "كيلر" } 
  
addEventHandler ( "onPlayerChat", root, function ( msg, mtype ) 
    for i, v in ipairs ( Words ) do 
        if ( mtype == 0 ) or ( mtype == 2 ) then 
            if string.find ( msg, v ) then 
        if not ( isPlayerMuted ( source ) ) then 
    setPlayerMuted ( source, true ) 
        outputChatBox ( "تم صكك ميوت", source, 255, 255, 0, true ) 
                end 
            end 
        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...