Forums Index >> Modding >> Error in dash Admin Script!!!!



Page : <1> :


No longer available.

 

 

 

 

Last edited: Saturday, April 08, 2006 at 1:38:01 PM

Tuesday, January 18, 2005 at 5:47:47 PM

Thanks for the update. Thers anouther in prefs.cs but not as important. Open it and find this near the top:

// Message displayed to a player when they are banned from a server
$pref::Server::BanMessage = "YOU HAVE BEEN FROM THIS SERVER. ";

It should be: "YOU HAVE BEEN BANNED FROM THIS SERVER. ";

Tuesday, January 18, 2005 at 7:13:59 PM

Here's another 2 thing the dash codes are missing!

Else if (%code $= "/admpheavy" )
call("adminprojectilechanger",%sender,%a2,"HeavyProjectile");
else if (%code $= "/admdefault" )
call("adminprojectilechanger",%sender,%a2,"DeafultProjectile");
else if (%code $= "/admplight" )
call("adminprojectilechanger",%sender,%a2,"LightProjectile");

And

Else if (%code $= "/pheavy" )
call("projectilechanger",%sender,%a2,"HeavyProjectile");
else if (%code $= "/default" )
call("projectilechanger",%sender,%a2,"DefaultProjectile");
else if (%code $= "/plight" )
call("projectilechanger",%sender,%a2,"LightProjectile");

Thanks to Leeds for adding them to V0.03 and then adding them to V0.05

You may change the code itself but keep the command the same! And Do NOT forget to give Leeds the credits for those!

Last edited: Sunday, February 13, 2005 at 5:16:39 AM

Sunday, February 13, 2005 at 5:15:10 AM

Maybe he wanted it that way

 

Sunday, February 13, 2005 at 8:57:19 AM

Why would I want a projectile changer for the stock tank weapons? Seems pretty stupid to me.

Sunday, February 13, 2005 at 10:50:17 AM

Ok I got the dash code in, all weapons and tank changer codes work but I can't get the /adm code to work, I changed the password like it said but when I type /adm it freezes with that lag symble in the corner. Plz can anyone help?

 

Monday, March 28, 2005 at 11:51:45 AM

Did you do this?

/adm *password here*

Monday, March 28, 2005 at 6:06:26 PM

Same as warfare... Hmmm?

Monday, March 28, 2005 at 7:02:30 PM

Same as warpath... Hmmm?

Monday, March 28, 2005 at 7:02:56 PM

Max
There are no instructions in v5 about the command line in main.cs
Thats probably where everyone gets stuck
When I reformatted and reloaded TT and the Dash codes
recently I had to insert the command manually
That would be the
exec("game/server/dash/main.cs");
Roo

 

Tuesday, March 29, 2005 at 3:15:47 AM

I added all this for the dash codes

Exec("game/server/scripts/emitters.cs");
exec("game/server/dash/main.cs");
exec("game/server/dash/prefs.cs");
exec("game/server/dash/ConsoleUtilities.cs");
exec("game/server/dash/GameConnection.cs");
exec("game/server/dash/Codes.cs");
exec("game/server/dash/UberBots.cs");

And everything is perfect. Lol oh well probably works either way...

~~~KAG(KS)

Last edited: Tuesday, March 29, 2005 at 9:26:52 AM

Tuesday, March 29, 2005 at 7:15:53 AM

@ Ròóster(UF) But it does.

 


Installation
0.1 windows is gay and may hide.cs filename extensions, don't let it throw you when I refer to "something.cs"

0.2 Locate your thinktanks folder, I will refer to it in these instructions as TT.

1. Download the code:  Right Click Here, Save As,... , dashCodes.zip

2. If upgrading, remove my old codes system entirely and replace files with originals. Then remove lines in main.cs which executed my old scripts.

3. On your desktop or wherever unzip dashCodes.zip. This should produce a folder called dash. Move the dash folder to TT/game/server/dash
4. Edit your top level main.cs file. TT/main.cs. Add this line at the bottom exec("game/server/dash/main.cs");
5. Edit TT/game/server/dash/prefs.cs and change the password or you will not be able to login as admin.

 

I was referring to this Thread when I said:

 

Same as warfare... Hmmm?

 

@ KAG(KS) - yes both work.

MAX

Last edited: Tuesday, March 29, 2005 at 10:58:07 AM

Tuesday, March 29, 2005 at 10:45:47 AM

Ok up to speed now
nvm
Roo

 

Tuesday, March 29, 2005 at 4:08:17 PM

Oh boy.... XD

Tuesday, March 29, 2005 at 4:41:28 PM

Yes, I know he may have wanted it that way, but if anyone wants those commands I put on, I'm more than happy to let you use them

Friday, April 15, 2005 at 12:57:52 PM

I SURE DO!!!!
come to my sever and default projectile is stronger than power-up lol

Monday, April 25, 2005 at 6:07:15 AM

Umm...don't know if this is useful or not, but oh well...
All this does is when you type /codes it tells you wether the sill codes are enabled.
Find this

 

Function print_codes(%sender)
{

%t = 1000;

%msg="private chat: // name message team chat: / message check ping: /ping name ";
%msg2 ="tank changing codes /light /heavy /med /ufo /boss";
%msg3 = "team changing codes /green /blue /red";
%msg4 = "projectile changing codes /area /speedy /bounce";
%msg5 = "kick codes /k name /nk cadd ";
%msg6 = "ban related codes /ban name /unban name /listban (list banned players)";
%msg7 = "player stats /stat name (display CADD,PING,IP) /stats (display stat for all players) ";
%msg8 = "kill commands /ki name /nki cadd /nuke";
%msg9 = "print commands /cp message /bp message";
%msg10 = "silence code /s name /ns cadd";
%msg11 = "rename codes /r name new /nr CADD new ";
%msg12 ="admin tank changing codes /mlight /mheavy /mmed /mufo /mboss";
%msg13 ="admin team changing codes /mg /mb /mr";
%msg14 ="admin projectile changing codes /marea /mspeedy /mbounce ";
%msg15 ="Tank Changing Codes Are Disabled !";
%msg16 ="Team Changing Codes Are Disabled !";
%msg17 ="Weapon Codes Are Disabled !";

schedule(%u,false,"CommandToClient",%sender,'BottomPrint',%msg,4,3);

 


Add in what's in bold. Now Add this after the "if($pref::Server::TankChangers == 1)" function.

 

                                        
if($pref::Server::TankChangers == 0)
{
%t = %t + 4000;
schedule(%t,false,"CommandToClient",%sender,'BottomPrint',%msg15,4,3);
}

 

Then add this after the "if($pref::Server::TeamChangers == 1)" function.

 

                                        
if($pref::Server::TeamChangers == 0)
{
%t = %t + 4000;
schedule(%t,false,"CommandToClient",%sender,'BottomPrint',%msg16,4,3);
}

 

Finnaly add this after the "if($pref::Server::ProjectileChangers == 1)" function.

 

                                        
if($pref::Server::ProjectileChangers == 0)
{
%t = %t + 4000;
schedule(%t,false,"CommandToClient",%sender,'BottomPrint',%msg17,4,3);
}

 

Now when you type /codes , it'll tell you if weapon changing codes etc. Are disabled. :)


Last edited: Thursday, April 28, 2005 at 4:37:01 PM

Thursday, April 28, 2005 at 4:30:46 PM

I chaned the prefs.cs files in the dash folder and in the server folder to 0 like this:
$pref::Server::ProjectileChangers = 0;
and it still lets you use the power up codes. Any help would be great thanks.

Wednesday, May 04, 2005 at 8:18:11 PM

Thanks Warfare! B)

Thursday, May 05, 2005 at 9:18:56 PM

Try to type /stats when NOT an admin :P ok here in this code:

 

                                        
function print_stats(%sender)
{
if(!ClientIsAdmin(%sender,"/stats command failed you are not admin"))
{
schedule(1000,false,"CommandToClient", %sender,'BottomPrint', "stats command failed, you are not admin",4,3);
return;
}
$len = clientgroup.getCount();
for($I=0;$I<$len;$I++)
{
%u = clientgroup.getObject($I);
if( isobject(%u))
{
%cadd = %u.getId();
%nm = %u.nameBase;
%ping = %u.getPing();
%ip = scrub_ip(%u.getAddress());
//%msg = %u.nameBase@": "@%u.getId() @" , " @%u.getPing()@", " @%u.getAddress()@"
";
%msg = %nm@": CADD="@%cadd@", PING="@%ping@",IP="@%ip@"
";
schedule($I*2000,false,"CommandToClient", %sender,'BottomPrint', %msg,4,3);
}
}
}

 


Delete the underline in this part:

 

                                        
if(!ClientIsAdmin(%sender,"/stats command failed you are not admin"))
{
schedule(1000,false,"CommandToClient", %sender,'BottomPrint', "stats command failed, you are not admin",4,3);
return;

}

 

So now it dosent center print and bottom print when you type /stats if you arent an admin ;)

Last edited: Saturday, May 28, 2005 at 12:16:07 PM

Saturday, May 28, 2005 at 12:14:27 PM

Herm, DONT DO THAT! That way ppl that are not admin can use stats! Dont delete "return;" just the line before!


Sunday, May 29, 2005 at 10:06:32 AM

Ok sry (lol)

Sunday, May 29, 2005 at 2:17:17 PM

Help I dont know what it means by Edit your top level main.cs file

Saturday, June 04, 2005 at 4:29:14 PM

YA WAT DOES IT MEAN?

HaHa ^^ You Just Got p00ne1) WanT SoMe MoRe?? 1v1 You Host It.

Sunday, June 05, 2005 at 12:18:17 PM

Help im close to installing the admin codes but the main.cs thingy is tricky!

HaHa ^^ You Just Got p00ne1) WanT SoMe MoRe?? 1v1 You Host It.

Sunday, June 05, 2005 at 12:19:02 PM

Help im close to installing the admin codes but the main.cs thingy is tricky!

HaHa ^^ You Just Got p00ne1) WanT SoMe MoRe?? 1v1 You Host It.

Sunday, June 05, 2005 at 12:19:05 PM

On the Mac Version the banlist.cs doesnt work!

I have gone into Dash's main.cs and deleted the banlist.cs line so it uses the games default banlist.cs

 

 

 

 

Friday, July 01, 2005 at 1:55:14 PM

That wont work.. Dont you get that the Append function is broken on Mac?
Well dont fear, your rescuer is here (or will be :P)
I have the fix in my admin script, but as its not really that easy to implement you'll have to wait for a bit


Friday, July 01, 2005 at 1:59:46 PM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald