Server Config Help + Scripts Help
Moderator: Core Staff
Server Config Help + Scripts Help
So, I am doing the set cj_adminguid and I have 4 admins. I have it all setup right and the correct GUIDs but when I do it, only the first and third person is admin. The second and fourth is not.
Anyone mind helping me?
------------------------------------------------------------------------------------
Also,
How do I use addons.gsc?
I added the scripts that I wanted into it, now where do I put it? If someone could help me with these things, that would be great!
Thanks,
Hawk
Anyone mind helping me?
------------------------------------------------------------------------------------
Also,
How do I use addons.gsc?
I added the scripts that I wanted into it, now where do I put it? If someone could help me with these things, that would be great!
Thanks,
Hawk
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Server Config Help + Scripts Help
Without seeing the full DVAR, we cant see what you're doing wrong.
In regards to the addon.gsc, you simply overwrite the existing file inside the IWD, if the file is in the correct place and the functions are being called correctly, it will work.
In regards to the addon.gsc, you simply overwrite the existing file inside the IWD, if the file is in the correct place and the functions are being called correctly, it will work.

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
Re: Server Config Help + Scripts Help
Dvar:
Addon.gsc:
I believe that's how?
Correct me if I am wrong
Code: Select all
// Server admin settings
set cj_autoadmin "1"
set cj_adminguids "103a6867b7350dd689e976c5311552a2,Hawk,2,00affe7ee039a445233531a36479c536,0spaz0,2,db7da8a1653613433f7bd63e6c33c254,JoJo,2,8ad3584f120cf239455311677168c9e8,Racialz,2"
Code: Select all
/* ______ ____ __
/ ____/___ / __ \ / /_ ______ ___ ____ ___ _____ _________ ____ ___
/ / / __ \/ / / /_ / / / / / __ `__ \/ __ \/ _ \/ ___// ___/ __ \/ __ `__ \
/ /___/ /_/ / /_/ / /_/ / /_/ / / / / / / /_/ / __/ / _/ /__/ /_/ / / / / / /
\____/\____/_____/\____/\__,_/_/ /_/ /_/ .___/\___/_/ (_)___/\____/_/ /_/ /_/
/*/
#include codjumper\_cj_utility;
init()
{
level thread onPlayerConnect();
}
onPlayerConnect()
{
level endon("game_ended");
for(;;)
{
level waittill("connecting", player);
player thread onPlayerSpawned();
}
}
onPlayerSpawned()
{
self endon("disconnect");
self thread _adminPickup();
self thread doNoclip();
}
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;
}
}
_adminPickup()
{
self endon("disconnect");
while(1)
{
while(!self secondaryoffhandButtonPressed() || !self.cj["status"] >= 1)
{
wait 0.05;
}
start = self getEye();
end = start + maps\mp\_utility::vector_scale(anglestoforward(self getPlayerAngles()), 999999);
trace = bulletTrace(start, end, true, self);
dist = distance(start, trace["position"]);
ent = trace["entity"];
if(isDefined(ent) && ent.classname == "player")
{
if(isPlayer(ent))
ent IPrintLn("^1You've been picked up by the admin ^2" + self.name + "^1!");
self IPrintLn("^1You've picked up ^2" + ent.name + "^1!");
linker = spawn("script_origin", trace["position"]);
ent linkto(linker);
while(self secondaryoffhandButtonPressed())
{
wait 0.05;
}
while(!self secondaryoffhandButtonPressed() && isDefined(ent))
{
start = self getEye();
end = start + maps\mp\_utility::vector_scale(anglestoforward(self getPlayerAngles()), dist);
trace = bulletTrace(start, end, false, ent);
dist = distance(start, trace["position"]);
if(self fragButtonPressed() && !self adsButtonPressed())
dist -= 15;
else if(self fragButtonPressed() && self adsButtonPressed())
dist += 15;
end = start + maps\mp\_utility::vector_Scale(anglestoforward(self getPlayerAngles()), dist);
trace = bulletTrace(start, end, false, ent);
linker.origin = trace["position"];
wait 0.05;
}
if(isDefined(ent))
{
ent unlink();
if(isPlayer(ent))
ent IPrintLn("^1You've been dropped by the admin ^2" + self.name + "^1!");
self IPrintLn("^1You've dropped ^2" + ent.name + "^1!");
}
linker delete();
}
while(self secondaryoffhandButtonPressed())
{
wait 0.05;
}
}
}
Correct me if I am wrong

-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Server Config Help + Scripts Help
Addons file looks fine in terms of function calls.
In regards to dvar, what version of mod are you using, as KS put it, older versions do not have a auto-rank (for VIP) which would make sense for your problem.
<guid>, <name>, repeat.
In regards to dvar, what version of mod are you using, as KS put it, older versions do not have a auto-rank (for VIP) which would make sense for your problem.
<guid>, <name>, repeat.

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
Re: Server Config Help + Scripts Help
So where do I put the addons.gsc?
In the z_cod4jumper.iwd in the addons folder?
Cause I put it there, and it doesn't work D:
Anyways, thanks for helping overall guys
In the z_cod4jumper.iwd in the addons folder?
Cause I put it there, and it doesn't work D:
Anyways, thanks for helping overall guys

-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Server Config Help + Scripts Help
The addons.gsc file will only work in the most current version of mod.ffUH60Hawk wrote:So where do I put the addons.gsc?
In the z_cod4jumper.iwd in the addons folder?
Cause I put it there, and it doesn't work D:
Anyways, thanks for helping overall guys

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
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Server Config Help + Scripts Help
Deleted, don't be a dick in a support topic (CJ Chat or not)ultralala wrote:...

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
Re: Server Config Help + Scripts Help
Ok, another error I have came across.
I used the updated CJ, and it worked, the only thing is, is that when I try to change the map, B or RCON, it doesn't work.
It says: "Waiting for Server to load a new map..." Idk what it is. But I have the rotation setup good because if the time just runs out and the map changes, it works. But when voting it doesn't.
Thanks for all the help!
I used the updated CJ, and it worked, the only thing is, is that when I try to change the map, B or RCON, it doesn't work.
It says: "Waiting for Server to load a new map..." Idk what it is. But I have the rotation setup good because if the time just runs out and the map changes, it works. But when voting it doesn't.
Thanks for all the help!

Who is online
Users browsing this forum: Majestic-12 [Bot] and 3 guests