Quark and I recently found out another way we could find if the client is under flood protection, and it worked!
package TEST
{
function serverCmdMessageSent(%client, %text)
{
%time = getSimTime();
%spamTime = %client.spamProtectStart;
if(%time - %spamTime < 10000 || %text $= %client.lastMsgSent && !%client.isAdmin)
{
cancel(%client.lastMsgSentSchedule);
%client.lastMsgSentSchedule = schedule(15000,0,eval,%client @ ".lastMsgSent = '';");
}
else
{
//code goes here
}
%client.lastMsgSent = %text;
parent::serverCmdMessageSent(%client, %text);
}
};
activatepackage(TEST);
Reguardless, thank you all for your help.