26 lines
		
	
	
		
			697 B
		
	
	
	
		
			SourcePawn
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			697 B
		
	
	
	
		
			SourcePawn
		
	
	
	
	
	
#include <sourcemod>
 | 
						|
#include <calladmin>
 | 
						|
#include <basecomm>
 | 
						|
 | 
						|
#pragma semicolon 1
 | 
						|
#pragma newdecls required
 | 
						|
 | 
						|
public Plugin myinfo =
 | 
						|
{
 | 
						|
	name        = "CallAdmin Restrictions",
 | 
						|
	author      = "Neon",
 | 
						|
	description = "",
 | 
						|
	version     = "1.0",
 | 
						|
	url         = "https://steamcommunity.com/id/n3ontm"
 | 
						|
};
 | 
						|
 | 
						|
//----------------------------------------------------------------------------------------------------
 | 
						|
// Purpose:
 | 
						|
//----------------------------------------------------------------------------------------------------
 | 
						|
public Action CallAdmin_OnDrawTarget(int client, int target)
 | 
						|
{
 | 
						|
	if (CheckCommandAccess(target, "", ADMFLAG_GENERIC, true))
 | 
						|
		return Plugin_Handled;
 | 
						|
	else
 | 
						|
		return Plugin_Continue;
 | 
						|
} |