This is my announcer (as newsbot) need to be fixed cause when i enter
Announce("TXT"); ill say txt once but if it repeats its blank, how do i get this right.
edit: fixed by greek2me, thank you greek2me
Heres my code
function announce(%msg)
{
cancel($Announcertimer);
commandtoserver('messagesent',"[NewsBot]: " SPC %msg);
$annoucetimer = schedule(100000,0,announce,%msg);
}
function announceon()
{
activatepackage("Client_announce");
echo("its on");
}
function announceoff()
{
deactivatepackage("Client_announce");
echo("its off");
}