Made visualambience module, removed an offset thats provided by SM, moved zombie/human checks to infect module (renamed), fixed blast cvar, renamed some functions, removed zombie cvar enable because it didnt work.
This commit is contained in:
@ -79,7 +79,7 @@ public bool:Market_OnWeaponSelected(client, String:weaponid[])
|
||||
}
|
||||
|
||||
// If player is a zombie, then stop.
|
||||
if (IsPlayerZombie(client))
|
||||
if (InfectIsClientInfected(client))
|
||||
{
|
||||
ZR_PrintToChat(client, "Zombie cant use weapon");
|
||||
|
||||
|
@ -226,7 +226,7 @@ public Action:RestrictBuyHook(client, argc)
|
||||
}
|
||||
|
||||
// If player is a zombie then block command.
|
||||
if (IsPlayerZombie(client))
|
||||
if (InfectIsClientInfected(client))
|
||||
{
|
||||
ZR_PrintToChat(client, "Zombie cant use weapon");
|
||||
|
||||
@ -864,7 +864,7 @@ public RestrictCanUse(client, weapon, dummy1, dummy2, dummy3, dummy4)
|
||||
}
|
||||
|
||||
// If the player is a zombie and the weapon isn't a knife then prevent pickup.
|
||||
if (IsPlayerZombie(client) && !StrEqual(weaponname, "knife"))
|
||||
if (InfectIsClientInfected(client) && !StrEqual(weaponname, "knife"))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user