There is one reason why it shouldn't work. m_zombieClass prop returns 5 for tank in l4d not 8.
Your plugin checks only ordinary hinged doors (prop_door_rotating) safe room use special variant of prop_door_rotating (prop_door_rotating_checkpoint) so players still can blocks tank in start/end safe areas. If you make my changes plugin will be checks both type of doors and support l4d.
You can use following code to check l4d/l4d2 tank if you want.
PHP Code:
bool:IsPlayerTank(client)
{
return GetEntProp(client, Prop_Send, "m_zombieClass") == (IsLeft4Dead() ? 5 : 8);
}
bool:IsLeft4Dead()
{
static iGame = -1;
if (iGame == -1){
decl String:sGameFolder[32];
GetGameFolderName(sGameFolder, 32);
iGame = StrEqual(sGameFolder, "left4dead");
}
return iGame;
}
__________________