15.07.2010, 09:51
I created this script:
And it works with a timer:
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!
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; } |
Quote:
SetTimer("music",595,1); |