Raised This Month: $ Target: $400
 0% 

[HELP] KICK BY IP , get_players, players in loading time


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
redred
New Member
Join Date: Apr 2007
Old 05-26-2009 , 13:38   [HELP] KICK BY IP , get_players, players in loading time
Reply With Quote #1

Code:
    get_players(iPlayers, iPlayerNum, "ch")

    for (new i = 0; i < iPlayerNum; i++)
    {
        get_user_ip(iPlayers[i], szIP, 19, 1)

        if (equali(szIP, arg, 19))

        if (reason[0])
            server_cmd("kick #%d ^"%s^"", get_user_userid(iPlayers[i]), reason)
        else
            server_cmd("kick #%d BCheat is enabled on this server.", get_user_userid(iPlayers[i]))
    }
so this is my code, i am trying to kick user by ip, because i not have steamid. get_players not include players that loading models,or in connecting progress, so what can i do to get all players that in connect progress, or other way to kick some one by ip?

thx , red red.
redred 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 01:35.


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