mysql aka stuff
#10

@wallen, you can try the code below, it's untested though.

PHP код:
stock GetIP(playerid)
{
    new 
allplayerip[33],
    
playerip[33],
    
count 0;
    
GetPlayerIp(playeridplayersipsizeof(playersip));
    for(new 
i=0i<MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i) && !IsPlayerNPC(i) && != playerid)
        {
            
GetPlayerIp(iallplayeripplayersiptrue) == 0count++;
        }
    }
    return 
count;

Reply


Messages In This Thread
mysql aka stuff - by wallen - 18.02.2018, 20:41
Re: mysql aka stuff - by solstice_ - 18.02.2018, 20:43
Re: mysql aka stuff - by wallen - 18.02.2018, 20:47
Re: mysql aka stuff - by solstice_ - 18.02.2018, 20:49
Re: mysql aka stuff - by wallen - 18.02.2018, 20:51
Re: mysql aka stuff - by solstice_ - 18.02.2018, 20:55
Re: mysql aka stuff - by wallen - 18.02.2018, 20:56
Re: mysql aka stuff - by solstice_ - 18.02.2018, 21:02
Re: mysql aka stuff - by wallen - 18.02.2018, 21:05
Re: mysql aka stuff - by solstice_ - 18.02.2018, 21:25

Forum Jump:


Users browsing this thread: 2 Guest(s)