luiz filipe Posted June 10, 2019 Posted June 10, 2019 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?
luiz filipe Posted June 10, 2019 Author Posted June 10, 2019 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 )
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now