Did the method have some way to add parsable functions?
----
Anyone knows how to?
Scripts
Adding 'saycommands' with /
Adding 'saycommands' with /
1

parse because the commands starting with / will directly be passed to the parser. This hook will only work as server though. You can't use this technique as client. says = function(id,txt)
	if txt:sub(1) == '/' then
		if txt:sub(2) == 'armor' then
			parse('equip '..id..' 83')
		else
			msg2(id,'unknown command: '..txt:sub(2))
		end
	end
end
addhook('say','says')
Gajos: It's already been said that it's impossible to use them for chat commands.
EngiN33R
oxytamine has written
EngiN33R
oxytamine: Because posting solutions for someone that has a problem is totally not what a forum is for.
Jynxxx has written
Conscience has written
Conscience has written
oxytamine: Because posting solutions for someone that has a problem is totally not what a forum is for.
oxytamine has written
Jynxxx has writtenif not player(id,'rcon') then 	player(id,'rcon') = true 	if cmd == 'armor' then 		* command * 	end 	player(id,'rcon') = false else 	if cmd == 'armor' then 		* command * 	end end
Gajos: Just stop. It can't be done. player(id,'rcon') = true
false = true

mafia_man, you're lead developer.
1
