Blockland Forums > Help

Is it possible to set a new Default Playertype?

Pages: (1/5) > >>

skill4life:

Instead of being online on my server all the time to host a mini-game, i wondered if it was possible to set a new default player-type for anyone who joins the server. Is it possible for such a thing? Or for a mini-game to be hosted by the server its self? Is there any script that allows this to happen? It'd be such a help for my server :3 I'd appreciate if you could help me or if you know any script/add-on that allows this.

Chrono:


--- Code: ---package defaultplayertype
{
function GameConnection::spawnPlayer(%this)
{
Parent::spawnPlayer(%this);
%this.player.changeDatablock(YOURDATABLOCKNAMEHERE);
}
};
activatePackage(defaultPlayertype);

--- End code ---


skill4life:


--- Quote from: Chrono on November 22, 2009, 11:04:44 PM ---
--- Code: ---package defaultplayertype
{
function GameConnection::spawnPlayer(%this)
{
Parent::spawnPlayer(%this);
%this.player.changeDatablock(YOURDATABLOCKNAMEHERE);
}
};
activatePackage(defaultPlayertype);

--- End code ---

--- End quote ---

Alright. I'm a complete idiot still so what exactly do i do with that code Master Chrono? :3.
Also what would be the exact name for the No jet player-type :3???

Chrono:


--- Quote from: skill4life on November 22, 2009, 11:07:03 PM ---Alright. I'm a complete idiot still so what exactly do i do with that code Master Chrono? :3.
--- End quote ---
I'm sure someone can come by and help you with that.

--- Quote from: skill4life on November 22, 2009, 11:07:03 PM ---Also what would be the exact name for the No jet player-type :3???

--- End quote ---
Not exactly sure and don't feel like checking.

skill4life:


--- Quote from: Chrono on November 22, 2009, 11:18:07 PM ----snip-

--- End quote ---

Darn.
Well i don't need it right away, because i won't finish my project for a while.
like, weeks.

Pages: (1/5) > >>

Go to full version