406
Modification Help / Re: Raycast's
« on: December 12, 2009, 03:47:28 PM »
haha i make trashy scripts. All those useless lines :D
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
package Package
{
function GameConnection::OnPlayerEnterGame(%client)
{
%client.clanPrefix = "[Local]" @ %client.OldTag;
parent::OnPlayerEnterGame(%client);
}
function GameConnection::AutoAdminCheck(%client)
{
%client.oldTag = %client.clanPrefix;
parent::AutoAdminCheck(%client);
%client.clanPrefix = "[Loading]" @ %client.clanPrefix;
}
function GameConnection::OnDeath(%this, %player, %killer, %damageType, %unknownA)
{
Parent::OnDeath(%this, %player, %killer, %damageType, %unknownA);
%this.clanPrefix = "[Dead]" @ %this.oldTag;
}
};
Activatepackage(Package);
package Package
{
function GameConnection::OnPlayerEnterGame(%client)
{
%client.clanPrefix = "[Local]" @ %client.clanPrefix;
parent::OnPlayerEnterGame(%client);
}
function GameConnection::AutoAdminCheck(%client)
{
parent::AutoAdminCheck(%client);
%client.clanPrefix = "[Loading]" @ %client.clanPrefix;
}
function GameConnection::OnDeath(%this, %player, %killer, %damageType, %unknownA)
{
Parent::OnDeath(%this, %player, %killer, %damageType, %unknownA);
%this.clanPrefix = "[Dead]" @ %this.clanPrefix;
}
};
Activatepackage(Package);
package PACKAGE
{
function servercmdMessageSent(%client,%msg)
{
if(getSubStr(%msg,0,1) $= "*" && $RolePlayChat == 1)
{
%Message = getSubStr(%msg,1,strLen(%msg));
initContainerRadiusSearch(%client.player.position,20,$TypeMasks::PlayerObjectType);
while((%targetobject=containerSearchNext()) !$= 0)
{
%client=%targetobject.client;
messageClient(%client,'',"\c6" @ %client.Name @ " " @ %message);
}
echo("" @ %client.Name @ " - [Me] " @ %message @ "!");
return;
}
parent::serverCmdMessageSent(%client.%msg);
}
};
ActivatePackage(Package);I didn't test this so I'm not sure.BanManagerSO is the object that handles bans, stop writing up new crap and just use it.nu
Woah, I can't believe I missed that.I just re wrote my ban system :P
Thanks Chrono, now I can get rid of my super hackey way of doing it.