;Artificial Intelligence Script By Conjured Entertainment
;Header
desc = Pickup Ak-47 for 200 Cash
;Triggers
:plrwithinzone=0,activated=9:activate=0,hudunshow=ak47buyornota,hudunshow=ak47sorrya,state=2
:state=0:settargetname=cs1
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\Zombie Mod\Ammo\mp40_b.png,hudname=ak47sorrya,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\Zombie Mod\Ammo\mp40_a.png,hudname=ak47buyornota,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupaweapon.tga,hudname=weaponprompt,hudhide=1,hudmake=display,state=2
:state=1:rundecal=5
:state=2,plrdistwithin=40:activate=9,globalvar=1,state=3
:state=3,varless=200:state=4
:state=3,varequal=200:state=5
:state=3,vargreater=200:state=5
:state=4:hudshow=ak47sorrya
:state=4,plrwithinzone=0,activated=9:activate=0,hudunshow=ak47buyornota,hudunshow=ak47sorrya,state=2
:state=5:hudshow=ak47buyornota,state=6
:state=6,scancodekeypressed=21:hudunshow=ak47buyornota,hudunshow=ak47sorrya,state=10
:state=6,scancodekeypressed=49:hudunshow=ak47buyornota,hudunshow=ak47sorrya,state=7
:state=6,plrwithinzone=0,activated=9:activate=0,hudunshow=ak47buyornota,hudunshow=ak47sorrya,state=2
:state=7,plrwithinzone=0,activated=9:activate=0,state=2
:state=10:globalvar=1,decvar=200,activatetarget=13,state=1,playertake,playertake,playertake,coloff,rundecal=-1,plrsound=audiobank\items\pickupweapon.wav,hudshow=weaponprompt,hudfadeout=weaponprompt
;End of Script
It gives me an error when I use it.