View Single Post
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 04-26-2012 , 12:47   Re: [CSS] Block ServerCommand
Reply With Quote #4

PHP Code:
stock KillServerCommands()
{
    new 
= -1;
    new 
entity 0;

    for (new 
0<= 16n++)
    {
        
entity FindEntityByClassname(i"point_servercommand");
        if (
IsValidEntity(entity))
        {
            
AcceptEntityInput(entity"Kill");
            
entity;
        }
        else
            break;
    }

Slightly modified version of this.
__________________

Last edited by Dr. McKay; 04-26-2012 at 12:47.
Dr. McKay is offline