new g_PlayerConnections[MAX_PLAYERS];
 
stock PlayerConnected(UserIndex) {
  g_PlayerConnections[UserIndex]=1;
}
 
stock PlayerDisconnected(UserIndex) {
  g_PlayerConnections[UserIndex]=0;
}
 
stock IsPlayerConnected(UserIndex) {
  return g_PlayerConnections[UserIndex];
}