Jump to content

MTA:SA logIn logOut messages


vinigas

Recommended Posts

@Walid No... MrTasty's solution would work just fine.

To put it into an example:

function onChatMessage(text)
	if(string.sub(text,1,6) == "login:" or string.sub(text,1,7) == "logout:") then -- Check if it contains login: or logout: strings
		cancelEvent() -- Cancel it
	end
end
addEventHandler("onClientChatMessage",root,onChatMessage)

 

Edited by GTX
  • Like 2
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...