help pls
Moderator: Core Staff
-
- CJ Worshipper
- Posts: 264
- Joined: April 16th, 2011, 11:42 pm
- PSN ID: campbell3790
Re: help pls
you want us to use our time to help you, but you wont even take the time to spell out "please"
Re: help pls
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.
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;
    }
}
Who is online
Users browsing this forum: No registered users and 3 guests