View Single Post
Author Message
rx1983
Senior Member
Join Date: Jan 2009
Location: BRASIL
Old 08-08-2020 , 21:01   csdm + podbot + restrict weapon in maps
Reply With Quote #1

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: [CSDM2Item "weapon_csdm_disab" failed to create
L 08
/08/2020 19:55:27: [AMXXRun time error 10 (plugin "csdm_equip.amxx") (native "csdm_give_item") - debug not enabled!
L 08/08/2020 19:55:27: [AMXXTo enable debug modeadd "debug" after the plugin name in plugins.ini (without quotes). 
CSDM EQUIP LINE 1182 CODIG:

PHP Code:
    new item_id csdm_give_item(idwp)
    if (
item_id 0)
    {
        if (
wpnid == CSW_M4A1)
        {
            
cs_set_weapon_silen(item_idg_Silenced[id][SILENCED_M4A1], 1)
        } else if (
wpnid == CSW_USP) {
            
cs_set_weapon_silen(item_idg_Silenced[id][SILENCED_USP], 1)
        }
    }

    if (
wpnid 0)
    {
        new 
bpammo g_MaxBPAmmo[wpnid]
        if (
bpammo)
        {
            
cs_set_user_bpammo(idwpnidbpammo)
        }

        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 ?
__________________
rx1983 is offline
Send a message via MSN to rx1983