buy enabled == gun giving disabled
authorDavid Anderson <dvander@alliedmods.net>
Sun Jul 01 01:26:03 2007 +0000 (2007-07-01)
changeset 20100bb7fde664
parent 19 4a79c2770e9e
child 21 158fd55fde91
buy enabled == gun giving disabled
scripting/dm_equipment.sp
     1.1 --- a/scripting/dm_equipment.sp	Thu Jun 28 16:33:05 2007 +0000
     1.2 +++ b/scripting/dm_equipment.sp	Sun Jul 01 01:26:03 2007 +0000
     1.3 @@ -217,7 +217,7 @@
     1.4  		}
     1.5  		GiveGrenades(client, g_BotFlashes, g_BotHEs, g_BotSmokes);
     1.6  	}
     1.7 -	if (g_SpawnTimers[client] == INVALID_HANDLE)
     1.8 +	if (!g_AllowBuy && g_SpawnTimers[client] == INVALID_HANDLE)
     1.9  	{
    1.10  		/* Small delay - we want to avoid ResetHUD */
    1.11  		g_SpawnTimers[client] = CreateTimer(0.1, PlayerPostSpawn, client);