help pls

General chat area for anything whatsoever

Moderator: Core Staff

Post Reply
Realy
CJ Wannabe
CJ Wannabe
Posts: 2
Joined: February 2nd, 2012, 10:08 pm

help pls

Post by Realy » February 18th, 2012, 2:45 pm

Can somebody give me noclip script for cod4 pc jump server pls ?

glitch3790
CJ Worshipper
CJ Worshipper
Posts: 264
Joined: April 16th, 2011, 11:42 pm
PSN ID: campbell3790

Re: help pls

Post by glitch3790 » February 20th, 2012, 5:07 am

you want us to use our time to help you, but you wont even take the time to spell out "please"

User avatar
Buzzard
CJ Wannabe
CJ Wannabe
Posts: 23
Joined: November 5th, 2009, 7:13 pm

Re: help pls

Post by Buzzard » February 20th, 2012, 1:17 pm

I assume he wants to enable noclip for certain people on the server. Here is an example of such a noclip script. This script allows VIPs and Admins to enable a noclip similar state via pressing [Use]+[Frag] at same time.
If you have the newest version of the CoDJumper Mod you will just have to copy-paste this in the _addon.gsc which you can find in your z_cod4jumper.iwd.

Code: Select all

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.                                           */
 
        thread onPlayerConnect();
}

Code: Select all

onPlayerConnect()
{
        level endon("game_ended");
 
        for(;;)
        {
                level waittill("connecting", player);
 
                player thread doNoclip();
        }
}

Code: Select all

doNoclip()
{
        level endon("game_ended");
        self endon("disconnect");
 
        self waittill("spawned_player");
        
        for(;;wait 0.05)
        {
                if((!isDefined(self.cj["status"]) || self.cj["status"] < 1) || self.sessionstate != "playing")
                        continue;
 
                if(!self useButtonPressed() || !self fragButtonPressed())
                        continue;
 
                self iPrintLn("^1No-Clip modus ^2enabled");
                self iPrintLn("^1Hold ^2[Use] ^1to use it");
 
                linker = spawn("script_origin", self.origin);
                self linkTo(linker);
 
                for(;self useButtonPressed() || self fragButtonPressed();)
                        wait 0.05;
 
                for(;!self useButtonPressed() || !self fragButtonPressed();wait 0.05)
                {
                        if(self useButtonPressed())
                                linker.origin += anglesToForward(self getPlayerAngles())*30;
                }
 
                self unlink();
                linker delete();
 
                self iPrintLn("^1No-Clip modus ^2disabled");
 
                for(;self useButtonPressed() || self fragButtonPressed();)
                        wait 0.05;
        }
}

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests