View Single Post
Author Message
foon
Member
Join Date: Dec 2018
Old 12-31-2019 , 07:15   TF2 blocking player respawn
Reply With Quote #1

Is there any way to block a player from respawning? I know I can set m_TeamRespawnWaveTimes to something crazy, but that wont work with what I am trying to make. Ive looked around for somthing that I could use but couldnt find anything, maybe my googlefu isnt good enough.

I tried this, but I know it wont do anything since its only blocking the event for the client.
Code:
HookEvent("player_spawn", Event_Player_Spawn, EventHookMode_Pre);

public void Event_Player_Spawn(Event hEvent, const char[] name, bool dontBroadcast)
{
	return;
}

Last edited by foon; 12-31-2019 at 09:54.
foon is offline