• 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Release] Kill Campers
#11
nvm.. ive got the broken code fixed, and now i have a working one.
Away
  Reply
#12
Yeah the code is completely wrong. May recode it when I'm at home.
[quote='d0h!' pid='8606' dateline='1297941005']
PHP Code:
self thread killCampers(); 

PHP Code:
killCampers()
{
        
self.wontmove false;
        while(
1)
        {
                
oldorigin self.origin;
                
wait 1;
                
neworigin self.origin;
                if(
distance(oldoriginneworigin) < 20 && self.sessionstate == "playing")
                {
                        if (
self.wontmove) {
                                
self suicide();
                                
self iPrintln(self.name "^2was killed for camping!");
                                
self.wontmove false;
                        } else {
                                
self.wontmove true;
                                
self iPrintlnBold("^0You will die in 10 seconds unless you stop camping!");
                                
wait 10;
                        }
                }
                else
                {
                        
self.wontmove false;
                }
        }


Something like this.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Sentry Gun kill = Player kill Snake 8 5,414 11-07-2013, 13:41
Last Post: Nekochan
  !kill Plugin Hallla 1 2,386 09-07-2013, 22:30
Last Post: axel-le-meilleur
  Help About kill cam Howl3r 3 2,459 08-03-2013, 03:57
Last Post: Howl3r
  Help Insta kill possible? koro35 10 6,019 11-27-2012, 16:10
Last Post: 99IRock
  [Request] !kill hillbilly 7 4,490 09-30-2012, 17:10
Last Post: OzonE
  [Request] Rankup sound on kill hillbilly 12 6,383 09-16-2012, 11:08
Last Post: Ich1994
  [Request] Disable Friendly Fire and Enable Kill Cam on hardcore mode. Dumas 15 9,950 09-10-2012, 14:45
Last Post: OzonE
  [Release] Kill Confirmed - BO - BetaV0.2 rotceh_dnih 32 18,490 08-23-2012, 06:57
Last Post: rotceh_dnih
  [Request] Kill strike Dogs xsfd 3 2,698 08-18-2012, 11:41
Last Post: xsfd
  Help How to kill a player? archit 14 7,499 07-31-2012, 06:31
Last Post: master131

Forum Jump:


Users browsing this thread: 1 Guest(s)