#include <sourcemod>
#define CT_HEALTH 150
#define T_HEALTH 100
public void OnPluginStart()
{
HookEvent("player_spawn", EventSpawn)
}
public void EventSpawn(Handle event, char[] name, bool dbc)
{
int client = GetClientOfUserId(GetEventInt(event, "userid"))
switch(GetClientTeam(client))
{
case 2: SetEntityHealth(client, T_HEALTH)
case 3: SetEntityHealth(client, CT_HEALTH)
}
}