Raised This Month: $ Target: $400
 0% 

16 bit not give kick :|


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 05-13-2011 , 21:21   Re: 16 bit not give kick :|
Reply With Quote #6

OMG, this connor's code !
IMO, check player name when player put in server, and client info changed !
I think that is enough !

edited:un-test!
Code:
#include <amxmodx>
 
#define PLUGIN_NAME        "Kick 16-bit"
#define PLUGIN_VERSION        "1.0"
#define PLUGIN_AUTHOR        "K.K.Lv"
 
public plugin_init()
{
        register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
}
 
public client_putinserver(id)
{
        if (!is_user_connected(id))
                return;
        static szName[32];
        get_user_name(id, szName, charsmax(szName));
 
        if (contain(szName, "[16bpp]") != -1) {
                server_cmd("kick #%d ^"for 16-bit set^"", get_user_userid(id));
       }
}
 
public client_infochanged(id)
{
        if (!is_user_connected(id))
                return ;
 
        static szNewName[32], szOldName[32];
 
        get_user_name(id, szOldName, charsmax(szOldName));
        get_user_info(id, "name", szNewName, charsmax(szNewName));
 
        if (!equal(szNewName, szOldName)) {
                if (contain(szNewName, "[16bpp]") != -1) {
                        server_cmd("kick #%d ^"for 16-bit set^"", get_user_userid(id));
                }
        }
}
__________________
QQ:116268742

Last edited by K.K.Lv; 05-13-2011 at 22:26.
K.K.Lv is offline
Send a message via MSN to K.K.Lv
 



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 04:27.


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