memeboi Posted May 23, 2018 Share Posted May 23, 2018 somebody knows how to make a script so that the ak47 can refill its ammo without reloading but i want it to happen after stop shooting Link to comment Share on other sites More sharing options...
tastyBlackTiles Posted June 14, 2018 Share Posted June 14, 2018 (edited) On 5/23/2018 at 11:18 AM, memeboi said: somebody knows how to make a script so that the ak47 can refill its ammo without reloading but i want it to happen after stop shooting For AK47 only: {$CLEO} thread 'AK47' while true wait 0 if Player.Defined($PLAYER_CHAR) then if 02D8: actor $PLAYER_ACTOR current_weapon == 30 then 0331: set_player $PLAYER_CHAR fast_reload 1 // enabled if the player is holding AK-47 else 0331: set_player $PLAYER_CHAR fast_reload 0 // disabled if the player is not holding AK-47 end end end For all weapons, use opcode 0331 anywhere in your script. Opcode 0331 was never tested in SA. Edited June 14, 2018 by tastyBlackTiles Link to comment Share on other sites More sharing options...
Sanmodder Posted June 15, 2018 Share Posted June 15, 2018 On 5/23/2018 at 5:18 AM, memeboi said: somebody knows how to make a script so that the ak47 can refill its ammo without reloading but i want it to happen after stop shooting {$CLEO .cs} 0000: nop wait 0 0A8C: write_memory 0x969178 size 4 value 1 virtual_protect 0 end_thread {0x969178 - Infinite Ammo, No Reload} NicusorN5 1 Link to comment Share on other sites More sharing options...
spaceeinstein Posted June 15, 2018 Share Posted June 15, 2018 Sanmodder, that would affect all weapons, not just the AK47. tastyBlackTiles's code looks like it satisfies the request. Link to comment Share on other sites More sharing options...
memeboi Posted June 16, 2018 Author Share Posted June 16, 2018 On 6/13/2018 at 11:58 PM, tastyBlackTiles said: For AK47 only: {$CLEO} thread 'AK47' while true wait 0 if Player.Defined($PLAYER_CHAR) then if 02D8: actor $PLAYER_ACTOR current_weapon == 30 then 0331: set_player $PLAYER_CHAR fast_reload 1 // enabled if the player is holding AK-47 else 0331: set_player $PLAYER_CHAR fast_reload 0 // disabled if the player is not holding AK-47 end end end For all weapons, use opcode 0331 anywhere in your script. Opcode 0331 was never tested in SA. i compiled it on sanny bulider but i doesn't work i will still reload after wasting all 30 bullets from the mag Link to comment Share on other sites More sharing options...