Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float OgBwepData[1][500];
- bool SetWepData2, StoreWepData2;
- void OneClip( int Correct )
- {
- if( !StoreWepData2 )
- {
- cWeaponMgr* WepMgr = *(cWeaponMgr**)ADDR_WEAPONMGR;
- if( WepMgr )
- {
- for( int i = 0; i < WepMgr->WeaponCount; i++ )
- {
- cWeaponInfo* Wep = WepMgr->Weapons[i];
- if( Wep )
- {
- OgBwepData[0][i] = Wep->dwShotsPerClip;
- }
- }
- }
- StoreWepData2 = true;
- }
- if( Correct )
- {
- if( SetWepData2 )
- {
- cWeaponMgr* WepMgr = *(cWeaponMgr**)ADDR_WEAPONMGR;
- if( WepMgr )
- {
- for( int i = 0; i < WepMgr->WeaponCount; i++ )
- {
- cWeaponInfo* Wep = WepMgr->Weapons[i];
- if( Wep )
- {
- Wep->dwShotsPerClip = 999;
- }
- }
- }
- SetWepData2 = false;
- }
- }
- if(!Correct)
- {
- if( !SetWepData2 )
- {
- cWeaponMgr* WepMgr = *(cWeaponMgr**)ADDR_WEAPONMGR;
- if( WepMgr )
- {
- for( int i = 0; i < WepMgr->WeaponCount; i++ )
- {
- cWeaponInfo* Wep = WepMgr->Weapons[i];
- if( Wep )
- {
- Wep->dwShotsPerClip = OgBwepData[0][i];
- }
- }
- }
- SetWepData2 = true;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement