What Game is it? Does this work?
PHP Code:
#include <sourcemod>
public Plugin:myinfo =
{
name = "block team change",
author = "dustin",
description = "blocks team change command when players are alive",
version = "1.0",
url = "",
};
public OnPluginStart()
{
AddCommandListener(CommandJoinTeam, "jointeam");
}
public Action CommandJoinTeam(client, const char[] command, args)
{
if (IsPlayerAlive(client))
{
ReplyToCommand(client, "You Can't Use this command while alive.")
return Plugin_Handled;
}
return Plugin_Continue;
}