Topo GM:
new TempForPlayer[MAX_PLAYERS];new Tempo;#define InitTemp(%1) TempoParaPlayer(%1)#define EndTemp(%1) ParaTemp(%1)
Final GM:
forward TempoParaPlayer(playerid);public TempoParaPlayer(playerid){Tempo = SetTimerEx("TempoParaPlayer", 1000, false, "d", playerid);TempForPlayer[playerid] = TempForPlayer[playerid] +1;return 1;}
stock ParaTemp(aquem,Tempo)
{KillTimer(Tempo);TempForPlayer[playerid] = 0;}
Agora quando Iniciar a Corrida Ex:
InitTemp(playerid)
E para Finalizar
new tempodacorrida[128];format(tempodacorrida, sizeof(tempodacorrida), "Terminaste a Corrida em %d .",TempForPlayer[playerid]);SendClientMessage(playerid,0xFFFF00AA, tempodacorrida);EndTemp(playerid);