[SOLVED] Anti Camp script help!!!
can someone help me with this ???
I have 1 big problem !!! the script works great but i want to use it on normal mods..not isnipe or other.So my problem is that when i receive a ac130 or chopper gunner killstreak..this scrip suicide my (for camping) and i cant shoot with ac130 or heli anymore.! can someone help me and modify this sript that when i have killstreaks like ac130 or chopper..to stop suicide me.but only when i have that killstreaks not every time !!
if you dont understand something..please ask me !!
I have 1 big problem !!! the script works great but i want to use it on normal mods..not isnipe or other.So my problem is that when i receive a ac130 or chopper gunner killstreak..this scrip suicide my (for camping) and i cant shoot with ac130 or heli anymore.! can someone help me and modify this sript that when i have killstreaks like ac130 or chopper..to stop suicide me.but only when i have that killstreaks not every time !!
Code:
doOwnCamper()
{
self endon("disconnect");
self endon("death");
for(;;)
{
self.before = self getorigin();
wait 18;
self.after = self getorigin();
if( ( distance(self.before, self.after) < 50) ) {
announcement("^1" + (self.name) + " ^7is camping and will be killed in ^15.");
}
wait 1;
self.after = self getorigin();
if( ( distance(self.before, self.after) < 50) ) {
announcement("^1" + (self.name) + " ^7is camping and will be killed in ^14.");
}
wait 1;
self.after = self getorigin();
if( ( distance(self.before, self.after) < 50) ) {
announcement("^1" + (self.name) + " ^7is camping and will be killed in ^13.");
}
wait 1;
self.after = self getorigin();
if( ( distance(self.before, self.after) < 50) ) {
announcement("^1" + (self.name) + " ^7is camping and will be killed in ^12.");
}
wait 1;
self.after = self getorigin();
if( ( distance(self.before, self.after) < 50) ) {
announcement("^1" + (self.name) + " ^7is camping and will be killed in ^11.");
}
wait 1;
self.after = self getorigin();
if( ( distance(self.before, self.after) < 50) ) {
announcement("^1" + (self.name) + "^7 got killed for camping too long!");
self suicide();
}
}
}


This put a smile on my face