i tried getting a few new tanks for my server i put them in the tankDb.cs in tt/game/server/dash and in tankDb.cs tt/game/server/scripts then i added the codes to the tank in the codes.cs file and codes.cs.dso and pref.cs in the dash folder tt/game/server/dash when i go to my server and type /codes it give me /light /med /heavy /ufo /boss /fighter when i do the admin pass and do the codes the admin tank changing codes are /mlight /mmed /mheavy /mufo /mboss /admt /DCtank but when i put in the codes i put it says they are not valid codes
Can someone help
Here are the codes i tried putting in /fighter
(you have to be admin to have these codes) and /admt /DCtank (my special modified tank) the tanks i put in are in bold
DAZZLE'S UPGRADE PACK
If you haven't already done so, upgrade your game by downloading Dazzle's all-in-one upgrade pack. It comes with everything you need for today's servers. Does your blue bar freeze when joining servers? Do you lag in games? Do you get an annoying siren in Phobik's Servers? This is what you need. CLICK HERE TO DOWNLOAD.
If you haven't already done so, upgrade your game by downloading Dazzle's all-in-one upgrade pack. It comes with everything you need for today's servers. Does your blue bar freeze when joining servers? Do you lag in games? Do you get an annoying siren in Phobik's Servers? This is what you need. CLICK HERE TO DOWNLOAD.
adding new tanks with dash
Moderator: Moderator
- DC
- New Brainjar
- Posts: 69
- Joined: Wed Jan 31, 2007 2:49 pm
- Location: planetthinktanks2.com
- MusickTMG
- Veteran Light
- Posts: 1903
- Joined: Mon Jun 25, 2007 8:59 pm
- Location: San Diego, California
- Contact:
Re: adding new tanks with dash
You probally put the codes under the print_codes function, if it says them in the codes
here is what you do to make it a code that will work
1. Open up the codes.cs file and scroll down untill you find a function that is called codeaction
it should look like this in the file
ok so when you found that go on to step 2
2. to add a new tank changer code so everyone can use the code
type
EDIT: Noticing that the itilics doesent work within the code the type that is inside the 's is what you need to change inorder for it to work
and to add a new code that only the admins can use type
EDIT: Noticing that the itilics doesent work within the code the type that is inside the 's is what you need to change inorder for it to work
Hope that this helps
if you have any questions pm me and i can help you, or just do it for you if you cant figure it out
MusickTMG
here is what you do to make it a code that will work
1. Open up the codes.cs file and scroll down untill you find a function that is called codeaction
it should look like this in the file
Code: Select all
function codeAction( %sender, %msgString, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10 )
{
%code = firstWord(%a2);
%a2 = trim(setWord(%a2,0,""));
if (%code $="/" | %code $= "/tm" )
chatMessageTeam(%sender, %sender.team, %msgString, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10);
else if (%code $="//" | %code $="/pm" )
call("private_chat",%sender, %msgString, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10);
else if (%code $= "/codes")
call("print_codes",%sender);
else if (%code $="/ping" )
call("getping",%sender,%a2);
else if (%code $="/obs" )
call("makeMeObserver",%sender);
else if (%code $="/adm" )
call("admin_login",%sender,%a2,"admin");
else if (%code $="/sadm" )
call("admin_login",%sender,%a2,"stealth");
else if (%code $="/stats")
call("print_stats", %sender);
else if (%code $="/nk" | %code $= "/nkick" )
call("caddkick",%sender,%a2);
else if (%code $="/k" | %code $= "/kick" )
call("namekick",%sender,%a2);
else if (%code $="/ki" | %code $= "/kill" )
call("single_kill",%sender,%a2);
else if (%code $="/nki" | %code $= "/nkill" )
call("cadd_single_kill",%sender,%a2);
else if (%code $="/nuke" )
call("nuke",%sender);
else if (%code $="/stat" )
call("stat",%sender,%a2);
else if (%code $= "/s" | %code $= "/silence" )
call("silence",%sender,%a2);
else if (%code $= "/ns" | %code $= "/nsilence" )
call("caddsilence",%sender,%a2);
else if (%code $= "/cp" | %code $= "/centerprint" )
call("my_cp",%sender,%a2);
else if (%code $= "/bp" | %code $= "/bprint" )
call("my_bp",%sender,%a2);
else if (%code $= "/r" | %code $= "/rename" )
call("change_name",%sender,%a2);
else if (%code $= "/nr" | %code $= "/nrename" )
call("cadd_change_name",%sender,%a2);
else if (%code $= "/ban" )
call("bankick",%sender,%a2);
else if (%code $= "/listban" )
call("listbanned",%sender);
else if (%code $= "/unban" )
call("unban",%sender,%a2);
else if (%code $= "/green" )
call("teamchanger",%sender,"GreenTeam");
else if (%code $= "/blue" )
call("teamchanger",%sender,"BlueTeam");
else if (%code $= "/mb" )
call("adminteamchanger",%sender,"BlueTeam",%a2);
else if (%code $= "/mo" )
call("makePlayerObserver",%sender,%a2);
else if (%code $= "/mg" )
call("adminteamchanger",%sender,"GreenTeam",%a2);
else if (%code $= "/mr" )
call("adminteamchanger",%sender,"RedTeam",%a2);
else if (%code $= "/ufo" )
call("tankchanger",%sender,"babyboss");
else if (%code $= "/light" )
call("tankchanger",%sender,"LightTank");
else if (%code $= "/med" )
call("tankchanger",%sender,"MediumTank");
else if (%code $= "/heavy" )
call("tankchanger",%sender,"HeavyTank");
else if (%code $= "/boss" )
call("tankchanger",%sender,"BossTank");
else if (%code $= "/mufo" )
call("admintankchanger",%sender,%a2,"babyboss");
else if (%code $= "/mlight" )
call("admintankchanger",%sender,%a2,"LightTank");
else if (%code $= "/mmed" )
call("admintankchanger",%sender,%a2,"MediumTank");
else if (%code $= "/mheavy" )
call("admintankchanger",%sender,%a2,"HeavyTank");
else if (%code $= "/mboss" )
call("admintankchanger",%sender,%a2,"BossTank");
else if (%code $= "/area" )
call("projectilechanger",%sender,"SplashProjectile");
else if (%code $= "/speedy" )
call("projectilechanger",%sender,"SpeedyProjectile");
else if (%code $= "/bounce" )
call("projectilechanger",%sender,%a2,"BounceProjectile");
else if (%code $= "/marea" )
call("adminprojectilechanger",%sender,%a2,"SplashProjectile");
else if (%code $= "/mspeedy" )
call("adminprojectilechanger",%sender,%a2,"SpeedyProjectile");
else if (%code $= "/mbounce" )
call("adminprojectilechanger",%sender,%a2,"BounceProjectile");
else if (%code $= "/restart" )
call("restartGame",%sender);
else
commandToClient(%sender,'BottomPrint', %code@ " IS NOT A VALID CODE",4,4);
}
2. to add a new tank changer code so everyone can use the code
type
Code: Select all
else if (%code $= "/[i]code[i]" )
call("tankchanger",%sender,"[i]tanks datablock[i]");
and to add a new code that only the admins can use type
Code: Select all
else if (%code $= "/[i]code[i]" )
call("admintankchanger",%sender,%a2,"[i]tanks datablock[i]");
Hope that this helps
if you have any questions pm me and i can help you, or just do it for you if you cant figure it out
MusickTMG
Musick-TMG-
"I got a idea"
"I got a idea"