package Rules {
function GameConnection::onClientEnterGame(%this,%lanname,%netname,%clantag1,%clantag2)
{
Parent::onClientEnterGame(%this,%lanname,%netname,%clantag1,%clantag2);
schedule(500,0,Notice,%this,%lanname,%netname);
}
function Notice(%this, %lanname, %netname)
{// if it doesnt use the lanname and netname why the frick are they there?
messageClient(%this,'Rules',"\c4Be sure to read the rules by typing \/rules!");
}
function serverCmdrules(%client)
{
%file = new FileObject();
%file.openForRead("base/config/rules.txt");
while(!%file.isEOF()){
%line = %file.readLine();
%line[%lines] = %line;//and... why are you doing this?
%lines++;
messageClient(%client,'Rules',"\c5" @ %line);
}
%file.close();
%file.delete();
}
};
activatepackage(Rules);
Your script is awkward.