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.