18.02.2018, 21:25
@wallen, you can try the code below, it's untested though.
PHP код:
stock GetIP(playerid)
{
new allplayerip[33],
playerip[33],
count = 0;
GetPlayerIp(playerid, playersip, sizeof(playersip));
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i) && i != playerid)
{
GetPlayerIp(i, allplayerip, playersip, true) == 0) count++;
}
}
return count;
}