View Single Post
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-09-2012 , 23:49   Re: css throving knives
Reply With Quote #2

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) == && 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.
Attached Files
File Type: sp Get Plugin or Get Source (cssthrowingknives.sp - 195 views - 13.4 KB)
__________________
View my Plugins | Donate

Last edited by TnTSCS; 04-09-2012 at 23:54.
TnTSCS is offline