Raised This Month: $ Target: $400
 0% 

about kick "[16bpp]" problem


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-15-2010 , 15:27   Re: about kick "[16bpp]" problem
Reply With Quote #11

Here they are fixed:

PHP Code:
#include <amxmodx>

public plugin_init()
    
register_plugin("[16bpp]""1.0""K.K.Lv")

public 
client_putinserver(id)
{
    new 
sz_nick[32]
    
get_user_name(idsz_nick31)

    if (
containi(sz_nick"[16bpp]") != -1)
        
server_cmd("kick #%i For 16bpp"get_user_userid(id))

PHP Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init()
{
    
register_plugin("[16bpp]""1.0""K.K.Lv")

    
register_forward(FM_ClientConnect"ClientConnect"1)
    
register_forward(FM_SetClientKeyValue"SetClientKeyValue"1)
}

public 
ClientConnect(id, const szName[])
{
    
CheckPlayer(idszName)
}

public 
SetClientKeyValue(idInfoBufferszKey[], szValue[])
{
    if( 
equal(szKey"name") )
    {
        
CheckPlayer(idszValue)
    }
}

CheckPlayer(id, const szName[])
{
    if( 
containi(szName"[16bpp]") != -)
    {
        
server_cmd("kick #%d ^"For 16bpp^""get_user_userid(id))
    }

__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 04-15-2010 , 22:12   Re: about kick "[16bpp]" problem
Reply With Quote #12

I think that client_authorized will work..
Mxnn is offline
Reply



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:05.


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