Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (opt.weapons.type)
- {
- int weaponammovalue;
- int weapontypevalue;
- CPlayer *pMyInfo = pClassManager.GetPlayerByIndex(pClassManager.GetMyIndex());
- if (pMyInfo->GetWeaponType3 == 0 || pMyInfo->GetWeaponType3 == 1)
- {
- if (opt.weapons.type == 1) { weaponammovalue = 125; weapontypevalue = 7; }//RGD
- if (opt.weapons.type == 2) { weaponammovalue = 566; weapontypevalue = 7; }//Freezer
- if (opt.weapons.type == 3) { weaponammovalue = 109; weapontypevalue = 7; }//m67
- if (opt.weapons.type == 4) { weaponammovalue = 128; weapontypevalue = 7; }//VX
- if (opt.weapons.type == 5) { weaponammovalue = 114; weapontypevalue = 7; }//fb
- if (opt.weapons.type == 6) { weaponammovalue = 115; weapontypevalue = 7; }//Smoke
- pMyInfo->GetWeaponAmmo1 = weaponammovalue;
- pMyInfo->GetWeaponType1 = weapontypevalue;
- opt.weapons.ammo = 1;
- PatchBytes((PVOID)(GRENADE), (PBYTE)"\x85\x8D\x00\x00\x00\x8B", 6);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement