22/10/2021 17:07
(Esta mensagem foi modificada pela última vez a: 22/10/2021 17:10 por Lightz/Conta nova.)
(22/10/2021 16:06)EXPEDITO_011 Escreveu: Opa, queria saber como mostrar o timer na tela contando os segundos e horas na tela tipo cadeia admin
Irei mandar um exemplo:
Código PHP:
public OnGameModeInit()
{
SetTimer("Payday", 3600000, 1);
return 1;
}
forward PayDay();
public PayDay()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new String[70];
format(String, sizeof(String), "PayDay: ~r~~h~~h~(%d:%d)", Horas, Minutos);
GameTextForAll(String, 3600000,3);
}
}
return 1;
}