Jump to content

[AYUDA] Freeze Chat / Desactivar Chat


lLinux

Recommended Posts

  • MTA Team

Ejemplo de la wiki:

-- define another handler function that cancels the event so that the message won't be delivered through the  
function blockChatMessage() 
    cancelEvent() 
end 
-- attach it as a handler to onPlayerChat 
addEventHandler( "onPlayerChat", getRootElement(), blockChatMessage ) 

Link to comment
Ejemplo de la wiki:
-- define another handler function that cancels the event so that the message won't be delivered through the  
function blockChatMessage() 
    cancelEvent() 
end 
-- attach it as a handler to onPlayerChat 
addEventHandler( "onPlayerChat", getRootElement(), blockChatMessage ) 

Lo siento eso no funciona. ya he intentado pero aparece el mensaje de todas maneras

Link to comment
Estas usando freeroam?

Ya logre solucionarlo mira

function chatfreze (message, messageType) 
 if (messageType == 0) then 
 cancelEvent() 
 outputChatBox("#00B3C7ExtremeBattle >#ffffff El chat esta bloqueado ", source, 255, 255, 255, true) 
end 
end 
addEventHandler("onPlayerChat", getRootElement(), chatfreze) 

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...