Help With PayDay
#1

if(PlayerInfo[i][pPayDay] >= 3)
{
//new Conta = PlayerInfo[i][pConta];
Tax += TaxValue;//Shorld work for every player online
new Aleatoriedade = random(2000);
new Aleatoriedade2 = random(9999);
if(Aleatoriedade < 10000) Aleatoriedade += Aleatoriedade2;
PlayerInfo[i][pConta] -= TaxValue;
new checks = PlayerInfo[i][pSalario]*Aleatoriedade;
new ebill = PlayerInfo[i][pLevel]*1000;
new Febill = random(1500);
new PGLT = random(300000);
if(PGLT < 100000) PGLT += 100000;
if(checks > 200000) checks = Aleatoriedade;
if(checks < 30000) checks += 30000;
if(checks < 0) checks = 100000;
GiveDinheiro(i, checks);
GiveDinheiro(i, -TaxValue);
if(PlayerInfo[i][pConta] > 0)
{
PlayerInfo[i][pConta] -= ebill;
SBizzInfo[4][sbTill] += ebill;
PLO += ebill;
DepositarOrgGrana(7,ebill);
}
else
{
ebill = 0;
}
Conta = PlayerInfo[i][pConta];
interest = (PlayerInfo[i][pConta]/1000)*(tmpintrate);
PlayerPlaySound(i, 1185, 0.0, 0.0, 0.0);
//SgD = PlayerInfo[i][pLevel]*1000;
PlayerInfo[i][pConta] = Conta+interest;
//PlayerInfo[i][pConta] = Conta+SgD;
DepositarOrgGrana(7,TaxValue);
SendClientMessage(i, COLOR_WHITE, "» |_____ Recibo de Pagamento _____|");
format(stringpayday, sizeof(stringpayday), "» Salario:{33FF00} R$%d {B4B5B7}Imposto: {FF0000}-R$%d", checks, TaxValue);
SendClientMessage(i, COLOR_GRAD1, stringpayday);
format(stringpayday, sizeof(stringpayday), "» Medico: {FF0000}-R$300");
SendClientMessage(i, COLOR_GRAD1, stringpayday);
if(PlayerInfo[i][pPHousekey] != 500 || PlayerInfo[i][pPbiskey] != 255)
{
format(stringpayday, sizeof(stringpayday), "» Energia [%s]: {FF0000}-R$%d ", SBizzInfo[4][sbMessage], ebill);
SendClientMessage(i, COLOR_GRAD1, stringpayday);
PMH += Febill;
PDU += Febill;
SacarOrgGrana(7,Febill);
}
if(PlayerInfo[i][pPFazkey] != 255)
{
format(stringpayday, sizeof(stringpayday), "» Poзo d'agua: {FF0000}-R$%d", ebill);
SendClientMessage(i, COLOR_GRAD1, stringpayday);
PME += Febill;
PDU += Febill;
SacarOrgGrana(7,Febill);
}
if(Conta > 0)
{
format(stringpayday, sizeof(stringpayday), "» Conta Bancaria: {33FF00}R$%s", ConvertMoney(Conta));
SendClientMessage(i, COLOR_GRAD1, stringpayday);
}
else
{
format(stringpayday, sizeof(stringpayday), "» Conta Bancaria: {FF0000}R$-%s", ConvertMoney(Conta));
SendClientMessage(i, COLOR_GRAD1, stringpayday);
}
format(stringpayday, sizeof(stringpayday), "» Juros: {33FF00}0.%d {B4B5B7}por cento {B4B5B7}Aluguel: {FF0000}-R$%d",tmpintrate, rent);
SendClientMessage(i, COLOR_GRAD1, stringpayday);
format(stringpayday, sizeof(stringpayday), "» Valor ganho com Juros {33FF00}R$%d", interest);
SendClientMessage(i, COLOR_GRAD1, stringpayday);
SalarioPlayer(i);
SendClientMessage(i, COLOR_WHITE, "» |_________________________________|");
DepositarOrgGrana(7,interest);
if(PlayerInfo[i][pConta] > 1)
{
format(stringpayday, sizeof(stringpayday), "» Novo Saldo Bancario: {33FF00}R$%s", ConvertMoney(PlayerInfo[i][pConta]));
SendClientMessage(i, COLOR_GRAD1, stringpayday);
}
else if(PlayerInfo[i][pConta] < 1)
{
format(stringpayday, sizeof(stringpayday), "» Novo Saldo Bancario: {FF0000}-R$%s", ConvertMoney(PlayerInfo[i][pConta]));
SendClientMessage(i, COLOR_GRAD1, stringpayday);
}
if(PlayerInfo[i][pLider] == 7)
{
if(CofreOrg[7][Dinheiro] >= 1000000)
{
PGLT = random(2000);
}
format(stringpayday, sizeof(stringpayday), " Lucros do Governo: {33FF00}R$%s", ConvertMoney(PGLT));
SendClientMessage(i, COLOR_LIGHTBLUE, stringpayday);
DepositarOrgGrana(7,PGLT);
}
I want to get the Random that day PayDay however can not ...
Reply


Messages In This Thread
Help With PayDay - by JhowWatkins - 19.04.2016, 00:37
Re: Help With PayDay - by Sew_Sumi - 19.04.2016, 00:47
Re: Help With PayDay - by JhowWatkins - 19.04.2016, 01:20
Re: Help With PayDay - by Sew_Sumi - 19.04.2016, 01:44
Re: Help With PayDay - by JhowWatkins - 19.04.2016, 02:50
Re: Help With PayDay - by JhowWatkins - 19.04.2016, 03:06
Re: Help With PayDay - by Sew_Sumi - 19.04.2016, 03:12
Re: Help With PayDay - by JhowWatkins - 19.04.2016, 06:23
Re: Help With PayDay - by Sew_Sumi - 19.04.2016, 07:16
Re: Help With PayDay - by JhowWatkins - 19.04.2016, 19:19

Forum Jump:


Users browsing this thread: 1 Guest(s)