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:
parent
6173ad0dbf
commit
7f73e77d08
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user