if (playertouchsme) {
setstring Ammo,15;
toweapons name;
}
if (weaponfired) {
i = strtofloat(#s(Ammo)) - 1;
play fire.wav;
if (i == 0) {
setstring Ammo,;
destroy;
}
setstring Ammo,#v(i);
}
If you where smart, you would look on the npc scripting page first ;/
http://www.graal2001.com/levelsnpc/npc-guide.php