Author Topic: Spawn with skis.  (Read 1422 times)

I need a script for my Skiing dedicated server that disables the wrench.

If you can't do that, I need a default minigame that is ALWAYS on. Minigame preferably, but either works perfect.

Thanks =D


Need to spawn with skis.
« Last Edit: March 10, 2008, 10:58:23 PM by tapemaster21 »

Code: [Select]
package nowrench
{
 function wrenchImage::onFire(%this,%obj,%slot){
  //do nothing
  }
 };
activatePackage(nowrench);

Tested?
 EDIT: seems to be working, thanks!
« Last Edit: March 10, 2008, 10:40:32 PM by tapemaster21 »

Osht, I forgot, but I also need to spawn with skis....   anyone for this?

And no building...


EDIT:  alomost want to just leave a blockland running, I need the minigame script, nvm.
« Last Edit: March 10, 2008, 11:05:15 PM by tapemaster21 »

Use TDM's default minigame, it can run wile your not playing. (perfect for dedicateds)

Why do you need to package it it you're breaking the whole function anyway?

The TDM idea sounded good, but Tdm is hard as balls to use, it always colors people.

Turn off team uniforms?

Code: [Select]
package SkiSpawn {

function GameConnection::spawnPlayer(%this)
{
parent::spawnPlayer(%this);
schedule(500,0,"GiveSkis",%this);
}

};
activatepackage(SkiSpawn);

function GiveSkis(%client)
{
for(%i=0;%i<5;%i++)
{
%toolDB = %client.player.tool[%i];
if(%toolDB == 0)
{
%col.tool[%i] = SkiItem.getID();
messageClient(%client,'MsgItemPickup','',%i,SkiItem.getID());
break;
}
}
}

Should work, it hasn't been tested though...and I'm sure someone else is going to come and show me some more efficient way.
« Last Edit: March 11, 2008, 09:56:50 PM by Aloshi »

Turn off team uniforms?
I did. Still made shirt red.

@ alo, Will go test. <3



How to use TDM:
Make the mini you want, then stop it.
Click dedicated minigame, no coloring or anything like that done.

Ok, How do I make myself host? I can't set the defaultminigame if I'm not host. I think it's because it's a dedi.
« Last Edit: March 18, 2008, 11:24:28 PM by tapemaster21 »

Code: [Select]
$Pref::TeamDM::SecureLevel = "2";(In the Dedicated console while hosting, once. This saves until you change it unless the server crashes in which case you will have to set it again. It applies to all servers you create, dedicated or nondedicated.)
The 'secure level' defines what type of admin you need to be to change settings of Team Deathmatch, such as the toggles for Auto Sort, TDM and the Default Minigame. In a dedicated, nobody is counted as the host, so you will need to change it to the Super or Admin level.

1 = Admin and Supers
2 = Super Admins
3 or Unrecognised = Host Only