[pawn]forward count();
forward counter();
public OnGameModeInit()
{
SetTimer(\"Counter\", 4500, true);
return 1;J
}
new ctimer=-1, ccc[128];
new bool:timer1 = false;
public count() {
if(ctimer == 1) {
ctimer = -1;
for(new integer=0;integer < MAX_PLAYERS; integer++)
if(IsPlayerConnected(integer) && IsPlayerInAnyVehicle(integer))
GameTextForPlayer(integer,\"~g~GO\",2000,5);
return 1; }
ctimer--;
format(ccc,128,\"%d\",ctimer);
for(new integer=0;integer < MAX_PLAYERS; integer++)
if(IsPlayerInAnyVehicle(integer) && IsPlayerConnected(integer))
GameTextForPlayer(integer,ccc,1000,5);
SetTimer(\"count\",1000,0);
return 1; }
CMD:count(playerid, params[])
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WHITE, \"** {DBD7D2}Csak {E9D66B}jármûben {DBD7D2}indíthatsz {E9D66B}visszaszámlálást{DBD7D2}!\");
if(ctimer != -1) return SendClientMessage(playerid,COLOR_WHITE,\"** {DBD7D2}Jelenleg {E9D66B}megy {DBD7D2}a {E9D66B}visszaszámláló{DBD7D2}! Kérlek várd meg míg {E9D66B}lejár{DBD7D2}!\");
if(timer1 == true) return SendClientMessage(playerid,COLOR_WHITE,\" Még nem indíthatsz visszaszámlálást!\");
ctimer = 5;
count();
timer1 = true;
return 1;
}
public Counter()
{
timer1 = false;
}[/pawn]