Advertisement
captmicro

Untitled

Oct 16th, 2010
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. new dangitbobby;
  2. new off = FindSendPropOffs("CAI_BaseNPC", "m_hActiveWeapon");
  3. if(off != -1)
  4. {
  5. activeoffset = off;
  6. }
  7. off = -1;
  8. off = FindSendPropOffs("CBaseCombatWeapon", "m_iAmmo");
  9. if(off != -1)
  10. {
  11. clipoffset = off;
  12. }
  13. dangitbobby = GetEntDataEnt2(client, activeoffset);
  14. new playerammo = GetEntData(dangitbobby, clipoffset);
  15. if(IsValidEntity(dangitbobby))
  16. SetEntData(dangitbobby, clipoffset, playerammo + GetConVarInt(sm_cod_scavengerammo), 4, true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement