Jump to content

preciso de ajuda com chat para rp


Recommended Posts

Entao estou usando um chat rp que tem foradorp, anonimo e twitter mais o chat principal do t ainda ta funcionando queria saber como faço para bloquear o chat do t deixar apenas para fazer comando alguem por favor me ajuda ?

 

So I'm using a rp chat that has foradorp, anonymous and twitter plus the main t chat is still working I wanted to know how do I block the chat from leaving t just to do command Someone please help me?

Link to comment

galera ja consegui aqui não precisa mais

 

local chat_range = 100 

function isPlayerInRangeOfPoint(player,x,y,z,range) 
   local px,py,pz=getElementPosition(player) 
   return ((x-px)^2+(y-py)^2+(z-pz)^2)^0.5<=range 
end 
 
addEventHandler ("onPlayerChat", root,
    function (msg, type)
        if type == 0 then
            cancelEvent ()
        end    
    end
)

 

local chat_range = 100 

function isPlayerInRangeOfPoint(player,x,y,z,range) 
   local px,py,pz=getElementPosition(player) 
   return ((x-px)^2+(y-py)^2+(z-pz)^2)^0.5<=range 
end 
 
addEventHandler ("onPlayerChat", root,
	function (msg, type)
		if type == 0 then
			cancelEvent ()
		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...