server.cs
//Slayer stuff
if(!$Slayer::Server::Dependencies::Gamemodes)
exec("Add-Ons/Gamemode_Slayer/Dependencies/Gamemodes.cs");
Slayer.Gamemodes.addMode("Infection","Infection",1,1);
function onSpawn(%mini,%client)
{
%client.setTeam("Healthy");
}
function postDeath(%mini, %client,%obj,%killer,%type,%area)
{
%client.setTeam("Infected");
}
function serverCmdinfectme(%cl)
{
%cl.setTeam("Infected");
}
console.log
Add-Ons/Gamemode_Infection/server.cs (0): Unknown command setTeam.
Object LocalClientConnection(10960) GameConnection -> GameConnection -> GameConnection -> GameConnection -> GameConnection -> GameConnection -> GameConnection -> GameConnection -> GameConnection -> GameConnection -> GameConnection -> GameConnection -> GameConnection -> GameConnection -> GameConnection -> GameConnection -> GameConnection -> GameConnection -> GameConnection -> GameConnection -> GameConnection -> NetConnection -> SimGroup -> SimSet -> SimObject -> SimObject
==>quit();
ninja edit: I put servercmdinfectme in there purposely for testing.