Advertisement
allen343434

Untitled

Mar 23rd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. if (opt.weapons.type)
  2. {
  3. int weaponammovalue;
  4. int weapontypevalue;
  5.  
  6. CPlayer *pMyInfo = pClassManager.GetPlayerByIndex(pClassManager.GetMyIndex());
  7.  
  8. if (pMyInfo->GetWeaponType3 == 0 || pMyInfo->GetWeaponType3 == 1)
  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