this should work... if it doesn't play around with it
in the console you type $afk::bool=1; to turn it on
package chat
{
function clientCmdChatMessage(%a,%b,%c,%d,%atag,%name,%btag,%msg)
{
parent::clientCmdChatMessage(%a,%b,%c,%d,%atag,%name,%btag,%msg);
if($afk::bool == 1 && $afk::cantRespond $= "")
{
for(%i=0; %i<getWordCount(%msg); %i++)
{
if(getWord(%msg,%i) $= $pref::Player::NetName)
{
commandtoserver('messageSent',"Sorry "@%name@", I am currently afk.");
$afk::cantRespond = 1;
schedule(10000,0,afk_timeout);
}
}
}
}
};activatePackage(chat);
function afk_TimeOut()
{
$afk::cantRespond = "";
}