Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new dangitbobby;
- new off = FindSendPropOffs("CAI_BaseNPC", "m_hActiveWeapon");
- if(off != -1)
- {
- activeoffset = off;
- }
- off = -1;
- off = FindSendPropOffs("CBaseCombatWeapon", "m_iAmmo");
- if(off != -1)
- {
- clipoffset = off;
- }
- dangitbobby = GetEntDataEnt2(client, activeoffset);
- new playerammo = GetEntData(dangitbobby, clipoffset);
- if(IsValidEntity(dangitbobby))
- SetEntData(dangitbobby, clipoffset, playerammo + GetConVarInt(sm_cod_scavengerammo), 4, true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement