Code: [Select]datablock TriggerData(SafeZone){ tickPeriodMS = 100;};function SafeZone::onLeaveTrigger(%this,%trigger,%obj){ messageclient(%obj.client,'',"\c1Entered the \c2Safe Zone"); %obj.client.isSafe = 1;}function SafeZone::onEnterTrigger(%this,%trigger,%obj){ messageclient(%obj.client,'',"\c1Left the \c2Safe Zone"); %obj.client.isSafe = 0;}function SafeZone::onTickTrigger(%this,%trigger, %obj){ Parent::onTickTrigger(%this,%trigger);}package SafeZoneToggle {function serverCmdSelf Delete(%client) { if(%client.isSafe) { messageclient("\c1Self Delete is disabled in the \c2Safe Zone."); } else { parent::serverCmdSelf Delete(%client); } } function ProjectileData::Damage(%this, %obj, %col, %fade, %pos, %normal) { if(%this.isSafe) { return; } Parent::Damage(%this, %obj, %col, %fade, %pos, %normal); } function ProjectileData::radiusDamage(%this, %obj, %col, %fade, %pos, %normal) { if(%this.isSafe) { return; } Parent::radiusDamage(%this, %obj, %col, %fade, %pos, %normal); } function WeaponImage::onFire(%this,%obj,%slot) { if(%this.isSafe) { return; } Parent::onfire(%this, %obj, %slot); }};activatepackage(SafeZoneToggle);This will stop people from being killed by projectiles, they can still be killed by radius damage or whatever.
datablock TriggerData(SafeZone){ tickPeriodMS = 100;};function SafeZone::onLeaveTrigger(%this,%trigger,%obj){ messageclient(%obj.client,'',"\c1Entered the \c2Safe Zone"); %obj.client.isSafe = 1;}function SafeZone::onEnterTrigger(%this,%trigger,%obj){ messageclient(%obj.client,'',"\c1Left the \c2Safe Zone"); %obj.client.isSafe = 0;}function SafeZone::onTickTrigger(%this,%trigger, %obj){ Parent::onTickTrigger(%this,%trigger);}package SafeZoneToggle {function serverCmdSelf Delete(%client) { if(%client.isSafe) { messageclient("\c1Self Delete is disabled in the \c2Safe Zone."); } else { parent::serverCmdSelf Delete(%client); } } function ProjectileData::Damage(%this, %obj, %col, %fade, %pos, %normal) { if(%this.isSafe) { return; } Parent::Damage(%this, %obj, %col, %fade, %pos, %normal); } function ProjectileData::radiusDamage(%this, %obj, %col, %fade, %pos, %normal) { if(%this.isSafe) { return; } Parent::radiusDamage(%this, %obj, %col, %fade, %pos, %normal); } function WeaponImage::onFire(%this,%obj,%slot) { if(%this.isSafe) { return; } Parent::onfire(%this, %obj, %slot); }};activatepackage(SafeZoneToggle);
Dammit, I can't edit my posts. (Yeah, i know, nobody cans..)So now I have safe zone for suiciding, now I need safe zone for PvP. Moar cookies.