aqubjukr
Well-Known Member
I'm trying to set a storagevalue to cancel the removecount for as long as the player has storage, but i didn't got.
Interval to be modifie:
Complete SRC: Src
One of my failed attempts:
I believe it is not very difficult, but I have no experience in dealing with sources.
Interval to be modifie:
C++:
case WEAPONACTION_REMOVECOUNT:
if (g_config.getBoolean(ConfigManager::REMOVE_WEAPON_AMMO)) {
Weapon::decrementItemCount(item);
}
Complete SRC: Src
One of my failed attempts:
C++:
case WEAPONACTION_REMOVECOUNT:
if (g_config.getBoolean(ConfigManager::REMOVE_WEAPON_AMMO)) {
Weapon::decrementItemCount(item);
player->updateSupplyTracker(item);
} else if (
int32_t value;
player->getStorageValue(555845, value)){
return false;
}
I believe it is not very difficult, but I have no experience in dealing with sources.