Music script
#1

I created this script:
Quote:

forward music();

public music()
{
new i;
for(i=0; i<=MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInRangeOfPoint(i, 35, 100, 100, 100))
{
GameTextForPlayer(i, "~w~Music is now ~g~on", 5000, 5);
PlayerPlaySound(i, 1068, 100, 100, 100);


}else{

GameTextForPlayer(i, "~w~Music is now ~r~off", 5000, 5);
PlayerPlaySound(i, 1069, 100, 100, 100);
}

}
}return 1;
}

And it works with a timer:

Quote:

SetTimer("music",595,1);

But it doens't work. Well i mean that nothing work. It doesn't show the textdraw + the music don't work. Someone here knows why? And if you have any suggestion about a script that turn on a music when the player is in a certain part of the map and turn it off when he leave the area please post it here!
Reply


Messages In This Thread
Music script - by Loppa - 15.07.2010, 09:51
Re: Music script - by Lorenc_ - 15.07.2010, 10:01
Re: Music script - by (SF)Noobanatior - 15.07.2010, 10:12
Re: Music script - by Finn - 15.07.2010, 10:22
Re: Music script - by Joe_ - 15.07.2010, 10:35
Re: Music script - by Hiddos - 15.07.2010, 12:34

Forum Jump:


Users browsing this thread: 1 Guest(s)