AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Striping primary weapons, so it dont pile up (https://forums.alliedmods.net/showthread.php?t=89871)

TitANious 04-11-2009 13:27

Striping primary weapons, so it dont pile up
 
PHP Code:

stock GivePrimaryAmmoid )
{
    new 
nWeapons[32], nNumijk
    
new szWeaponName[32]

    
// Only give Primary Ammo for Guns Carried
    
get_user_weaponsidnWeaponsnNum )
    for( 
0nNumi++ )
    {
        
get_weaponnamenWeapons[i], szWeaponName31 )
        for( 
OFFSET_SHOTGUNMAX_WEAPONSj++ )
        {
            if( 
equaliszWeaponNameg_szWeaponList[j] ) )
            {
                for( 
0g_nWeaponData[j][1]; k++ )
                    
give_itemidg_szAmmoList[g_nWeaponData[j][0]] )
            }
        }
    }
    return


Would it could be used?:shock:
And is there a way so the weapons dont drop?


All times are GMT -4. The time now is 02:24.

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