• 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 1,976 11-07-2013, 13:41
Last Post: Nekochan
  !kill Plugin Hallla 1 1,028 09-07-2013, 22:30
Last Post: axel-le-meilleur
  Help About kill cam Howl3r 3 908 08-03-2013, 03:57
Last Post: Howl3r
  Help Insta kill possible? koro35 10 2,308 11-27-2012, 16:10
Last Post: 99IRock
  [Request] !kill hillbilly 7 1,425 09-30-2012, 17:10
Last Post: OzonE
  [Request] Rankup sound on kill hillbilly 12 1,935 09-16-2012, 11:08
Last Post: Ich1994
  [Request] Disable Friendly Fire and Enable Kill Cam on hardcore mode. Dumas 15 4,757 09-10-2012, 14:45
Last Post: OzonE
  [Release] Kill Confirmed - BO - BetaV0.2 rotceh_dnih 32 8,777 08-23-2012, 06:57
Last Post: rotceh_dnih
  [Request] Kill strike Dogs xsfd 3 1,022 08-18-2012, 11:41
Last Post: xsfd
  Help How to kill a player? archit 14 2,996 07-31-2012, 06:31
Last Post: master131

Forum Jump:


Users browsing this thread: 1 Guest(s)