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)



![[Image: r212360a129ce9b84444093b6cd2699013a1fbn155.png]](http://roflsaurus.com/users/public/r212360a129ce9b84444093b6cd2699013a1fbn155.png)

![[Image: tagssmall.png]](http://i1212.photobucket.com/albums/cc459/rotceh_dnih/tagssmall.png)