View Full Version : [CS:S] ONLY 1 Terrorist Each Map
WireleZz
01-08-2012, 16:06
Hello,
Ive got a deathrun server but most maps have 2 Terrorist spawns and i'd like to have a plugin that allows only 1 person in the terrorist team.
Anyone able to do this?
Franc1sco
01-08-2012, 16:13
With this plugin: http://forums.alliedmods.net/showthread.php?p=1054201
You delete one spawn point of ts team and save configuration, after refresh map and achieved in this map
#include <sourcemod>
#include <cstrike>
#pragma semicolon 1
public OnPluginStart()
HookEvent("player_spawn", OnPlayerSpawn);
public Action:OnPlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
if(GetClientTeam(client) == CS_TEAM_T && GetTeamClientCount(CS_TEAM_T) > 1)
CS_SwitchTeam(client, CS_TEAM_CT);
}
vBulletin® v3.8.7, Copyright ©2000-2024, vBulletin Solutions, Inc.