Duel Countdown - 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: Duel Countdown (
/showthread.php?tid=138292)
Duel Countdown -
DarkPower - 01.04.2010
i found alot of duel FS but i need script who will make when i type /duel [ID] and when player /accepduel to start countdown for that two players....

Is there any script like that or i need to make it....I know how to make it but if you find can you post link plz
Re: Duel Countdown -
Last_Stand_Guardian - 01.04.2010
Simple Countdown:
pawn Код:
forward StartCount();
forward Count2(playerid);
forward Count3(playerid);
forward Count4(playerid);
forward Count5(playerid);
forward Count6(playerid);
pawn Код:
public StartCount()
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsPlayerInDuelCondition[i])
{
GameTextForPlayer(i, "5", 1000, 3);
SetTimerEx("Count2", 1000, false, "d", i);
}
}
return 1;
}
pawn Код:
public Count2(playerid)
{
GameTextForPlayer(playerid,"4",1000,3);
SetTimerEx("Count3", 1000, false, "d", playerid);
return 1;
}
pawn Код:
public Count3(playerid)
{
GameTextForPlayer(playerid,"3",1000,3);
SetTimerEx("Count4", 1000, false, "d", playerid);
return 1;
}
pawn Код:
public Count4(playerid)
{
GameTextForPlayer(playerid,"2",1000,3);
SetTimerEx("Count5", 1000, false, "d", playerid);
return 1;
}
pawn Код:
public Count5(playerid)
{
GameTextForPlayer(playerid,"1",1000,3);
SetTimerEx("Count6", 1000, false, "d", playerid);
return 1;
}
pawn Код:
public Count6(playerid)
{
GameTextForPlayer(playerid, "GO",1000,3);
return 1;
}
Now you just have to put StartCount(); in the condition when both have accepted =D ^^