Skip to content

Commit 451509a

Browse files
committed
Small bugfix to half-time
- players could pick up the weapon dropped by a teammate between half-time change
1 parent 34d4da3 commit 451509a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripting/mix_system.sma

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#define PLUGIN "Mix System ~ Fastcup Mode"
4343
#endif
4444

45-
#define VERSION "2.19.6"
45+
#define VERSION "2.19.7"
4646
#define AUTHOR "Shadows Adi"
4747

4848
#define IsPlayer(%1) ((1 <= %1 <= MAX_PLAYERS) && is_user_connected(%1))
@@ -1169,7 +1169,7 @@ public DatabaseConnect()
11691169

11701170
if(g_iSqlConnection == Empty_Handle)
11711171
{
1172-
log_to_file("mix_system.log", "%s Failed to connect to database. Make sure databse settings are right!", g_ePluginSettings[szPrefix])
1172+
log_to_file("mix_system.log", "%s Failed to connect to database. Make sure databse settings are right! Error: %s", g_ePluginSettings[szPrefix], g_szSqlError)
11731173
return
11741174
}
11751175

@@ -1301,7 +1301,7 @@ public RG_Weapon_Remove(iEnt, const szModelName[])
13011301

13021302
public RG_CSGameRules_CanHavePlayerItem_Pre(id, item)
13031303
{
1304-
if(g_eBooleans[bIsKnife])
1304+
if(g_eBooleans[bIsKnife] || get_member_game(m_bCTCantBuy) || get_member_game(m_bTCantBuy))
13051305
{
13061306
if(get_member(item, m_iId) == WEAPON_KNIFE)
13071307
return

0 commit comments

Comments
 (0)