Key pressed system

Key Press System
Used to set Npc weapons to corresponding quick keys.
Or you could hide the npc from the players inventory by adding - before the weapon name. And - before its name in the call script.
Having it just rigged to the button.

Wouldn't take very long to make a customizable quick keys out of it, by just adding a few vars(i'll probably post one eventually);

[code]if (playerenters&&!isweapon) {
toweapons -keysystem;
}

if(created&&isweapon){
timeout=.05;
}
if (keypressed) {
if (keydown2(keycode(z),false)&&playerz==0) {
for (i=0;i<weaponscount;i++) {
if (strequals(#w(i),jump)) {
callweapon i,jump;
}
}
}
if (keydown2(keycode(x),false)&&playerz==0) {
for (i=0;i<weaponscount;i++) {
if (strequals(#w(i),jump)) {
callweapon i,duck;
}
}
}
if (keydown2(keycode©,false)) {
for (i=0;i<weaponscount;i++) {
if (strequals(#w(i),chakra)) {
callweapon i,weaponfired;
}
}
}
}[/code]