new Contar;
forward Contar3(playerid);
forward Contar2(playerid);
forward Contar1(playerid);
forward Correr(playerid);
//public OnPlayerCommandText(playerid, cmdtext[])
if(strcmp(cmd, "/contar", true) == 0)
{
if (Contar == 1) return SendClientMessage(playerid, Vermelho, "Contagem em Progresso!");
GetPlayerName(playerid, sendername, sizeof(sendername));
new string[256];
format(string, sizeof(string), "%s Começou a contagem!", sendername);
Contar = 1;
SetTimerEx("Contar3", 500, false, "d", playerid);
SendClientMessageToAll(Amarelo, string);
return 1;
}
//Final do GM ( Bem no Final )
public Contar3(playerid)
{
SetTimerEx("Contar2", 1000, false, "d", playerid);
for(new i = 0; i < MAX_PLAYERS; i++)
{
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
}
GameTextForAll("~b~[3]", 1500, 3);
return 1;
}
public Contar2(playerid)
{
SetTimerEx("Contar1", 1000, false, "d", playerid);
for(new i = 0; i < MAX_PLAYERS; i++)
{
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
}
GameTextForAll("~b~[2]", 1500, 3);
return 1;
}
public Contar1(playerid)
{
SetTimerEx("Correr", 1000, false, "d", playerid);
for(new i = 0; i < MAX_PLAYERS; i++)
{
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
}
GameTextForAll("~b~[1]", 1500, 3);
return 1;
}
public Correr(playerid)
{
Contar = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
}
GameTextForAll("~r~Go!Go!Go!", 1500, 3);
return 1;
}
By GTA