Author Topic: Is it possible to set a new Default Playertype?  (Read 915 times)

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.

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

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

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???

Alright. I'm a complete idiot still so what exactly do i do with that code Master Chrono? :3.
I'm sure someone can come by and help you with that.
Also what would be the exact name for the No jet player-type :3???
Not exactly sure and don't feel like checking.

-snip-

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

Put the code in a server.cs file. Put it and a description.txt into a Script_(Add-on name).zip file.

Put the code in a server.cs file. Put it and a description.txt into a Script_(Add-on name).zip file.
owait. Thats hao2make add-on! :O

Ok so, i downloaded notepad++, Put the script it, Saved the file as server.cs, Made a zip folder, named it 'Script_Defualt_Player', Put server.cs in, put the description in, saved as a CS file, and... not working when i enabled it on add-ons. its still standard player type

And yes, i changed the 'YOURDATABLOCKHERE' to Player_No_Jet.

I don't think the datablock is Player_No_Jet.
It's PlayerNoJet.

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???
Console?
Just write the Datablock you want.