08.02.2010, 08:10
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
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)
Код:
#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
but i don't know where to put it (the sounds must play for ALL players)