Raised This Month: $ Target: $400
 0% 

Check values in names


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Racoon
Senior Member
Join Date: Mar 2008
Location: Ukraine
Old 01-04-2011 , 13:36   Re: Check values in names
Reply With Quote #4

Ok, I need to ban fake players with names, which consist of digits. They keep flooding the server via proxies, so it's not possible to ban them all. The code below doesn't work. All players are kicked instead.
PHP Code:
#include <amxmodx>

public plugin_init() 
{
    
register_plugin("Antifake""0.1""Racoon")
}

public 
client_authorized(id)
{
    new 
name[32]
    
read_argv(1,name,31)
    if(!
is_str_num(name))
    {
        
server_cmd("kick #%d ^"F*CK YOUfake Player!^""get_user_userid(id))
    }

Racoon is offline
Send a message via ICQ to Racoon
 



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 01:57.


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