function serverCMDpm(%client, %input, %chat1, %chat2, %chat3, %chat4, %chat5, %chat6, %chat7, %chat8, %chat9, %chat10, %chat11, %chat12)
{
%target = findClientByName(%input);
%message = %chat1 SPC %chat2 SPC %chat3 SPC %chat4 SPC %chat5 SPC %chat6 SPC %chat7 SPC %chat8 SPC %chat9 SPC %chat10 SPC %chat11 SPC %chat12;
if(!isObject(%target))
{
%client.chatMessage("Client not found!");
return false;
}
else
{
%target.chatMessage("\c4Message from "@%client.name@"\c6: "@%message);
%client.chatMessage("\c4Message to "@%target.name@"\c6: "@%message);
echo("Message from "@%client.name@" to "@%target.name);
return true;
}
}
How can I modify this to where after you send a PM, you have to wait at least 10 seconds before sending out another one?