Checking how much players are currently online
#10

Maybe a better way than looping.

pawn Код:
new gConnectedPlayers = 0;
public OnPlayerConnect(playerid)
{
    ++gConnectedPlayers;
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    --gConnectedPlayers;
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)