Noclip for admins (cod4)

Have a question about modding, modelling or skinning? Have a tutorial to post? Post here!

Moderator: Core Staff

Post Reply
Tony24
CJ Wannabe
CJ Wannabe
Posts: 12
Joined: July 31st, 2012, 4:20 pm

Noclip for admins (cod4)

Post by Tony24 » September 26th, 2012, 7:32 pm

Hi guys,this is my first topic.
I want to ask if someone know,how can i add noclip to admins in CJ Server?
And can i put script in addons.gsc?

Thanks!
Image

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Noclip for admins (cod4)

Post by Drofder2004 » September 27th, 2012, 12:44 am

You can add anything and everything you desire to the addons.gsc
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

Tony24
CJ Wannabe
CJ Wannabe
Posts: 12
Joined: July 31st, 2012, 4:20 pm

Re: Noclip for admins (cod4)

Post by Tony24 » September 27th, 2012, 12:25 pm

Drofder2004 wrote:You can add anything and everything you desire to the addons.gsc
i know but can you give me script for noclip if you know it :)
Image

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Noclip for admins (cod4)

Post by Drofder2004 » September 28th, 2012, 12:22 am

Tony24 wrote:
Drofder2004 wrote:You can add anything and everything you desire to the addons.gsc
i know but can you give me script for noclip if you know it :)
Sorry, I dont have any 3rd party scripts.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

Perak
CJ Wannabe
CJ Wannabe
Posts: 36
Joined: January 23rd, 2011, 5:01 pm

Re: Noclip for admins (cod4)

Post by Perak » September 29th, 2012, 2:00 pm

Code: Select all

noclip_wait()
{
	
	self endon("disconnect");
	
	if( self.cj["status"] != 2 )
		return;
	
	MenuName = "cj";
	ResponseName = "noclip";
	
	self.innoclip = false;
	
	while( true )
	{
		self waittill( "menuresponse", menu, response );
		
		if( menu != MenuName || response != ResponseName )
			continue;
		
		self notify( "stop_noclip" );
		
		if( !self.innoclip )
			self thread noclip();
		else
		{
			self.innoclip = false;
			self unlink();
			if( isdefined( self.nocliplinker ) ) self.nocliplinker delete();
			self iprintlnbold ("Noclip ^1disabled.");
		}
	}
}

noclip()
{
	self endon("death");
	self endon("disconnect");
	self endon("joined_spectators");
	self endon("spawned");
	self endon("stop_noclip");
	
	self.innoclip = true;
	self iprintlnbold ("Noclip ^2enabled");
	
	self.nocliplinker = spawn( "script_model", self.origin );
	self linkto( self.nocliplinker );
	while( true )
	{
		self.nocliplinker moveto( self.origin + VectorScale( anglestoforward( self getPlayerAngles() ), 100 ), 1 );
		wait 0.1;
	}
}
erm, script from over a year ago which worked ok for me. it was made by r7oo wannabe. it's not perfect but it does the job

/openscriptmenu cj noclip to enable/disable
Image

Didamos
CJ Wannabe
CJ Wannabe
Posts: 3
Joined: November 30th, 2013, 8:40 pm

Re: Noclip for admins (cod4)

Post by Didamos » December 2nd, 2013, 10:23 pm

Code: Select all

/* ______      ____      __
  / ____/___  / __ \    / /_  ______ ___  ____  ___  _____ _________  ____ ___
 / /   / __ \/ / / /_  / / / / / __ `__ \/ __ \/ _ \/ ___// ___/ __ \/ __ `__ \
/ /___/ /_/ / /_/ / /_/ / /_/ / / / / / / /_/ /  __/ /  _/ /__/ /_/ / / / / / /
\____/\____/_____/\____/\__,_/_/ /_/ /_/ .___/\___/_/  (_)___/\____/_/ /_/ /_/
                                      /*/

#include codjumper\_cj_utility;

init()
{
	/* You may use this file to add your custom 		*
	 * scripts without requiring a stock file hack.	*
	 * Thread your functions inside 'init()' and		*
	 * place your custom functions below.						*/
}

So i got this how does it works ???
where and how i have to put this in the mod.ff???

noclip_wait()
{

self endon("disconnect");

if( self.cj["status"] != 2 )
return;

MenuName = "cj";
ResponseName = "noclip";

self.innoclip = false;

while( true )
{
self waittill( "menuresponse", menu, response );

if( menu != MenuName || response != ResponseName )
continue;

self notify( "stop_noclip" );

if( !self.innoclip )
self thread noclip();
else
{
self.innoclip = false;
self unlink();
if( isdefined( self.nocliplinker ) ) self.nocliplinker delete();
self iprintlnbold ("Noclip ^1disabled.");
}
}
}

noclip()
{
self endon("death");
self endon("disconnect");
self endon("joined_spectators");
self endon("spawned");
self endon("stop_noclip");

self.innoclip = true;
self iprintlnbold ("Noclip ^2enabled");

self.nocliplinker = spawn( "script_model", self.origin );
self linkto( self.nocliplinker );
while( true )
{
self.nocliplinker moveto( self.origin + VectorScale( anglestoforward( self getPlayerAngles() ), 100 ), 1 );
wait 0.1;
}
}

please tell me

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests