Fixed a small bug in ZSpawn where if you connect, and then click cancel it thinks you have already played in the game.

This commit is contained in:
Greyscale 2009-07-08 23:22:53 -07:00
parent 6173ad0dbf
commit 7f73e77d08
2 changed files with 7 additions and 0 deletions

View File

@ -248,6 +248,7 @@ stock bool:ZRIsClientAdmin(client, AdminFlag:flag = Admin_Generic)
{
return false;
}
// If client doesn't have the Admin_Generic flag, then stop.
if (!GetAdminFlag(GetUserAdmin(client), flag))
{

View File

@ -72,6 +72,12 @@ ZSpawnOnMapStart()
*/
ZSpawnOnClientDisconnect(client)
{
// So people who are connecting that click "cancel" aren't added to the list.
if (!IsClientInGame(client))
{
return;
}
// Check if client is a bot.
if (IsFakeClient(client))
{