NoAdminTools: more fixes

This commit is contained in:
Dogan 2019-06-16 00:13:49 +02:00
parent b89747bba0
commit 06d15e793d

View File

@ -92,7 +92,7 @@ public void OnClientDisconnect(int client)
CheckRatio(); CheckRatio();
} }
public void OnClientConnected(int client) public void OnClientPutInServer(int client)
{ {
CheckRatio(); CheckRatio();
} }
@ -181,7 +181,7 @@ public void CheckRatio()
iSelfExtendsPlayers++; iSelfExtendsPlayers++;
} }
iPlayersNeeded = RoundToFloor(float(iSelfExtendsPlayers) * g_fSelfExtendsRatio); iPlayersNeeded = RoundToFloor(float(iPlayers) * g_fSelfExtendsRatio);
if(iSelfExtendsPlayers >= iPlayersNeeded) if(iSelfExtendsPlayers >= iPlayersNeeded)
{ {