Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 28

Thread: Anti shark script

  1. #11

    Default

    merge both torso files

    edit:

    open mike torso from both pk3 files and search for this part

    Code:
    // same as FINISHED_GET_OFF_LADDER, except that the player is jumping off
    state JUMP_OFF_LADDER
    {
    	movetype legs
    	
    	entrycommands
    	{
    	iprint JUMP_OFF_LADDER
    		unattachfromladder
    		forcelegsstate FALL
    		
    
    		safeholster 0 // pull weapon back out if we put it away to get on the ladder
    		jumpxy -70 0 150
    	}
    if 1 torso file has an extra line added... add it to the other torso file and try that
    Last edited by Slimbips {sfx}; February 8th, 2016 at 11:51 AM.

  2. #12

    Default

    so just use this
    Code:
    if(self.sharkcheck==1)
    {
    	end
    }
    else
    {
    	self.sharkcheck=1
    }
    
    local.ladder = self.origin
    
    local.within = 1
    
    while(isalive self && local.within == 1)
    {
    waitframe
    		
    	local.radius = 10 // 200.0 * 200.0
    	local.isin = vector_within self.origin local.ladder local.radius
    	
    	if(local.isin!=1)
    	{
    		local.within = 0
    	}
    
    
    }
    	local.movement = ( self getmovement )
    	local.position = ( self getposition )
    		 
    	if(local.movement == "standing" && local.position == "standing")
    	{
    		local.flags=0
    		if(self.velocity[0] > 0 ||  self.velocity[0] < 0)
    		{
    			local.flags++
    		}
    
    		if(self.velocity[1] > 0 ||  self.velocity[1] < 0)
    		{
    			local.flags++
    		}
    
    		if(self.velocity[2] > 0 ||  self.velocity[2] < 0)
    		{
    			local.flags++
    		}
    
    		if(local.flags > 1)
    		{
    			self iprint "you were killed for attempting sharking" 1
    			self stufftext "say I TRIED TO SHARK"
    			self kill
    		}			
    	}
    
    	self.sharkcheck=0
    end
    save as antishark.scr exec from where ever it will ill player and post message.And I know it works

  3. #13

    Default

    Quote Originally Posted by Slimbips View Post
    merge both torso files

    edit:

    open mike torso from both pk3 files and search for this part

    Code:
    // same as FINISHED_GET_OFF_LADDER, except that the player is jumping off
    state JUMP_OFF_LADDER
    {
    	movetype legs
    	
    	entrycommands
    	{
    	iprint JUMP_OFF_LADDER
    		unattachfromladder
    		forcelegsstate FALL
    		
    
    		safeholster 0 // pull weapon back out if we put it away to get on the ladder
    		jumpxy -70 0 150
    	}
    if 1 torso file has an extra line added... add it to the other torso file and try that
    Hello mate Seems its working now When i jump in ladder to shark there are iprint message JUMP_OFF_LADDER and not allow me to do Thanks for your help

  4. #14

    Default

    Quote Originally Posted by easymeat View Post
    so just use this
    Code:
    if(self.sharkcheck==1)
    {
    	end
    }
    else
    {
    	self.sharkcheck=1
    }
    
    local.ladder = self.origin
    
    local.within = 1
    
    while(isalive self && local.within == 1)
    {
    waitframe
    		
    	local.radius = 10 // 200.0 * 200.0
    	local.isin = vector_within self.origin local.ladder local.radius
    	
    	if(local.isin!=1)
    	{
    		local.within = 0
    	}
    
    
    }
    	local.movement = ( self getmovement )
    	local.position = ( self getposition )
    		 
    	if(local.movement == "standing" && local.position == "standing")
    	{
    		local.flags=0
    		if(self.velocity[0] > 0 ||  self.velocity[0] < 0)
    		{
    			local.flags++
    		}
    
    		if(self.velocity[1] > 0 ||  self.velocity[1] < 0)
    		{
    			local.flags++
    		}
    
    		if(self.velocity[2] > 0 ||  self.velocity[2] < 0)
    		{
    			local.flags++
    		}
    
    		if(local.flags > 1)
    		{
    			self iprint "you were killed for attempting sharking" 1
    			self stufftext "say I TRIED TO SHARK"
    			self kill
    		}			
    	}
    
    	self.sharkcheck=0
    end
    save as antishark.scr exec from where ever it will ill player and post message.And I know it works
    Hello i tried yours mate but got errors in log console :
    Code:
    ^~^~^ Script Error: bad horizontal alignment string for huddraw_align.
    
    
    if(self.sharkcheck==1) (global/antishark.scr, 1)
    if(self^
    
    ^~^~^ Script Error: self is NULL
    
    	self.sharkcheck=1 (global/antishark.scr, 7)
    	^
    
    ^~^~^ Script Error: self is NULL
    
    local.ladder = self.origin (global/antishark.scr, 10)
    local.ladder = self^
    
    ^~^~^ Script Error: Field 'origin' applied to NULL listener
    
    	local.movement = ( self getmovement ) (global/antishark.scr, 28)
    	local.movement = ( self ^
    
    ^~^~^ Script Error: command 'getmovement' applied to NULL listener
    
    	local.position = ( self getposition ) (global/antishark.scr, 29)
    	local.position = ( self ^
    
    ^~^~^ Script Error: command 'getposition' applied to NULL listener
    
    	self.sharkcheck=0 (global/antishark.scr, 57)
    	^

  5. #15

    Default

    Anti shark work now fine but there are way to let the player die when he try it in the ladder ? Not only to send him iprint message :
    Code:
    // same as FINISHED_GET_OFF_LADDER, except that the player is jumping off
    state JUMP_OFF_LADDER
    {
    	movetype legs
    	
    	entrycommands
    	{
    	iprint JUMP_OFF_LADDER
    		unattachfromladder
    		forcelegsstate FALL
    		
    
    		safeholster 0 // pull weapon back out if we put it away to get on the ladder
    		jumpxy -70 0 150
    	}
    Thanks

  6. #16

    Default

    maybe execute a kill script from there

    Code:
    // same as FINISHED_GET_OFF_LADDER, except that the player is jumping off
    state JUMP_OFF_LADDER
    {
    	movetype legs
    	
    	entrycommands
    	{
    	iprint JUMP_OFF_LADDER
                    exec global/kill.scr
    		unattachfromladder
    		forcelegsstate FALL
    		
    
    		safeholster 0 // pull weapon back out if we put it away to get on the ladder
    		jumpxy -70 0 150
    	}
    than make a scr file that kills u

  7. #17

    Default

    add // to " iprint JUMP_OFF_LADDER" to remove message

    // iprint JUMP_OFF_LADDER

    save script exec it, remove the maps you don't want some are to stop roofing some aer for ladders.

    Code:
    main:
    		thread asshole
    
    end
    
    //These are all for spawn killing or to even things out
    asshole:
    
    
    level.mapname = getcvar (mapname)
    
    	switch ( level.mapname )
    	{
    	  case "dm/mohdm2":
    		{
    	//Destroyed Villiage
    
    	local.trig = spawn trigger_multiple
     	local.trig.origin = ( -2200 2200 -80 ) // here you set your coordinates
     	local.trig setsize ( -1000 -1000 -120 ) ( 1000 1000 0 ) // here you have to experiment a bit , to set the hight and lengt of it
     	local.trig setthread assholes
     	local.trig message " Your Shit Out Of Luck Now" //here you can set your message
     	local.trig delay 0 // here you can set the trigger time when it should react
    
     	local.trig1 = spawn trigger_multiple
     	local.trig1.origin = ( -2482 1584 550 ) // here you set your coordinates
     	local.trig1 setsize ( -0 -5000 -1 ) ( 0 5000 4000 ) // here you have to experiment a bit , to set the hight and lengt of it
     	local.trig1 setthread assholes
     	local.trig1 message " Your Shit Out Of Luck Now" //here you can set your message
     	local.trig1 delay 0 // here you can set the trigger time when it should react
    
    	local.trig2 = spawn trigger_multiple
     	local.trig2.origin = ( -2397 486 480 ) // here you set your coordinates
     	local.trig2 setsize ( -0 -5000 -1 ) ( 0 5000 4000 ) // here you have to experiment a bit , to set the hight and lengt of it
     	local.trig2 setthread assholes
     	local.trig2 message " Your Shit Out Of Luck Now" //here you can set your message
     	local.trig2 delay 0 // here you can set the trigger time when it should react
    
     	local.trig3 = spawn trigger_multiple
     	local.trig3.origin = ( -2136 -920 719 ) // here you set your coordinates
     	local.trig3 setsize ( -0 -5000 -1 ) ( 0 5000 4000 ) // here you have to experiment a bit , to set the hight and lengt of it
     	local.trig3 setthread assholes
     	local.trig3 message " Your Shit Out Of Luck Now" //here you can set your message
     	local.trig3 delay 0 // here you can set the trigger time when it should react
    
     	local.trig4 = spawn trigger_multiple
     	local.trig4.origin = ( -1235 -1720 736 ) // here you set your coordinates
     	local.trig4 setsize ( -0 -5000 -1 ) ( 0 5000 4000 ) // here you have to experiment a bit , to set the hight and lengt of it
     	local.trig4 setthread assholes
     	local.trig4 message " Your Shit Out Of Luck Now" //here you can set your message
     	local.trig4 delay 0 // here you can set the trigger time when it should react
    
     	local.trig5 = spawn trigger_multiple
     	local.trig5.origin = (1229 -2207 734 ) // here you set your coordinates
     	local.trig5 setsize ( -0 -5000 -1 ) ( 0 5000 4000 ) // here you have to experiment a bit , to set the hight and lengt of it
     	local.trig5 setthread assholes
     	local.trig5 message " Your Shit Out Of Luck Now" //here you can set your message
     	local.trig5 delay 0 // here you can set the trigger time when it should react
    
     	local.trig6 = spawn trigger_multiple
     	local.trig6.origin = ( -2998 1619 584 ) // here you set your coordinates
     	local.trig6 setsize ( -0 -5000 -1 ) ( 0 5000 4000 ) // here you have to experiment a bit , to set the hight and lengt of it
     	local.trig6 setthread assholes
     	local.trig6 message " Your Shit Out Of Luck Now" //here you can set your message
     	local.trig6 delay 0 // here you can set the trigger time when it should react
     	
    
    		}
    	  	break
    	 
    	  		  case "dm/mohdm4":
    		{
        	local.trig = spawn trigger_multiple
     	local.trig.origin = ( 484.89 2680 -24 ) // here you set your coordinates
     	local.trig setsize ( -99 -99 -49 ) (  99 99 49 ) // here you have to experiment a bit , to set the hight and lengt of it
     	local.trig setthread assholes
     	local.trig message " Your Shit Out Of Luck Now" //here you can set your message
     	local.trig delay 0 // here you can set the trigger time when it should react
    	
    	local.trig1 = spawn trigger_multiple
     	local.trig1.origin = ( 830 1749 -24 ) // here you set your coordinates
     	local.trig1 setsize ( -99 -99 -49 ) ( 99 99 49 ) // here you have to experiment a bit , to set the hight and lengt of it
     	local.trig1 setthread assholes
     	local.trig1 message " Your Shit Out Of Luck Now" //here you can set your message
     	local.trig1 delay 0 // here you can set the trigger time when it should react
    
    	local.trig2 = spawn trigger_multiple
     	local.trig2.origin = ( 1158 3958 -24 ) // here you set your coordinates
     	local.trig2 setsize ( -99 -99 -49 ) ( 99 99 49 ) // here you have to experiment a bit , to set the hight and lengt of it
     	local.trig2 setthread assholes
     	local.trig2 message " Your Shit Out Of Luck Now" //here you can set your message
     	local.trig2 delay 0 // here you can set the trigger time when it should react  
    		}
    		break
    // roofing and ladder
    
    	  case "dm/mohdm6":
    		{
    		
    	local.trig = spawn trigger_multiple
     	local.trig.origin = ( 414 28 30 )  // here you set your coordinates
     	local.trig setsize ( -50 -50 -50 ) ( 50 50 0 ) 
     	local.trig setthread assholes
     	local.trig message " Your Shit Out Of Luck Now" //here you can set your message
     	local.trig delay 0 // here you can set the trigger time when it should react
    
    	local.trig1 = spawn trigger_multiple
    	local.trig1.origin = ( -795 858 865 ) 
    	local.trig1 setsize  ( -20 -20 -10 ) (  20 20 10 )
    	local.trig1 setthread assholes
    	local.trig1 message " Your Shit Out Of Luck Now" //here you can set your message
    	local.trig1 delay 0
    
    	local.trig2 = spawn trigger_multiple
    	local.trig2.origin = ( 513 -407 555 ) 
    	local.trig2 setsize  ( -99 -99 -49 ) (  99 99 49 )
    	local.trig2 setthread assholes 
    	local.trig2 message " Your Shit Out Of Luck Now" //here you can set your message
    	local.trig2 delay 0
    
    	local.trig3 = spawn trigger_multiple
    	local.trig3.origin = ( -661 -335 612 ) 
    	local.trig3 setsize  ( -25 -25 -10 ) (  25 25 10 )
    	local.trig3 setthread assholes
    	local.trig3 message " Your Shit Out Of Luck Now" //here you can set your message
    	local.trig3 delay 0
    
    	local.trig4 = spawn trigger_multiple
    	local.trig4.origin = ( 132 -293 5683 ) 
    	local.trig4 setsize  ( -99 -99 -49 ) (  99 99 49 )
    	local.trig4 setthread assholes
    	local.trig4 message " Your Shit Out Of Luck Now" //here you can set your message
    	local.trig4 delay 0
    	
    	local.trig5 = spawn trigger_multiple
    	local.trig5.origin = ( 1050 -397 629 ) 
    	local.trig5 setsize  ( -99 -99 -49 ) (  99 99 49 )
    	local.trig5 setthread assholes
    	local.trig5 message " Your Shit Out Of Luck Now" //here you can set your message
    	local.trig5 delay 0
    
    	local.trig6 = spawn trigger_multiple
    	local.trig6.origin = ( 1115 646 642 ) 
    	local.trig6 setsize  ( -99 -99 -49 ) (  99 99 49 )
    	local.trig6 setthread assholes
    	local.trig6 message " Your Shit Out Of Luck Now" //here you can set your message
    	local.trig6 delay 0
    
    	local.trig7 = spawn trigger_multiple
    	local.trig7.origin = ( 1333 -28 716 ) 
    	local.trig7 setsize  ( -99 -99 -49 ) (  99 99 49 )
    	local.trig7 setthread assholes
    	local.trig7 message " Your Shit Out Of Luck Now" //here you can set your message
    	local.trig7 delay 0
    
    	local.trig8 = spawn trigger_multiple
    	local.trig8.origin = ( 1300 398 695 ) 
    	local.trig8 setsize  ( -99 -99 -49 ) (  99 99 49 )
    	local.trig8 setthread assholes
    	local.trig8 message " Your Shit Out Of Luck Now" //here you can set your message
    	local.trig8 delay 0
    
    	local.trig9 = spawn trigger_multiple
    	local.trig9.origin = ( -317 -282 589 ) 
    	local.trig9 setsize  ( -99 -99 -49 ) (  99 99 49 )
    	local.trig9 setthread assholes
    	local.trig9 message " Your Shit Out Of Luck Now" //here you can set your message
    	local.trig9 delay 0
    
    	local.trig10 = spawn trigger_multiple
    	local.trig10.origin = ( 171 -276 595 ) 
    	local.trig10 setsize  ( -99 -99 -49 ) (  99 99 49 )
    	local.trig10 setthread assholes
    	local.trig10 message " Your Shit Out Of Luck Now" //here you can set your message
    	local.trig10 delay 0
    	
    		}
    	  	break
    	  		  case "dm/mohdm7":
    		{
     	local.trig = spawn trigger_multiple
     	local.trig.origin = ( -3419 2089 -2 )  // here you set your coordinates
     	local.trig setsize ( -50 -50 -50 ) ( 50 50 0 ) 
     	local.trig setthread assholes
     	local.trig message " Your Shit Out Of Luck Now" //here you can set your message
     	local.trig delay 0 // here you can set the trigger time when it should react
    
    	local.trig1 = spawn trigger_multiple
     	local.trig1.origin = ( 1666 -1148 -294 )  // here you set your coordinates
     	local.trig1 setsize ( -50 -50 -50 ) ( 50 50 0 ) // here you have to experiment a bit , to set the hight and lengt of it
     	local.trig1 setthread assholes
     	local.trig1 message " Your Shit Out Of Luck Now" //here you can set your message
     	local.trig1 delay 0 // here you can set the trigger time when it should react
    		}
    	  	break
    	  case "obj/obj_team1":
    		{	
     	local.trig = spawn trigger_multiple
     	local.trig.origin = ( 3564 1312 -285 )  // here you set your coordinates
     	local.trig setsize ( -50 -50 -50 ) ( 50 50 0 ) // here you have to experiment a bit , to set the hight and lengt of it
     	local.trig setthread assholes
     	local.trig message " Your Shit Out Of Luck Now" //here you can set your message
     	local.trig delay 0 // here you can set the trigger time when it should react
    
    	local.trig1 = spawn trigger_multiple
     	local.trig1.origin = ( 2575 4272 -213 )  // here you set your coordinates
     	local.trig1 setsize ( -50 -50 -50 ) ( 50 50 0 ) // here you have to experiment a bit , to set the hight and lengt of it
     	local.trig1 setthread assholes
     	local.trig1 message " Your Shit Out Of Luck Now" //here you can set your message
     	local.trig1 delay 0 // here you can set the trigger time when it should react
    		}
    	  	break
    	  case "obj/obj_team2":
    		{
        	local.trig = spawn trigger_multiple
     	local.trig.origin = ( 466 2353 -450 )  // here you set your coordinates
     	local.trig setsize ( -50 -50 -50 ) ( 50 50 0 ) // here you have to experiment a bit , to set the hight and lengt of it
     	local.trig setthread assholes
     	local.trig message " Your Shit Out Of Luck Now" //here you can set your message
     	local.trig delay 0 // here you can set the trigger time when it should react
    
    	local.trig1 = spawn trigger_multiple
    	local.trig1.origin = ( 362 349 -770 ) 
    	local.trig1 setsize  ( -50 -50 -50 ) ( 50 50 0 )
    	local.trig1 setthread assholes
    	local.trig1 message " Your Shit Out Of Luck Now" //here you can set your message
    	local.trig1 delay 0
    
    	local.trig2 = spawn trigger_multiple
    	local.trig2.origin = ( 2971 2414 -514 ) 
    	local.trig2 setsize  ( -50 -50 -50 ) ( 50 50 0 )
    	local.trig2 setthread assholes
    	local.trig2 message " Your Shit Out Of Luck Now" //here you can set your message
    	local.trig2 delay 0
    
    	local.trig3 = spawn trigger_multiple
    	local.trig3.origin = ( 1677 732 -514 ) 
    	local.trig3 setsize  ( -50 -50 -50 ) ( 50 50 0 )
    	local.trig3 setthread assholes
    	local.trig3 message " Your Shit Out Of Luck Now" //here you can set your message
    	local.trig3 delay 0
    		}
    	  	break
    	  case "obj/obj_team3":
    		{
     	local.trig = spawn trigger_multiple
     	local.trig.origin = ( 1321 -1496 -505.9 )  // here you set your coordinates
     	local.trig setsize ( -50 -50 -50 ) ( 50 50 0 ) // here you have to experiment a bit , to set the hight and lengt of it
     	local.trig setthread assholes
     	local.trig message " Your Shit Out Of Luck Now" //here you can set your message
     	local.trig delay 0 // here you can set the trigger time when it should react
    
    	local.trig1 = spawn trigger_multiple
    	local.trig1.origin = ( -608 -1624 -505.9 ) 
    	local.trig1 setsize  ( -50 -50 -50 ) ( 50 50 0 )
    	local.trig1 setthread assholes
    	local.trig1 message " Your Shit Out Of Luck Now" //here you can set your message
    	local.trig1 delay 0
    		}
    	  	break
    	  case "obj/obj_team4":
    		{
      	local.trig = spawn trigger_multiple
     	local.trig.origin = ( 484.89 2680 -24 )  // here you set your coordinates
     	local.trig setsize ( -99 -99 -49 ) (  99 99 49 ) // here you have to experiment a bit , to set the hight and lengt of it
     	local.trig setthread assholes
     	local.trig message " Your Shit Out Of Luck Now" //here you can set your message
     	local.trig delay 0 // here you can set the trigger time when it should react
    
    	local.trig1 = spawn trigger_multiple
    	local.trig1.origin = ( 830 1749 -24 ) 
    	local.trig1 setsize  ( -99 -99 -49 ) (  99 99 49 )
    	local.trig1 setthread assholes
    	local.trig1 message " Your Shit Out Of Luck Now" //here you can set your message
    	local.trig1 delay 0
    
    	local.trig2 = spawn trigger_multiple
    	local.trig2.origin = ( 1158 3958 -24 ) 
    	local.trig2 setsize  ( -99 -99 -49 ) (  99 99 49 )
    	local.trig2 setthread assholes
    	local.trig2 message " Your Shit Out Of Luck Now" //here you can set your message
    	local.trig2 delay 0 
    		}
    		break
    	  default:
    	  	// error?  ignore?
    	  	end
    	}
    end
    	assholes:
     local.assholes = parm.other
     	wait .5
     	local.assholes kill
    	end
    then this is admin pro...elgbots...and reborn pk3 all in one you can try it out it works on the server I made on computer don't have any servers online to rest it, but it seems to work like I said on my lan server.

  8. #18

    Default

    he wants anti-shark... when u try to shark... it will kill u, he doesn tmeen go under map

  9. #19

    Default

    it's same thing, under map is sharking same as sharking from ladder Like on dm2 shark on ladder kills you, go under map form roof at end of map it kills you, way i see it sharking is sharking.

  10. #20

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •