libdo

Untitled

Oct 15th, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include < amxmodx > #include < cstrike > #include < hamsandwich > #define m_pPlayer 41 #define m_iId 43 public plugin_init( ) {     new szWeaponName[ 32 ];     for( new i = CSW_P228; i <= CSW_P90; i++ )     {         if( get_weaponname( i, szWeaponName, charsmax( szWeaponName ) ) )         {             RegisterHam( Ham_Item_Deploy, szWeaponName, "HamWeaponDeployPost", 1 );         }     } } public HamWeaponDeployPost( iEntity ) {     new iPlayer = get_pdata_cbase( iEntity, m_pPlayer, 4 );     new iWeaponID = get_pdata_int( iEntity, m_iId, 4 );         cs_set_weapon_ammo( iEntity, 0 );     cs_set_user_bpammo( iPlayer, iWeaponID, 0 ); }
Add Comment
Please, Sign In to add comment