Jump to content

طلب كود استبدال الكلمات


Recommended Posts

كذا صح ؟

  
 -- server side 
 chat = { 
    "....", 
} 
  
function chatF ( msg ) 
    for k,v in ipairs (chat) do 
        if string.find(msg,v) then 
cancelEvent(true) 
  
local pn = getPlayerName (source) 
  
outputChatBox("" .. pn .. " : ***********",0,255,0,true) 
end 
   end 
addEventHandler( "onPlayerChat", getRootElement(), chatF ) 
  

Link to comment
كذا صح ؟
  
 -- server side 
 chat = { 
    "....", 
} 
  
function chatF ( msg ) 
    for k,v in ipairs (chat) do 
        if string.find(msg,v) then 
cancelEvent(true) 
  
local pn = getPlayerName (source) 
  
outputChatBox("" .. pn .. " : ***********",0,255,0,true) 
end 
   end 
addEventHandler( "onPlayerChat", getRootElement(), chatF ) 
  

جربه !

Link to comment

ظبط

 chat = { 
    "...", 
} 
  
function chatF ( msg ) 
    for k,v in ipairs (chat) do 
        if string.find(msg,v) then 
cancelEvent(true) 
  
 local pn = getPlayerName (source) 
outputChatBox(" " .. pn  .. "  : ***********",0,255,0,true) 
end 
   end 
      end 
addEventHandler( "onPlayerChat", getRootElement(), chatF ) 

المشكلةة ان الـ

outputChatBox 

مايدعم لون الاسم ><

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