Help with two problem??? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with two problem??? (
/showthread.php?tid=88804)
Help with two problem??? -
Fukara_GM - 28.07.2009
1 - ) If cops team score 10 send message Cops are win!!
2 - ) Countdown from 10 minute and show it with TextDraw (10:00 9:59 9:58 9:57...)
3 - ) And If CountDown 0:00 Send message Round finished... If team score < 10 thiefts win If team score > 10 cops win
How can I do those
Sorry for English
Thanks for replys
Re: Help with two problem??? -
Mr_Finnigan - 28.07.2009
Код:
public EndGameTimer()
{
new string[128];
if(copsscore == 10)
{
format(string,sizeof(string),"~r~Cops Have Won");
GameTextForAll(string, 5000, 5);
SetTimer("RestartGameMode", 10000, false);
}
else if(otherteamscore == 10)
{
format(string,sizeof(string),"~r~OtherTeam Wins");
GameTextForAll(string, 5000, 5);
SetTimer("RestartGameMode", 10000, false);
}
}
public RestartGameMode()
{
SendClientMessageToAll(COLOR_YELLOW, "Game has been completed, restarting gamemode to start again");
SendRconCommand("gmx");
}
Something like this?
Re: Help with two problem??? -
Fukara_GM - 28.07.2009
yeah but how can i start countdown with textdraw
Re: Help with two problem??? -
Fukara_GM - 28.07.2009
help please