AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Admin Imunnity (https://forums.alliedmods.net/showthread.php?t=171216)

kramesa 11-03-2011 11:16

Admin Imunnity
 
Because the plugin ban admin?

PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <pug_const>

#define FLAG_A ADMIN_IMMUNITY 

public plugin_init()
{
    
register_cvar("amx_dsban""0"FCVAR_SERVER)
}
public 
client_disconnect(id
{
    new 
Name[32], Sid[32]
    
    if(
get_cvar_num("amx_dsban") <= 0)
        return
    
    if(
get_user_flags(id) & ADMIN_IMMUNITY)
        return
    
    
get_user_name(idName31)
    
get_user_authid(idSid31)
    
    
client_print(0print_chat"%s O jogador '%s' miou e sera banido por 2 horas"pug_headerName)
    
    
server_cmd"amx_addban ^"%s^" ^"%s^" 120 ^"Saiu em uma partida LIVE!^""NameSid)    



wickedd 11-03-2011 11:53

Re: Admin Imunnity
 
Read this.

kramesa 11-03-2011 12:01

Re: Admin Imunnity
 
Ah ok, sorry, this plugin works


All times are GMT -4. The time now is 14:16.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.