Raised This Month: $32 Target: $400
 8% 

Admin Imunnity


Post New Thread Reply   
 
Thread Tools Display Modes
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
wickedd
Veteran Member
Join Date: Nov 2009
Old 11-03-2011 , 11:53   Re: Admin Imunnity
Reply With Quote #2

Read this.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 11-03-2011 , 12:01   Re: Admin Imunnity
Reply With Quote #3

Ah ok, sorry, this plugin works
__________________
kramesa is offline
Reply


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 22:14.


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