Hey first at all I wanna need it to
if the man doesn't have PPT in his
clanPrefix, it should also check the
clanSuffix...
And it won't work of some bugs,
please fix it.
Thanks.
package PPT.Server
{
function GameConnection::OnConnection(%client)
{
if (%client.clanPrefix $= "PPT")
{
messageClient(%client,'',"\c3Welcome honered PPT Member!.");
messageClient(%client,'',"\c3You're will always be welcome,");
messageClient(%client,'',"\c3at Runeth's server.");
Parent::OnConnection(%client);
}
else
{
commandToClient(%client,'messageboxok',"<a:http://www.spation.co.uk/blockland/lotr.htm>PPT's Official Website.<a>");
MessageClient(%client,'',"\c2Welcome to \c0Runeth's PPT server. \c3Runeth\c2 last name was \"Hooga the Pirate\" if you didn't know.");
MessageClient(%client,'',"\c2Runeth isn't the leader of PPT, \c3Jervan\c2 is!. Respect all Admins/Super Admins and have fun.");
MessageClient(%client,'',"\c2For rules type \c0/rules\c2, thank you.");
Parent::onConnection(%client);
}
}
function serverCmdRules(%client)
{
Parent::serverCmdRules(%client);
{
MessageClient(%client,'',"\c6Under\c0 Counstuction!\c6 Check later, but thanks for typing.");
}
}
function serverCmdMessageSent(%client,%message)
{
Parent::serverCmdMessageSent(%client,%message); //the original MessageSent gets executed before the stuff under it...
if(%message $= "runeth sucks")
{
%client.player.kill();
messageAll('',"\c7SHP.\c3Runeth\c7.PPT\c6: Hell no! You're the one who sucks, " @ %client.name @ "!"); Think before you speak!");
//type return; if you don't want the message to be displayed
}
//Parent::serverCmdMessageSent(%client,%message);
//This would be executed after all the code above it.
}
}
};
ActivatePackage(PPT.Server);
or you can just check the file is in Attached...