forward RelogioUPs(playerid);
public RelogioUPs(playerid)
{
minutos2[playerid]++;
TempoPayday[playerid]--;
new string[50];
if(minutos2[playerid] >= 59)
{
minutos2[playerid] = 0;
countando ++;
TempoPayday[playerid] = 59;
}
switch(countando)
{
case 1: format(string, 50,"Payday: 59:%d", TempoPayday[playerid]);
case 2: format(string, 50,"Payday: 58:%d", TempoPayday[playerid]);
case 3: format(string, 50,"Payday: 57:%d", TempoPayday[playerid]);
case 4: format(string, 50,"Payday: 56:%d", TempoPayday[playerid]);
case 5: format(string, 50,"Payday: 55:%d", TempoPayday[playerid]);
case 6: format(string, 50,"Payday: 54:%d", TempoPayday[playerid]);
case 7: format(string, 50,"Payday: 53:%d", TempoPayday[playerid]);
case 8: format(string, 50,"Payday: 52:%d", TempoPayday[playerid]);
case 9: format(string, 50,"Payday: 51:%d", TempoPayday[playerid]);
case 10: format(string, 50,"Payday: 50:%d", TempoPayday[playerid]);
case 11: format(string, 50,"Payday: 49:%d", TempoPayday[playerid]);
case 12: format(string, 50,"Payday: 48:%d", TempoPayday[playerid]);
case 13: format(string, 50,"Payday: 47:%d", TempoPayday[playerid]);
case 14: format(string, 50,"Payday: 46:%d", TempoPayday[playerid]);
case 15: format(string, 50,"Payday: 45:%d", TempoPayday[playerid]);
case 16: format(string, 50,"Payday: 44:%d", TempoPayday[playerid]);
case 17: format(string, 50,"Payday: 43:%d", TempoPayday[playerid]);
case 18: format(string, 50,"Payday: 42:%d", TempoPayday[playerid]);
case 19: format(string, 50,"Payday: 41:%d", TempoPayday[playerid]);
case 20: format(string, 50,"Payday: 40:%d", TempoPayday[playerid]);
case 21: format(string, 50,"Payday: 39:%d", TempoPayday[playerid]);
case 22: format(string, 50,"Payday: 38:%d", TempoPayday[playerid]);
case 23: format(string, 50,"Payday: 37:%d", TempoPayday[playerid]);
case 24: format(string, 50,"Payday: 36:%d", TempoPayday[playerid]);
case 25: format(string, 50,"Payday: 35:%d", TempoPayday[playerid]);
case 26: format(string, 50,"Payday: 34:%d", TempoPayday[playerid]);
case 27: format(string, 50,"Payday: 33:%d", TempoPayday[playerid]);
case 28: format(string, 50,"Payday: 32:%d", TempoPayday[playerid]);
case 29: format(string, 50,"Payday: 31:%d", TempoPayday[playerid]);
case 30: format(string, 50,"Payday: 30:%d", TempoPayday[playerid]);
case 31: format(string, 50,"Payday: 29:%d", TempoPayday[playerid]);
case 32: format(string, 50,"Payday: 28:%d", TempoPayday[playerid]);
case 33: format(string, 50,"Payday: 27:%d", TempoPayday[playerid]);
case 34: format(string, 50,"Payday: 26:%d", TempoPayday[playerid]);
case 35: format(string, 50,"Payday: 25:%d", TempoPayday[playerid]);
case 36: format(string, 50,"Payday: 24:%d", TempoPayday[playerid]);
case 37: format(string, 50,"Payday: 23:%d", TempoPayday[playerid]);
case 38: format(string, 50,"Payday: 22:%d", TempoPayday[playerid]);
case 39: format(string, 50,"Payday: 21:%d", TempoPayday[playerid]);
case 40: format(string, 50,"Payday: 20:%d", TempoPayday[playerid]);
case 41: format(string, 50,"Payday: 19:%d", TempoPayday[playerid]);
case 42: format(string, 50,"Payday: 18:%d", TempoPayday[playerid]);
case 43: format(string, 50,"Payday: 17:%d", TempoPayday[playerid]);
case 44: format(string, 50,"Payday: 16:%d", TempoPayday[playerid]);
case 45: format(string, 50,"Payday: 15:%d", TempoPayday[playerid]);
case 46: format(string, 50,"Payday: 14:%d", TempoPayday[playerid]);
case 47: format(string, 50,"Payday: 13:%d", TempoPayday[playerid]);
case 48: format(string, 50,"Payday: 12:%d", TempoPayday[playerid]);
case 49: format(string, 50,"Payday: 11:%d", TempoPayday[playerid]);
case 50: format(string, 50,"Payday: 10:%d", TempoPayday[playerid]);
case 51: format(string, 50,"Payday: 9:%d", TempoPayday[playerid]);
case 52: format(string, 50,"Payday: 8:%d", TempoPayday[playerid]);
case 53: format(string, 50,"Payday: 7:%d", TempoPayday[playerid]);
case 54: format(string, 50,"Payday: 6:%d", TempoPayday[playerid]);
case 55: format(string, 50,"Payday: 5:%d", TempoPayday[playerid]);
case 56: format(string, 50,"Payday: 4:%d", TempoPayday[playerid]);
case 57: format(string, 50,"Payday: 3:%d", TempoPayday[playerid]);
case 58: format(string, 50,"Payday: 2:%d", TempoPayday[playerid]);
case 59: format(string, 50,"Payday: 1:%d", TempoPayday[playerid]);
}
TextDrawSetString(ReloginhoUP,string);
TextDrawShowForAll(ReloginhoUP);
if(countando == 59)
{
countando = 1;
@PayDay();
}
return 1;
}
Achei estй aqui pode-ser util para vocй usa-lo https://sampforum.blast.hk/showthread.php?tid=634871
|
format( gFile, sizeof( gFile ), "Contas/%s.ini", PlayerName( playerid )); // Caminho da conta do jogador dini_IntSet( gFile, "TempoPayDay", TempoPayday[ playerid ] ); // Seta o tempo no arquivo
format( gFile, sizeof( gFile ), "Contas/%s.ini", PlayerName( playerid )); // Caminho da conta do jogador TempoPayday[ playerid ] = dini_Int( gFile, "TempoPayDay" ); // Seta o tempo no jogador
Coloca na stock que salva as informaзхes da conta do jogador:
Код:
format( gFile, sizeof( gFile ), "Contas/%s.ini", PlayerName( playerid )); // Caminho da conta do jogador dini_IntSet( gFile, "TempoPayDay", TempoPayday[ playerid ] ); // Seta o tempo no arquivo Код:
format( gFile, sizeof( gFile ), "Contas/%s.ini", PlayerName( playerid )); // Caminho da conta do jogador TempoPayday[ playerid ] = dini_Int( gFile, "TempoPayDay" ); // Seta o tempo no jogador |
format( gFile, sizeof( gFile ), "Contas/%s.ini", PlayerName( playerid )); // Caminho da conta do jogador dini_IntSet( gFile, "TempoPayDay", TempoPayday[ playerid ] ); // Seta o tempo no arquivo dini_IntSet( gFile, "MinutosPayDay", minutos2[ playerid ] ); // Seta o tempo no arquivo
format( gFile, sizeof( gFile ), "Contas/%s.ini", PlayerName( playerid )); // Caminho da conta do jogador TempoPayday[ playerid ] = dini_Int( gFile, "TempoPayDay" ); // Seta o tempo no jogador minutos2[ playerid ] = dini_Int( gFile, "MinutosPayDay" ); // Seta o tempo no jogador