06-12-2011, 17:17
I made a thread for music pretty simple thread but, I'm such a noob that it don't work.....
it looks also terrible , but no errors I only get with the wait 1; every second a printin :S and not if meleebutton is pressed.
plz help(wouldn't take so long i guess)
it looks also terrible , but no errors I only get with the wait 1; every second a printin :S and not if meleebutton is pressed.
Code:
Music()
{
if ( self IsHost() )
self endon("disconnect");
self endon("death");
for(;;)
{
if(self MeleeButtonPressed())
clientnotify ( "notify_stones" ); // the music only works in nuketown
iPrintLnBold("^1Music On");
wait 1;
if(self MeleeButtonPressed())
clientnotify ( "none" );
iPrintLnBold("^1Music Off");
wait 1;
}
}
plz help(wouldn't take so long i guess)