View Single Post
devilesk
Junior Member
Join Date: May 2019
Old 10-16-2020 , 10:56   Re: [L4D2] Get Ghost Spawntime
Reply With Quote #2

Code:
new spawntime = GetEventFloat(event,"spawntime");
spawntime should be a float.

Code:
if (IsHumanPlayer(client) && IsPlayerGhost && GetClientTeam(client) == 3 && spawntime < 4)
I don't know what IsHumanPlayer does and IsPlayerGhost doesn't look right. Is it a variable or supposed to be a function call? Anyway, here's how I'd write it:

Code:
if (client > 0 && client <= MaxClients && IsClientInGame(client) && !IsFakeClient(client) && GetClientTeam(client) == 3 && spawntime < 4.0)
devilesk is offline