AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] KICK BY IP , get_players, players in loading time (https://forums.alliedmods.net/showthread.php?t=93242)

redred 05-26-2009 13:38

[HELP] KICK BY IP , get_players, players in loading time
 
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.

Hunter-Digital 05-27-2009 03:25

Re: [HELP] KICK BY IP , get_players, players in loading time
 
client_connect(id) is when a player starts connecting the server, that's in loading time, client_putinserver(id) is when the loading time finishes and he'll be showed the taem menu and motd and stuff


All times are GMT -4. The time now is 01:35.

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