OnTeamKick
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnTeamKick( PlayerTeam playerTeam, BasePlayer basePlayer, ulong uLong )
{
Puts( "OnTeamKick works!" );
}
Location
- RelationshipManager::kickmember(ConsoleSystem/Arg arg)
csharp
//---
ulong uLong = arg.GetULong(0, 0uL);
if (basePlayer.userID == uLong)
{
return;
}
if (Interface.CallHook("OnTeamKick", playerTeam, basePlayer, uLong) != null)
{
return;
}
playerTeam.RemovePlayer(uLong);
}