Thread: A few errors.
View Single Post
Timocop
AlliedModders Donor
Join Date: Mar 2013
Location: Germany
Old 10-20-2017 , 12:22   Re: A few errors.
Reply With Quote #9

Not sure what the point of bIsPlayerAlive is but seems like you're respawning already alive clients. (Which doesnt work?)

Shouldnt it be:
Code:
PlayerTeam[IGC] == TFTeam_Blue && !bIsPlayerAlive[IGC]
to get dead clients for respawn?

And
PHP Code:
if (!IsClientConnected(iClient)) 
      return 
else if    (
IsClientConnected(iClient)) 
      
TF2_RespawnPlayer(iClient); 
can be shortened to

PHP Code:
if (!IsClientConnected(iClient)) 
      return 
Plugin_Stop;

TF2_RespawnPlayer(iClient); 
Timocop is offline