Forums Index >> Modding >> Error in dash Admin Script!!!!
Page : <1> :
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. ";
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
Why would I want a projectile changer for the stock tank weapons? Seems pretty stupid to me.
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?
Did you do this?
/adm *password here*
Same as warfare... Hmmm?
Same as warpath... Hmmm?
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
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
@ 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
Ok up to speed now
nvm
Roo
Oh boy.... XD
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
I SURE DO!!!!
come to my sever and default projectile is stronger than power-up lol
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
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.
Thanks Warfare! B)
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
Herm, DONT DO THAT! That way ppl that are not admin can use stats! Dont delete "return;" just the line before!
Ok sry (lol)
Help I dont know what it means by Edit your top level main.cs file
YA WAT DOES IT MEAN?
HaHa ^^ You Just Got p00ne1) WanT SoMe MoRe?? 1v1 You Host It.
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.
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.
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
Page : <1> :
No longer available.
Last edited: Saturday, April 08, 2006 at 1:38:01 PM