Change this:
PHP Code:
public EventPlayerSpawn(Handle:event,const String:name[],bool:dontBroadcast) {
if (GetConVarBool(g_CVarEnable)) {
new client = GetClientOfUserId(GetEventInt(event, "userid"));
g_iKnives[client] = GetConVarInt(g_CVarKnives);
}
}
to this:
PHP Code:
public EventPlayerSpawn(Handle:event,const String:name[],bool:dontBroadcast) {
if (GetConVarBool(g_CVarEnable)) {
new client = GetClientOfUserId(GetEventInt(event, "userid"));
if (GetClientTeam(client) == 2 && CheckCommandAccess(client, "allow_throwing_knives", ADMFLAG_CUSTOM1))
{
g_iKnives[client] = GetConVarInt(g_CVarKnives);
}
}
}
Then you can override the Admin/VIP flag to be whatever you want by setting the flag for "allow_throwing_knives" in the admin_overrides.cfg file.
Attached the modified version for you.