AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   CSDM (https://forums.alliedmods.net/forumdisplay.php?f=87)
-   -   csdm + podbot + restrict weapon in maps (https://forums.alliedmods.net/showthread.php?t=326623)

rx1983 08-08-2020 20:01

csdm + podbot + restrict weapon in maps
 
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 ?


All times are GMT -4. The time now is 17:54.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.