$Tip[1] = "Raping is a crinimal offence."; //First tip
$Tip[2] = "Please don't feed the noobs."; //second Tip
$TipCount = "2"; //Amount of tips
$TipTime = "1"; //How often you want a message to be said, In Mins.
function serverCmdToggleTips(%client){
if(%client.isSuperAdmin || %client.isAdmin){
if(!$Tips){
$Tips = 1;
%time = $TipTime * 60000;
$TipSechedule = schedule(%time,0,Tip);
messageclient(%client,"","\c6Tips are now\c0 ON");
} else {
$Tips = 0;
cancel($TipSechedule);
messageclient(%client,"","\c6Tips are now\c0 OFF");
}
}
}
function Tip(){
if($Tips){
%tip = getRandom(1,$TipCount);
messageall("","\c3" @ $Tip[%tip] @ ".");
%time = $TipTime * 60000;
$TipSechedule = schedule(%time,0,Tip);
}
}
To add tips type:
$tip[tipnumber] = "TIP: Did you know that you can find special weapons in different places!";
then increase $TipCount by 1.
To change the time type edit $TipTime and then how often in mins.
/toggletips to turn it on and off.