Made zr_ztele_humans cvar for allowing or disallowing humans to use the teleporter. Defaults to allow.

This commit is contained in:
richard
2008-11-24 21:30:23 +01:00
parent 298dec378c
commit 65a9ec01aa
4 changed files with 8 additions and 2 deletions

View File

@ -227,7 +227,8 @@ ZTele(client)
return;
}
if (!IsPlayerZombie(client) && zombieSpawned)
new bool:tele_humans = GetConVarBool(gCvars[CVAR_ZTELE_HUMANS]);
if (!IsPlayerZombie(client) && !tele_humans && zombieSpawned)
{
ZR_PrintToChat(client, "!ztele humans restricted");