Originally Posted by
B4M
Moved to help.
Knew it
And BTW check the iSnipe mods they have a Anti-Camp code in their.
I recommend the most recent one?
Code:
QuickScope()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand("[{+toggleads_throw}]", "+toggleads_throw");
while(1) {
self waittill("[{+toggleads_throw}]");
wait 0.3;
self allowADS(false);
self allowADS(true);
self allowADS(false);
self allowADS(true);
wait 0.0005; }
They used my code in it This put a smile on my face
back to the topic:
Code:
AntiCamp()
{
self endon("disconnect");
self endon("death");
for(;;)
{
self.before = self getorigin();
wait 1000;
self.after = self getorigin();
if( ( distance(self.before, self.after) < 100) ) {
announcement("^1" + (self.name) + " ^7is camping and will be killed in ^15.");
}
wait 1;
self.after = self getorigin();
if( ( distance(self.before, self.after) < 100) ) {
announcement("^1" + (self.name) + " ^7is camping and will be killed in ^14.");
}
wait 1;
self.after = self getorigin();
if( ( distance(self.before, self.after) < 100) ) {
announcement("^1" + (self.name) + " ^7is camping and will be killed in ^13.");
}
wait 1;
self.after = self getorigin();
if( ( distance(self.before, self.after) < 100) ) {
announcement("^1" + (self.name) + " ^7is camping and will be killed in ^12.");
}
wait 1;
self.after = self getorigin();
if( ( distance(self.before, self.after) < 100) ) {
announcement("^1" + (self.name) + " ^7is camping and will be killed in ^11.");
}
wait 1;
self.after = self getorigin();
if( ( distance(self.before, self.after) < 100) ) {
announcement("^1" + (self.name) + "^7 got killed for camping too long!");
self suicide();
}
}
}