The Exiled

Shunned by Man, Accepted by Gods
* FAQ    * Search   * Members
* Login   * Register
It is currently Thu Mar 28, 2024 10:34 am 

 View unanswered posts | View active topics


 Board index » General Area » Mapping
Post new topic Reply to topic Users browsing this forum: No registered users and 3 guests
Author
Message
TE-Krogoth


User avatar
Joined: Tue Jun 07, 2005 8:01 am
Posts: 2092
Location: Texas
Post Posted: Mon May 01, 2006 8:07 pm    Post subject: No Kill Zone
Reply with quote
 
This makes it so that people in a trigger won't get hurt, good for NZ's on duel maps.

All credit goes to Plasmatic for this code.


Code:
function NoKillZone::onEnter(%this,%player)
{
Client::sendMessage(Player::getClient(%player),0,"Welcome to town. Killing is not allowed in this area. ");
%player.shieldStrength = 99;
%player.Shielded = true;
}

function NoKillZone::onLeave(%this,%player)
{
Client::sendMessage(Player::getClient(%player),0,"You have left town. ");
%player.shieldStrength = 0;
%player.Shielded = false;
}



Image
Image
 Top Offline
Profile WWWYIM
Display posts from previous:  Sort by  
Post new topic Reply to topic Board index » General Area » Mapping
Previous topic :: Next topic  
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group