Raised This Month: $ Target: $400
 0% 

Kick for ip


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
bumbastik
Member
Join Date: Jan 2007
Old 06-26-2007 , 08:57   Re: Kick for ip
Reply With Quote #7

Hmmm sexy code)) Its work, but reason can be only one word ((. Oh yes, can you make that after kick player, some messages print in chat and in console. I try something:
Code:
public client_putinserver(id)
{
    new playerIP[64]
    get_user_ip(id,playerIP,63,1);
    
    new i;
    for(i=0;i<sizeof(IP_TO_KICK);i++)
    {
        if(equal(playerIP,IP_TO_KICK[i]))
        {    new name[32]
    get_user_name(id, name, 31)
               new userId = get_user_userid(id)
                server_cmd("amx_kick #%d %s",userId,KickReason);
    client_cmd(id, "echo ^"BlahBlahBlah^"; disconnect")
    client_print(0, print_chat, "BlahBlahBlah %s kicked!", name)
     }
    }
}
Not work(((
bumbastik 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 21:34.


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