13.05.2012, 04:58
pawn Код:
if(PlayerInfo[i][pPayDay] >= 4)
{
Tax += TaxValue;//Shorld work for every player online
PlayerInfo[i][pConta] -= TaxValue;
if(PlayerInfo[i][pVIP] == 3)
{
new bonus = PlayerInfo[i][pPayCheck] / 2;
PlayerInfo[i][pPayCheck] += bonus;
}
if(PlayerInfo[i][pVIP] == 4)
{
new bonus = PlayerInfo[i][pPayCheck] / 3;
PlayerInfo[i][pPayCheck] += bonus;
}
new checks = PlayerInfo[i][pPayCheck];
new ebill = (PlayerInfo[i][pConta]/10000)*(PlayerInfo[i][pLevel]);
ConsumingMoney[i] = 1;
GivePlayerMoneyEx(i, checks);
if(PlayerInfo[i][pConta] > 0)
{
PlayerInfo[i][pConta] -= ebill;
SBizzInfo[4][sbTill] += ebill;
}
else
{
ebill = 0;
}
interest = (PlayerInfo[i][pConta]/1000)*(tmpintrate);
PlayerInfo[i][pExp]++;
PlayerPlayMusic(i);
PlayerInfo[i][pConta] = Conta+interest;
SendClientMessage(i, COLOR_WHITE, "|___ Pagamento ___|");
format(string, sizeof(string), " Salario: R$%d Imposto: -R$%d", checks, TaxValue);
SendClientMessage(i, COLOR_GRAD1, string);
SendClientMessage(i, COLOR_GRAD1, " Medico: R$300");
if(PlayerInfo[i][pPHousekey] != 255 || PlayerInfo[i][pPbiskey] != 255)
{
format(string, sizeof(string), " Energia: -R$%d", ebill);
SendClientMessage(i, COLOR_GRAD1, string);
}
format(string, sizeof(string), " Banco: R$%d", Conta);
SendClientMessage(i, COLOR_GRAD1, string);
format(string, sizeof(string), " Juros: 0.%d por cento",tmpintrate);
SendClientMessage(i, COLOR_GRAD2, string);
format(string, sizeof(string), " Juros R$%d", interest);
SendClientMessage(i, COLOR_GRAD3, string);
SendClientMessage(i, COLOR_GRAD4, "|--------------------------------------|");
format(string, sizeof(string), " Novo extrato: R$%d", PlayerInfo[i][pConta]);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), " Aluguel: -R$%d", rent);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), "~r~-==- ~p~ Salario ~r~ -==-");
GameTextForPlayer(i, string, 5000, 1);
GivePlayerMoneyEx(i,- 300);
if(PlayerInfo[i][pVIP] == 1) { PlayerInfo[i][pExp] += 4; GivePlayerMoneyEx(i,20000); SendClientMessage(i,COLOR_LIGHTPINK,"Vocк recebeu 20k de bфnus por ser vip.");}
else if(PlayerInfo[i][pVIP] == 3) { PlayerInfo[i][pExp] += 6; GivePlayerMoneyEx(i,40000); SendClientMessage(i,COLOR_LIGHTPINK,"Vocк recebeu 40k de bфnus por ser vip Master.");}
else if(PlayerInfo[i][pVipTime] >= 1) { PlayerInfo[i][pExp] += 2; GivePlayerMoneyEx(i,15000); SendClientMessage(i,COLOR_LIGHTPINK,"Vocк recebeu 15k de bфnus por ser vip Timer.");}
rent = 0;
PlayerInfo[i][pPoint] += numplayers;
format(string, sizeof(string), "{ff9600}Vocк ganhou {fff000}%d Cash {ff9600}por ter {fff000}%d {ff9600}Jogadores Online", numplayers,numplayers);
SendClientMessage(i, COLOR_GRAD5, string);
PlayerInfo[i][pPayDay] = 0;
PlayerInfo[i][pPayCheck] = 0;
PlayerInfo[i][pConnectTime] += 1;
if(PlayerInfo[i][pVIP] == 1)
{
PlayerInfo[i][pPayDayHad] += 1;
if(PlayerInfo[i][pPayDayHad] >= 5)
{
PlayerInfo[i][pExp]++;
PlayerInfo[i][pPayDayHad] = 0;
}
}
if(PlayerInfo[i][pVIP] == 3)
{
PlayerInfo[i][pPayDayHad] += 2;
if(PlayerInfo[i][pPayDayHad] >= 6)
{
PlayerInfo[i][pExp]++;
PlayerInfo[i][pPayDayHad] = 0;
}
}
}
else
{
SendClientMessage(i, COLOR_LIGHTRED, "Vocк nгo jogou tempo suficiente para receber salбrio.");
}
}
}
}
Checkprop();
format(string, sizeof(string), "Lotйria: Jб comeзou a loteria.");
OOCOff(COLOR_WHITE, string);
new rand = random(80);
if(rand < 77) { rand += 3; }
Lotto(rand);
return 1;
}
Se tiver como alguem bote pra min ? ;S