Quote:
Originally Posted by SHADoW NiNE TR3S
Anyone still dealing with the occasional living spectator?
I've been using this stock (where if it returns true, it would respawn the player) and it seems to have resolved my living spectator bugs
Code:
stock bool:IsLivingSpectator(client)
{
new SpecMode=GetEntProp(client, Prop_Send, "m_iObserverMode");
if(SpecMode<4 || SpecMode>6)
{
Debug("Client %N is not a spectator", client);
return false;
}
if(!IsPlayerAlive(client))
{
Debug("Client %N is not alive", client);
return false;
}
Debug("Client %N is a living spectator", client);
return true;
}
|
Thanks for code but how can I use this?
just put in main ff2 and compile?