ok i made one now but the Problem is that when i press a the button it playes but it dosnt stop playing :S , like i play 1 note 1 time and it plays that note until i play an other note ...
here's the script
PHP Code:
//Im not using GS2 here!
//#CLIENTSIDE
function onWeaponFired() {
if (!flute){
setani idle,;
disabledefmovement();
disableweapons();
disableselectweapons();
disablepause();
disablemap();
set flute;
}}
if (keypressed&&keydown(6)){
if (flute){
enabledefmovement();
enableweapons();
enableselectweapons();
enablepause();
setani idle,;
unset flute;
}}
if (keydown2(keycode(z),false)) {
if (flute){
setani("delitto_flute-play1", "");
}}
if (keydown2(keycode(x),false)) {
if (flute){
setani("delitto_flute-play2", "");
}}
if (keydown2(keycode(c),false)) {
if (flute){
setani delitto_flute-play3,;
}}
if (keydown2(keycode(j),false)) {
if (flute){
setani delitto_flute-play4,;
}}
if (keydown2(keycode(v),false)) {
if (flute){
setani delitto_flute-play5,;
}}
if (keydown2(keycode(b),false)) {
if (flute){
setani delitto_flute-play6,;
}}
all works but i wont it to only play an note in like 1 second