Raised This Month: $ Target: $400
 0% 

16 bit not give kick :|


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
jellytin
Junior Member
Join Date: May 2011
Old 05-14-2011 , 03:13   Re: 16 bit not give kick :|
Reply With Quote #7

Quote:
Originally Posted by K.K.Lv View Post
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!
Quote:
Originally Posted by K.K.Lv View Post

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));
                }
        }
}


this give kick when i change in server for 16 bit i need when player come to my serve and the mode give him kick because he use 16 bit

jellytin is offline
 



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