init( modVersion ) {

	thread Rules();
}

Rules()
{
level endon("disconnect");

	//rules...
	rules = [];
	rules[0] = "Don't flame insult Admins or Players";
	rules[1] = "Don't spam";
	rules[2] = "Don't cheat!";
	rules[3] = "Don't beg for Admin/VIP/Moderator or Spawn";
	rules[4] = "Listen to admins!";
	rules[5] = "No Knife in Sniper room!";
	rules[7] = "Don't glitch or be kicked!";
	rules[8] = "Respect turns or be kicked!";
	rules[9] = "Don't Advertising or be kicked!";

	if( isDefined( level.logoText ) )
		level.logoText destroy();

	level.logoText = newHudElem();
	level.logoText.y = 12;
	level.logoText.alignX = "center";
	level.logoText.alignY = "middle";
	level.logoText.horzAlign = "center_safearea";
	level.logoText.color = (1,1,1);
	level.logoText.glowColor = (1.0, 0.0, 0.0);

	level.logoText.alpha = 0;
	level.logoText.sort = -3;
	level.logoText.fontScale = 1.6;
	level.logoText.archieved = true;

	i = 0;
	
	for(;;)
	{
		level.logoText fadeOverTime(1);
		level.logoText.alpha = 1;
		level.logoText setText(rules[i]);
		wait 5;
		level.logoText fadeOverTime(1);
		level.logoText.alpha = 0;
		wait 1;
		if(i == rules.size) {
			i = 0;
		} else {
			i++;
		}
	}
}