| TitANious |
04-11-2009 13:27 |
Striping primary weapons, so it dont pile up
PHP Code:
stock GivePrimaryAmmo( id ) { new nWeapons[32], nNum, i, j, k new szWeaponName[32]
// Only give Primary Ammo for Guns Carried get_user_weapons( id, nWeapons, nNum ) for( i = 0; i < nNum; i++ ) { get_weaponname( nWeapons[i], szWeaponName, 31 ) for( j = OFFSET_SHOTGUN; j < MAX_WEAPONS; j++ ) { if( equali( szWeaponName, g_szWeaponList[j] ) ) { for( k = 0; k < g_nWeaponData[j][1]; k++ ) give_item( id, g_szAmmoList[g_nWeaponData[j][0]] ) } } } return }
Would it could be used?:shock:
And is there a way so the weapons dont drop?
|