Raised This Month: $ Target: $400
 0% 

Admin Imunnity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 11-03-2011 , 11:16   Admin Imunnity
Reply With Quote #1

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)    

__________________

Last edited by kramesa; 11-03-2011 at 11:17.
kramesa is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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