public OnPluginStart() { HookEvent("player_spawn", PlayerSpawn); }
public Action:PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast) { new client = GetClientOfUserId(GetEventInt(event, "userid")); new Team = GetClientTeam(client);
if(IsPlayerAlive(client) && (Team == 2 || Team == 3 || Team == 1)) {