 |
|
Junior Member
|

05-14-2011
, 03:13
Re: 16 bit not give kick :|
|
#7
|
Quote:
Originally Posted by K.K.Lv
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
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 
|
|
|
|