Advertisement
allen343434

Untitled

Mar 21st, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. int weaponammovalue;
  2. int weapontypevalue;
  3.  
  4. CPlayer *pMyInfo = pClassManager.GetPlayerByIndex(pClassManager.GetMyIndex());
  5.  
  6. if (pMyInfo->GetWeaponType1 != 7)
  7. {
  8. if (pMyInfo->GetWeaponType1 != 0)
  9. {
  10. if (opt.weapons.type == 1) { weaponammovalue = 125; weapontypevalue = 7; }//RGD
  11. if (opt.weapons.type == 2) { weaponammovalue = 566; weapontypevalue = 7; }//Freezer
  12. if (opt.weapons.type == 3) { weaponammovalue = 109; weapontypevalue = 7; }//m67
  13. if (opt.weapons.type == 4) { weaponammovalue = 128; weapontypevalue = 7; }//VX
  14. if (opt.weapons.type == 5) { weaponammovalue = 114; weapontypevalue = 7; }//fb
  15. if (opt.weapons.type == 6) { weaponammovalue = 115; weapontypevalue = 7; }//Smoke
  16.  
  17. pMyInfo->GetWeaponAmmo1 = weaponammovalue;
  18. pMyInfo->GetWeaponType1 = weapontypevalue;
  19.  
  20. opt.weapons.ammo = 1;
  21. PatchBytes((PVOID)(GRENADE), (PBYTE)"\x85\x8D\x00\x00\x00\x8B", 6);
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement