Ja tentei por o payday para aparecer pra cada player mais a textdraw não aparece. Algueem poderia me ajudar ?
PHP Code:
TDEditor_TD[4] = TextDrawCreate(499.000000, 96.000000, "");
TextDrawBackgroundColor(TDEditor_TD[4], 255);
TextDrawFont(TDEditor_TD[4], 1);
TextDrawLetterSize(TDEditor_TD[4], 0.359999,2.400000);
TextDrawColor(TDEditor_TD[4], -1);
TextDrawSetOutline(TDEditor_TD[4], 0);
TextDrawSetProportional(TDEditor_TD[4], 1);
PHP Code:
TextDrawShowForPlayer(playerid, TDEditor_TD[4]);
PHP Code:
forward RelogioUPs();
public RelogioUPs()
{
minutos2++;
TempoPayday--;
new string[50];
if(minutos2 >= 60)
{
minutos2 = 0;
countando ++;
TempoPayday = 60;
}
switch(countando)
{
case 1: format(string, 50,"Payday: 60:%d", TempoPayday);
case 2: format(string, 50,"Payday: 59:%d", TempoPayday);
case 3: format(string, 50,"Payday: 58:%d", TempoPayday);
case 4: format(string, 50,"Payday: 57:%d", TempoPayday);
case 5: format(string, 50,"Payday: 56:%d", TempoPayday);
case 6: format(string, 50,"Payday: 55:%d", TempoPayday);
case 7: format(string, 50,"Payday: 54:%d", TempoPayday);
case 8: format(string, 50,"Payday: 53:%d", TempoPayday);
case 9: format(string, 50,"Payday: 52:%d", TempoPayday);
case 10: format(string, 50,"Payday: 51:%d", TempoPayday);
case 11: format(string, 50,"Payday: 50:%d", TempoPayday);
case 12: format(string, 50,"Payday: 49:%d", TempoPayday);
case 13: format(string, 50,"Payday: 48:%d", TempoPayday);
case 14: format(string, 50,"Payday: 47:%d", TempoPayday);
case 15: format(string, 50,"Payday: 46:%d", TempoPayday);
case 16: format(string, 50,"Payday: 45:%d", TempoPayday);
case 17: format(string, 50,"Payday: 44:%d", TempoPayday);
case 18: format(string, 50,"Payday: 43:%d", TempoPayday);
case 19: format(string, 50,"Payday: 42:%d", TempoPayday);
case 20: format(string, 50,"Payday: 41:%d", TempoPayday);
case 21: format(string, 50,"Payday: 40:%d", TempoPayday);
case 22: format(string, 50,"Payday: 39:%d", TempoPayday);
case 23: format(string, 50,"Payday: 38:%d", TempoPayday);
case 24: format(string, 50,"Payday: 37:%d", TempoPayday);
case 25: format(string, 50,"Payday: 36:%d", TempoPayday);
case 26: format(string, 50,"Payday: 35:%d", TempoPayday);
case 27: format(string, 50,"Payday: 34:%d", TempoPayday);
case 28: format(string, 50,"Payday: 33:%d", TempoPayday);
case 29: format(string, 50,"Payday: 32:%d", TempoPayday);
case 30: format(string, 50,"Payday: 31:%d", TempoPayday);
case 31: format(string, 50,"Payday: 30:%d", TempoPayday);
case 32: format(string, 50,"Payday: 29:%d", TempoPayday);
case 33: format(string, 50,"Payday: 28:%d", TempoPayday);
case 34: format(string, 50,"Payday: 27:%d", TempoPayday);
case 35: format(string, 50,"Payday: 26:%d", TempoPayday);
case 36: format(string, 50,"Payday: 25:%d", TempoPayday);
case 37: format(string, 50,"Payday: 24:%d", TempoPayday);
case 38: format(string, 50,"Payday: 23:%d", TempoPayday);
case 39: format(string, 50,"Payday: 22:%d", TempoPayday);
case 40: format(string, 50,"Payday: 21:%d", TempoPayday);
case 41: format(string, 50,"Payday: 20:%d", TempoPayday);
case 42: format(string, 50,"Payday: 19:%d", TempoPayday);
case 43: format(string, 50,"Payday: 18:%d", TempoPayday);
case 44: format(string, 50,"Payday: 17:%d", TempoPayday);
case 45: format(string, 50,"Payday: 16:%d", TempoPayday);
case 46: format(string, 50,"Payday: 15:%d", TempoPayday);
case 47: format(string, 50,"Payday: 14:%d", TempoPayday);
case 48: format(string, 50,"Payday: 13:%d", TempoPayday);
case 49: format(string, 50,"Payday: 12:%d", TempoPayday);
case 50: format(string, 50,"Payday: 11:%d", TempoPayday);
case 51: format(string, 50,"Payday: 10:%d", TempoPayday);
case 52: format(string, 50,"Payday: 9:%d", TempoPayday);
case 53: format(string, 50,"Payday: 8:%d", TempoPayday);
case 54: format(string, 50,"Payday: 7:%d", TempoPayday);
case 55: format(string, 50,"Payday: 6:%d", TempoPayday);
case 56: format(string, 50,"Payday: 5:%d", TempoPayday);
case 57: format(string, 50,"Payday: 4:%d", TempoPayday);
case 58: format(string, 50,"Payday: 3:%d", TempoPayday);
case 59: format(string, 50,"Payday: 2:%d", TempoPayday);
case 60: format(string, 50,"Payday: 1:%d", TempoPayday);
}
TextDrawSetString(TDEditor_TD[4],string);
TextDrawShowForAll(TDEditor_TD[4]);
if(countando == 11)
{
countando = 1;
@PayDay();
}
return 1;
}