Without getting into too much detail on how it works, you can compare the int "loaded" to a boolean array of size 32. So say you want to check if a player is connected, you can do it like this, note that the bool method is in comments
Code:
new Connected //new bool:Connected[33]
#define get_bit(%2,%1) (%1 & (1<<(%2&31)))
#define set_bit(%2,%1) (%1 |= (1<<(%2&31)))
#define rem_bit(%2,%1) (%1 &= ~(1 <<(%2&31)))
public client_connect(id)
{
set_bit(id, Connected) // Connected[id] = true;
}
public client_disconnect(id)
{
rem_bit(id, Connected) // Connected[id] = false;
}
public IsClientConnected(id)
{
if(get_bit(id, Connected)) //if(Connected[id])
{
//Player is connected
}
else
{
//Player is not connected
}
}