05.04.2013, 01:54
Olб, Gostaria de saber se tem alguma forma de Randomizar o Custo do serviзo mйdico que й pago no PayDay.
@Edit:
Randomizar para 50 ~ 80 $.
PHP код:
}
interest = (PlayerInfo[i][pConta]/6859)*(tmpintrate);
PlayerInfo[i][pExp]++;
PlayerPlayMusic(i);
PlayerInfo[i][pConta] = Conta+interest;
SendClientMessage(i, COLOR_WHITE, "|______________ Pagamento ______________|");
format(gstring, sizeof(gstring), " Salбrio: R$%d Imposto: -R$%d", checks, TaxValue);
SendClientMessage(i, COLOR_GRAD1, gstring);
SendClientMessage(i, COLOR_GRAD1, " Mйdico: R$300");
if(PlayerInfo[i][pPHousekey] != 255 || PlayerInfo[i][pPbiskey] != 255)
{
format(gstring, sizeof(gstring), " Energia: -R$%d", ebill);
SendClientMessage(i, COLOR_GRAD1, gstring);
}
format(gstring, sizeof(gstring), " Banco: R$%d", Conta);
SendClientMessage(i, COLOR_GRAD1, gstring);
format(gstring, sizeof(gstring), " Juros: 0.%d por cento",tmpintrate);
SendClientMessage(i, COLOR_GRAD2, gstring);
SendClientMessage(i, COLOR_GRAD4, "|_______________________________________|");
format(gstring, sizeof(gstring), " Novo extrato: R$%d", PlayerInfo[i][pConta]);
SendClientMessage(i, COLOR_GRAD5, gstring);
format(gstring, sizeof(gstring), " Aluguel: -R$%d", rent);
SendClientMessage(i, COLOR_GRAD5, gstring);
PlayerPlaySound(i, 1185, 0.0, 0.0, 0.0);
format(gstring, sizeof(gstring), "~y~-==- ~g~ Pagamento ~y~ -==-");
GameTextForPlayer(i, gstring, 5000, 1);
GivePlayerMoneyEx(i,- 300);
rent = 0;
PlayerInfo[i][pPayDay] = 0;
PlayerInfo[i][pSalario] = 0;
PlayerInfo[i][pConnectTime] += 1;
pban[i] = 0;
if(PlayerInfo[i][pEmprego] > 0)
{
if(PlayerInfo[i][pContractTime] < 25)
{
PlayerInfo[i][pContractTime] ++;
}
}
}
PHP код:
SendClientMessage(i, COLOR_GRAD1, gstring);
SendClientMessage(i, COLOR_GRAD1, " Mйdico: R$300");
PHP код:
GivePlayerMoneyEx(i,- 300);
Randomizar para 50 ~ 80 $.