Need Help Guys. Really Need Help
#1

I have created a /count text for all players. My question is when it's counting from 5 to 1 i want it to play a sound. Here is what i have
Код:
#include <a_samp>
forward One();
forward Two();
forward Three();
forward Four();
forward Five();
forward GoGoGo();
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/count", cmdtext, true, 10) == 0)
	{
	  SetTimer("Five", 1000, 0);
	  SetTimer("Four", 2000, 0);
	  SetTimer("Three", 3000, 0);
	  SetTimer("Two", 4000, 0);
	  SetTimer("One", 5000, 0);
	  SetTimer("GoGoGo", 6000, 0);
		return 1;
	}
	return 0;
}

public One()
{
	GameTextForAll("~r~1",2000,3);
	return 1;
}

public Two()
{
	GameTextForAll("~p~2",2000,3);
	return 1;
}

public Three()
{
	GameTextForAll("~y~3",2000,3);
	return 1;
}

public Four()
{
	GameTextForAll("~b~4",2000,3);
	return 1;
}

public Five()
{
 	GameTextForAll("~w~5",2000,3);
 	return 1;
}

public GoGoGo()
{
	GameTextForAll("~g~GO GO GO!",3000,3);
	return 1;
}
Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
So i want it to play a sound on every number. I got this number's id SOUND_RACE_321 1056
but i don't know where to put it (the sounds must play for ALL players)
Reply


Messages In This Thread
Need Help Guys. Really Need Help - by yoan103 - 08.02.2010, 08:10
Re: Need Help Guys. - by Faraday - 08.02.2010, 08:16
Re: Need Help Guys. - by yoan103 - 08.02.2010, 08:17
Re: Need Help Guys. Really Need Help - by Kanji_Suzuki - 08.02.2010, 08:27
Re: Need Help Guys. Really Need Help - by yoan103 - 08.02.2010, 08:35
Re: Need Help Guys. Really Need Help - by Kanji_Suzuki - 08.02.2010, 08:37

Forum Jump:


Users browsing this thread: 6 Guest(s)