I see one major problem right off in state=0 for both scripts.
here is the first one...
:state=0:settargetname=cs1
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\user\fundsmp40.dds,hudname=ak1ksorry,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\user\confirmm9.dds,hudname=ak1kbuyornot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupanitem.tga,hudname=itemprompt,hudhide=1,hudmake=display,state=2
....and the second one....
:state=0:settargetname=cs1
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\user\fundsmp40.dds,hudname=ak1ksorry,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\user\confirmm9.dds,hudname=ak1kbuyornot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupanitem.tga,hudname=itemprompt,hudhide=1,hudmake=display,state=2
You are creating the same huds for the weapons.
Look at the paths...
hudimagefine=gamecore\huds\user\fundsmp40.dds
and
hudimagefine=gamecore\huds\user\confirmm9.dds
You use the same huds in both scripts and not the ones you need.
The first one should be...
hudimagefine=gamecore\huds\user\fundsm9.dds
and
hudimagefine=gamecore\huds\user\confirmm9.dds
and the second should be...
hudimagefine=gamecore\huds\user\fundsp226.dds
and
hudimagefine=gamecore\huds\user\confirmp226.dds
Remember, you need unique HUDs for each unique weapon.
The names should correspond as well, like...
m9sorry
m9buyornot
and
p226sorry
p226buyornot
Then you need to change the names for displaying to match those new names.
Try this
;Artificial Intelligence Script By Conjured Entertainment
;Header
desc = Pickup M9 for 600 Cash
;Triggers
:plrwithinzone=0,activated=9:activate=0,hudunshow=m9buyornot,hudunshow=m9sorry,state=2
:state=0:settargetname=cs1
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\user\fundsm9.dds,hudname=m9sorry,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\user\confirmm9.dds,hudname=m9buyornot,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupanitem.tga,hudname=itemprompt,hudhide=1,hudmake=display,state=2
:state=1:rundecal=5
:state=2,plrdistwithin=40:activate=9,globalvar=1,state=3
:state=3,varless=600:state=4
:state=3,varequal=600:state=5
:state=3,vargreater=600:state=5
:state=4:hudshow=m9sorry
:state=4,plrwithinzone=0,activated=9:activate=0,hudunshow=m9buyornot,hudunshow=m9sorry,state=2
:state=5:hudshow=m9buyornot,state=6
:state=6,scancodekeypressed=21:hudunshow=m9buyornot,hudunshow=m9sorry,state=10
:state=6,scancodekeypressed=49:hudunshow=m9buyornot,hudunshow=m9sorry,state=7
:state=6,plrwithinzone=0,activated=9:activate=0,hudunshow=m9buyornot,hudunshow=m9sorry,state=2
:state=7,plrwithinzone=0,activated=9:activate=0,state=2
:state=10:globalvar=1,decvar=600,activatetarget=13,playertake,coloff,plrsound=audiobank\misc\ping.wav,hudshow=itemprompt,hudfadeout=itemprompt,state=1
;End of Script
for the m9
Don't forget to ensure that you have the fundsm9.dds and the confirmm9.dds created and in the right folder.
Then make the same changes for the p226 to make it unique to that weapon. (replace all m9 with p226)
Let me know what happens.