91
General Discussion / Dead servers=v11?
« on: December 24, 2008, 10:20:19 PM »
Nvm just internet fail. discuss if you like
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 ShootOnClicks_Pack
{
function armor::onTrigger(%db,%obj,%slot,%val)
{
%mount = %obj.getObjectMount();
if(isObject(%mount))
{
if(%slot==0)
{
if(%mount.getDataBlock() == Bulldozervehicle.getId())
{
%client = %obj.client;
if(%client.isAdmin == 1 || %client.isSuperAdmin == 1)
{
if(%val)
{
if($Sim::Time<%obj.client.SOC_LastFireTime)
{
return;
}
}
%obj.SOC_Shoot(%slot,%val);
}
else
{
centerprint(%client,"You need to be an admin to clear bricks.","1","3");
//return;
}
//return;
}
}
}
return Parent::onTrigger(%db,%obj,%slot,%val);
}
};
ActivatePackage(ShootOnClicks_Pack);