View Single Post
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-22-2021 , 23:09   Re: [L4D] L4D Tank announce and lock door (v1.0.7, 2020-03-28)
Reply With Quote #10

"IsClientConnected(i) && IsClientInGame(i)" - There's no need to check "IsClientConnected" because "IsClientInGame" already does that.

If you want to support L4D2, the "m_zombieClass" for tank is 8 in L4D2 and 5 in L4D1. Suggest something like "g_iClassTank = g_bLeft4Dead2 ? 8 : 5;" in plugin start, then checking against that var.
__________________

Last edited by Silvers; 06-22-2021 at 23:10.
Silvers is offline