07.02.2011, 17:30
Ok, at my previous topic nobody could reply/solve my problem...
[DERBY]
So you see i'm working for a derby server. But now i need much timers, and i don't know how to use it x)
I have already a countdown but i want another countdown for a round. The round takes 15 minutes ...
So i have that already:
But i want to add the countdown on the screen ... so the ppl can see the round-countdown, like not i the middle of the screen but in the right corner ... on the bottom.
(if i need more help i'll post it here
)
Plzz help with my timers (a) ;pp
[DERBY]
So you see i'm working for a derby server. But now i need much timers, and i don't know how to use it x)
I have already a countdown but i want another countdown for a round. The round takes 15 minutes ...
So i have that already:
pawn Код:
//above:
forward EndRound();
//OnGameModeInit()
SetTimer("EndRound",900000,0);
//so 1second = 1000 and 60sec/1min = 60000 AND 15min = 900 000 Im i right ? x)
//And this is my public:
public EndRound()
{
new winnername[MAX_PLAYER_NAME];
new wintext[256];
if (IsPlayerInAnyVehicle(playerid))
{
SendClientMessageToAll(COLOR_ORANGE, "The round has finished !");
}
else
{
GameTextForAll("Round Finished!", 5000, 5);
GetPlayerName(playerid,winnername,256);
format(wintext,256,"%s has won the match!",winnername);
SendClientMessageToAll(COLOR_ORANGE,wintext);
SendClientMessageToAll(COLOR_ORANGE, "New round start soon ...");
}
}
(if i need more help i'll post it here
)Plzz help with my timers (a) ;pp


