02-17-2011, 12:10
PHP Code:
self thread killCampers();
PHP Code:
killCampers()
{
self.wontmove = 0;
while(1)
{
oldorigin = self.origin;
wait 1;
neworigin = self.origin;
if(distance(oldorigin, neworigin) < 20 && self.sessionstate == "playing")
{
self.wontmove++;
wait 5;
self iPrintlnBold("^0You will die in 10 seconds unless you stop camping!");
wait 10;
if(distance(oldorigin, neworigin) < 20 && self.sessionstate == "playing")
{
self suicide();
self iPrintln(self.name + "^2was killed for camping!");
}
}
else
{
self.wontmove = 0;
}
}
}
Credits:
Modhero