hi guys
somebody can help me to add admin and spec immunity to this plugin with cvar?
cvars:
admin_immunity 0-1
spec_immunity 0-1
PHP Code:
#include <sourcemod>
#pragma semicolon 1
public void OnPluginStart()
{
HookEvent( "player_disconnect", Event_Disconnect, EventHookMode_Pre);
}
public Action Event_Disconnect(Event event, const char[] name, bool dbc)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
BanClient(client, 1440, BANFLAG_AUTO, "Ban");
}
Edit:
Solevd