Возрождение после начала раунда

garry

blink-182
Сообщения
122
Реакции
111
Сервер Jail. Буквально через 3 секунды если зайти из спектаторов за Т в начале раунда то ты не возрождаешься. Какая переменная отвечает за это? Что бы можно было например 10 секунд от начала раунда если не прошло то возрождаешься.
 

hepto

Участник
Сообщения
184
Реакции
56
garry, может эта
mp_respawnwavetime 0
mp_disable_respawn_times 1
 

KorDen

Atra esterní ono thelduin!
Сообщения
2,142
Реакции
1,424
hepto, лол, это же переменные TF2
 

hepto

Участник
Сообщения
184
Реакции
56
KorDen, и что? они на саурсе тоже есть, введи в консоль
 

KorDen

Atra esterní ono thelduin!
Сообщения
2,142
Реакции
1,424
hepto, Переменная "deathmatch" тоже есть ов всех играх Source, и что, она прямо таки врубает DM в CSS без модов?
Пора привыкнуть уже к подобному..
C-подобный:
09:25:50 version
09:25:51 Protocol version 24
         Exe version 1807769 (cstrike)
         Exe build: 19:37:16 Jun 18 2013 (5337) (240)
09:25:53 cvarlist "tf"
09:25:53 cvar list
         --------------
         tf_arena_max_streak                      : 3        : , "sv", "nf", "rep" : Teams will be scrambled if one team reaches this streak
         tf_arena_preround_time                   : 10       : , "sv", "nf", "rep" : Length of the Pre-Round time
         tf_arena_round_time                      : 0        : , "sv", "nf", "rep" : 
         tf_arena_use_queue                       : 1        : , "sv", "nf", "rep" : Enables the spectator queue system for Arena.
         tf_escort_score_rate                     : 1        : , "sv", "cheat"  : Score for escorting the train, in points per second
         --------------
           5 convars/concommands for [tf]
 

The End Is Near...

Russian Roulette
Сообщения
874
Реакции
691
http://world-source.ru/forum/129-3175-1
или
PHP:
#include <sourcemod>
#include <cstrike>

new Handle:hTimer = INVALID_HANDLE;

public OnPluginStart()
{
	HookEvent("round_start", Event_OnRoundStart);
	HookEvent("player_death", Event_OnPlayerDeath);
	HookEvent("round_end", Event_OnRoundEnd);
}

public Event_OnRoundStart(Handle:event, const String:name[], bool:silent)
{
	hTimer = CreateTimer(10.0, Timer, _, TIMER_FLAG_NO_MAPCHANGE);
}

public Event_OnPlayerDeath(Handle:event, const String:name[], bool:silent)
{
	if (hTimer != INVALID_HANDLE)
	{
		new client =  GetClientOfUserId(GetEventInt(event, "userid"));

		if (client > 0)
		{
			if (GetClientTeam(client) > 1)
			{
				CreateTimer(1.0, CallBackTimer, client, TIMER_FLAG_NO_MAPCHANGE);
			}
		}
	}
}

public Event_OnRoundEnd(Handle:event, const String:name[], bool:silent)
{
	if (hTimer != INVALID_HANDLE)
	{
		KillTimer(hTimer);
		hTimer = INVALID_HANDLE;
	}
}

public Action:Timer(Handle:timer)
{
	hTimer = INVALID_HANDLE;
}

public Action:CallBackTimer(Handle:timer, any:client)
{
	if (IsClientInGame(client) && GetClientTeam(client) > 1 && !IsPlayerAlive(client))
	{
		CS_RespawnPlayer(client);
	}

}
 
Сверху Снизу