#include <sourcemod>
#include <sdktools>

public Plugin:myinfo =
{
	name = "Kill Command",
	author = "Bara",
	description = "Spieler koennen sich ohne Console selbst killen",
	version = "1.0",
	url = "www.bara.in"
};

public OnPluginStart()
{
	RegConsoleCmd("sm_kill", Command_Kill);
}

public Action:Command_Kill(client, args)
{
	if(IsClientInGame(client))
	{
		if(GetClientTeam(client) == 2 || GetClientTeam(client) == 3)
		{
			if(IsPlayerAlive(client))
			{
				ForcePlayerSuicide(client);
			}
			else
			{
				ReplyToCommand(client, "Das macht kein Sinn...");
			}
		}
		else
		{
			ReplyToCommand(client, "Das macht kein Sinn...");
		}
	}
}