parent
945df342d8
commit
1706fdfed9
@ -157,6 +157,7 @@ void CHalfLife2::OnSourceModAllInitialized_Post()
|
||||
m_CSGOBadList.add("m_flFallbackWear");
|
||||
m_CSGOBadList.add("m_nFallbackStatTrak");
|
||||
m_CSGOBadList.add("m_iCompetitiveRanking");
|
||||
m_CSGOBadList.add("m_iCompetitiveRankType");
|
||||
m_CSGOBadList.add("m_nActiveCoinRank");
|
||||
m_CSGOBadList.add("m_nMusicID");
|
||||
#endif
|
||||
|
@ -149,7 +149,7 @@ static cell_t GiveNamedItem(IPluginContext *pContext, const cell_t *params)
|
||||
char *pWeaponName;
|
||||
pContext->LocalToString(params[2], &pWeaponName);
|
||||
|
||||
// Don't allow knives other than weapon_knife, weapon_knifegg, and wewapon_knife_t.
|
||||
// Don't allow knives other than weapon_knife, weapon_knifegg, and weapon_knife_t.
|
||||
// Others follow pattern weapon_knife_*
|
||||
size_t len = strlen(pWeaponName);
|
||||
if (len >= 14 && strnicmp(pWeaponName, "weapon_knife_", 13) == 0 && !(pWeaponName[13] == 't' && pWeaponName[14] == '\0'))
|
||||
|
Loading…
Reference in New Issue
Block a user