View Single Post
Phire
Junior Member
Join Date: May 2016
Location: Scotland, United Kingdom.
Old 12-03-2016 , 23:59   Re: Give bots immunity
Reply With Quote #2

Quote:
Originally Posted by blackhawk74 View Post
Is there any way to give bots immunity with SM? I'm trying to avoid them from being able to get kicked by admins, but still able to be punted when I wish to disable them altogether.
Honestly, I'm not too sure but couldn't you just tell the admins to refrain from kicking the bots?

This is untested but it might work.

PHP Code:
public void OnClientPostAdminCheck(int client)
{
    if(
IsFakeClient(client)) // If the client is fake (bot)
    
{
        
SetAdminImmunityLevel(client60); //60 being the immunity level
    
}


Last edited by Phire; 12-04-2016 at 00:09.
Phire is offline