fix errors

ExtraCommands: add sm_setmvp
This commit is contained in:
BotoX
2017-08-12 15:07:10 +02:00
parent 9c4735659c
commit 68387329f2
6 changed files with 67 additions and 3 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ public void OnClientPutInServer(int client)
public void OnWeaponSwitch(int client, int weapon)
{
if(!g_Cvar_QuickSwitch_Knife.BoolValue || ZR_IsClientZombie(client))
if(!g_Cvar_QuickSwitch_Knife.BoolValue || !IsPlayerAlive(client) || ZR_IsClientZombie(client))
return;
char sWeaponName[32];