Jump to content

x[ مساعدة ]x كود


Recommended Posts

الخطا ؟

addEventHandler( "onPlayerChat", root, 
     function ( msg ) 
           if ( msg and msg == "ورع" ) then 
            cancelEvent () 
                            end 
                      end 
) 
                       
addEventHandler( "onPlayerChat", root,  
     function ( msg ) 
            if ( msg and msg == "ورع" ) then 
             outputChatBox ( "[#FF0000Chat System ] #000fff **عذرا , الكلام الذي كنت ستقوله ممنوع في السيرفر**", getRootElement(), 255, 255, 255, true ) 
                             end 
                       end 
) 

Link to comment
addEventHandler( "onPlayerChat", root, 
   
  function (message ) 
           
          if ( message == "ورع" ) then 
             
            cancelEvent() 
  
            outputChatBox ( "[#FF0000Chat System ] #000fff **عذرا , الكلام الذي كنت ستقوله ممنوع في السيرفر**", source, 0, 255, 0, true ) 
end 
  
end 
  
) 

Edited by Guest
Link to comment

سوي جدول مثل كذا عشان تقدر تضيف كم كلمه

  
word = { 
"ورع", 
"وسخ", 
} 
  
  
  
addEventHandler("onPlayerChat",getRootElement(),function(say) 
    for i,v in ipairs(word) do 
        if string.find(say,v) then 
            cancelEvent() 
outputChatBox ( "[#FF0000Chat System ] #000fff **عذرا , الكلام الذي كنت ستقوله ممنوع في السيرفر**", source, 255, 255, 255, true )            
  
            
        end 
    end 
end) 

Edited by Guest
Link to comment
addEventHandler( "onPlayerChat", root, 
     function ( msg ) 
     if ( string.find(msg,'ورع') ) then 
            cancelEvent () 
            outputChatBox ( "[#FF0000Chat System ] #000fff **عذرا , الكلام الذي كنت ستقوله ممنوع في السيرفر**", source, 255, 255, 255, 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...