View Single Post
zyox123cc
Senior Member
Join Date: Jul 2016
Location: spycrab
Old 01-23-2018 , 07:18   Re: [Request][TF2] Slay player if respawned within x seconds
Reply With Quote #2

Code:
else if (PlayerTeam == TeamRed)
		{
			SetRespawnTime(); //Have to do this since valve likes to reset the TF_GameRules during rounds and map changes
			RespawnTime = GetConVarFloat(RespawnTimeRed);
			if (RespawnTime > 0) // Use the timer if the Respawn time is greater 0
			{
				if (GetConVarBool(ShowRespawnMessage))
					PrintHintText(client, "Respawning in %.1f seconds", RespawnTime); //inform the player time to wait for respond
					
				CreateTimer(RespawnTime, SpawnPlayerTimer, client, TIMER_FLAG_NO_MAPCHANGE); //Respawn the player at the specified time
			}
			else if (RespawnTime <= 0) // else respawn the player straight
				SpawnPlayer(client);
		}
try edit https://forums.alliedmods.net/showthread.php?p=611953
__________________
sv_downloadurl Recommended FREE website
000webhost(File is too big (max. 32MB)! Upload will be skipped.)
rejetto
(Local_computer_host)
Getting material/model paths easy way (Windows)
steam profile
Youtube
zyox123cc is offline