Code: Select all
function onClientMessage(%client, %msg){ if(%client) $lastClientMessage = %client; return %client == 2048 || $ShowChat; }
bindCommand(keyboard, make, l, to, "$ShowChat = !$ShowChat;");
If I remember correctly, the bindcommand needs to be placed in the config file with other bind commands... Might work in autoexec.cs.