change a weapon do something like
NPC Code:
//find and make current weapon
if (!strequals(#w,*Net)&&weaponsenabled) {
for (this.i=0;this.i<weaponscount;this.i++) {
if (strequals(#w(this.i),*Net)) { selectedweapon=this.i; this.i=weaponscount+1; }
}
}
callweapon is like callnpc
make a weapon that has like
NPC Code:
if (killplayer) { playerhearts=0; }
then make a thing that calls it
NPC Code:
if (playertouchsme) {
for (this.i=0;this.i<weaponscount;this.i++) {
callweapon this.i,killplayer;
}
}