csdm + podbot + restrict weapon in maps
I restricted weapons on a specific map. (fy_pool_day) and retorn log error in respanm the BOTS
PHP Code:
L 08/08/2020 - 19:55:27: [CSDM2] Item "weapon_csdm_disab" failed to create
L 08/08/2020 - 19:55:27: [AMXX] Run time error 10 (plugin "csdm_equip.amxx") (native "csdm_give_item") - debug not enabled!
L 08/08/2020 - 19:55:27: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
CSDM EQUIP LINE 1182 CODIG:
PHP Code:
new item_id = csdm_give_item(id, wp)
if (item_id > 0)
{
if (wpnid == CSW_M4A1)
{
cs_set_weapon_silen(item_id, g_Silenced[id][SILENCED_M4A1], 1)
} else if (wpnid == CSW_USP) {
cs_set_weapon_silen(item_id, g_Silenced[id][SILENCED_USP], 1)
}
}
if (wpnid > 0)
{
new bpammo = g_MaxBPAmmo[wpnid]
if (bpammo)
{
cs_set_user_bpammo(id, wpnid, bpammo)
}
if (IsRestricted[wpnid])
{
if ((UsedWpsT[wpnid] < RestrictWps[wpnid]) && (team == _TEAM_T))
{
UsedWpsT[wpnid]++
}
if ((UsedWpsCT[wpnid] < RestrictWps[wpnid]) && (team == _TEAM_CT))
{
UsedWpsCT[wpnid]++
}
}
}
Can someone help me ?
__________________