AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   CSDM (https://forums.alliedmods.net/forumdisplay.php?f=87)
-   -   csdm_hold_many is not working??? (https://forums.alliedmods.net/showthread.php?t=92225)

jackliu92 05-12-2009 00:02

csdm_hold_many is not working???
 
I shows unknown command when I type in this, even on the server side, since 2.0???

If this function is not supported anymore, is it another one?

KWo 05-12-2009 14:59

Re: csdm_hold_many is not working???
 
CSDM - since 2.0 - is not using any cvar anymore. All settings You have now in csdm.cfg (amxmodx\configs folder).

jackliu92 05-12-2009 23:28

Re: csdm_hold_many is not working???
 
I know since 2.0 is not using any cvar, but it is stills support pick many?? if so, how to enable it??

KWo 05-13-2009 17:00

Re: csdm_hold_many is not working???
 
Since 2.0 You are not allowed anymore to have more than 1 weapon per slot:
Code:

bool:CanGetWeapon(id, wid, &ammo_via_offset)
{
        new slot = g_WeaponSlots[wid]

        ammo_via_offset = 0

        if(slot == 4) // grenade slot
        {
                new ammo; ammo = cs_get_user_bpammo(id, wid)
                switch(wid)
                {
                        case CSW_HEGRENADE: {
                                if(ammo >= g_iMaxNadesH)
                                        return false
                                if(ammo >= g_MaxBPAmmo[CSW_HEGRENADE])
                                        ammo_via_offset = ammo + 1
                        }
                        case CSW_SMOKEGRENADE: {
                                if(ammo >= g_iMaxNadesS)
                                        return false
                                if(ammo >= g_MaxBPAmmo[CSW_SMOKEGRENADE])
                                        ammo_via_offset = ammo + 1
                        }
                        case CSW_FLASHBANG: {
                                if(ammo >= g_iMaxNadesF)
                                        return false
                                if(ammo >= g_MaxBPAmmo[CSW_FLASHBANG])
                                        ammo_via_offset = ammo + 1
                        }
                }
        }
        else
        {
                new Weapons[MAX_WEAPONS], num
               
                get_user_weapons(id, Weapons, num)
               
                for(new i = 0; i < num; i++)
                {  // NOTE: player can have only one weapon per slot
                        if (g_WeaponSlots[Weapons[i]] == slot)
                                return false
                        /*if(i == wid)
                                return false*/
                }
        }
        return true
}

That means this feature is not supported anymore.

jackliu92 05-14-2009 00:33

Re: csdm_hold_many is not working???
 
Ummm, ill stay with 1.70 then, that's very important to my server...
and thx for reply!


All times are GMT -4. The time now is 20:35.

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