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