Raised This Month: $ Target: $400
 0% 

help with client check on client_connect


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Jack86
Veteran Member
Join Date: Dec 2008
Location: Belgrade, Serbia
Old 06-24-2009 , 12:14   help with client check on client_connect
Reply With Quote #1

This is a section of one plugin where everything else works ok, just this check doesnt. Whats wrong here ?

Code:
public client_connect(id)
{
    new sInfo[32], name[32], ip[32], cstr[32];
    get_user_name(id, name, 31);
    get_user_info(id, gBanKey, sInfo, sizeof sInfo - 1);
    get_user_ip(id, ip, 31, 1);
    get_pcvar_string(banurl,cstr,31);
    
    if(strlen(sInfo) > 0)
    {
        log_amx("Banned user (%s - %s ) tried to enter onto server", name, ip);
        server_cmd("amx_banip %s 9999 ^"Banned, for unban visit %s^"", name, cstr);
        server_exec();
        return;

    }
}
Jack86 is offline
 


Thread Tools
Display Modes

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 15:35.


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