Need help with the addon.gsc
Moderator: Core Staff
-
- CJ Wannabe
- Posts: 44
- Joined: January 10th, 2013, 7:07 pm
Need help with the addon.gsc
I've been trying to add a script to the addon.gsc file
But when i add a script to the file my server stops working
please help
But when i add a script to the file my server stops working
please help
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Need help with the addon.gsc
What script?
Run your server with "+developer 1" (or "set developer 1") and post any errors.
Run your server with "+developer 1" (or "set developer 1") and post any errors.
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
-
- CJ Wannabe
- Posts: 44
- Joined: January 10th, 2013, 7:07 pm
Re: Need help with the addon.gsc
The script isDrofder2004 wrote:What script?
Run your server with "+developer 1" (or "set developer 1") and post any errors.
Code: Select all
_AdminPickup()
{
self endon("disconnect");
while(1)
{
while(!self secondaryoffhandButtonPressed())
{
wait 0.05;
}
start = getPlayerEyePosition();
end = start + 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 = getPlayerEyePosition();
end = start + 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 + 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;
}
}
}
Last edited by Anonymous on February 4th, 2013, 10:01 pm, edited 1 time in total.
Reason: added code=cod box
Reason: added code=cod box
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Need help with the addon.gsc
And the error?
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
-
- CJ Wannabe
- Posts: 44
- Joined: January 10th, 2013, 7:07 pm
Re: Need help with the addon.gsc
I don't know what to error isDrofder2004 wrote:And the error?
when i run the script in LAN dedicated it works fine
but when i run it on my real server the server just stops working...
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Need help with the addon.gsc
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
-
- CJ Wannabe
- Posts: 44
- Joined: January 10th, 2013, 7:07 pm
Re: Need help with the addon.gsc
linux server?[/quote]
no i don't think so
no i don't think so
-
- CJ Wannabe
- Posts: 44
- Joined: January 10th, 2013, 7:07 pm
Re: Need help with the addon.gsc
Thanks it works now because of that thread
But is there a way to make it so that only the Admin can use the Admin pick up because right now everyone can use it
Who is online
Users browsing this forum: No registered users and 1 guest