Crazyn3ss wrote on June 1, 2013, 8:27 pm:
znam za to al ja tebi pricam o /24
znaci imas 2 dana i to izgleda ovako
VipTime = 2
i ti to djelis sa 24, zbog cega
to kad postavljas taj viptime stavljas tako nesto
Sad sam nesto skuzio ja nemam u payday viptime dal nije do toga mozda?
public PayDay()
{
new string;
new coordstring1;
new coordstring2;
new coordstring3;
new coordstring4;
new coordstring5;
new coordstring6;
new coordstring7;
new coordstring8;
new payday;
new account,interest;
new rent = 0;
format(string, sizeof(string), "Lutrija: Pocinjemo izvlacenje.");
OOCOff(COLOR_DBLUE, string);
new rand = random(80);
if(rand < 77) { rand += 3; }
Lotto(rand);
foreach (Player, i)
{
if(PlayerInfo > 0)
{
if(MoneyMessage==1)
{
SendClientMessage(i, COLOR_LIGHTRED, "Niste uspjeli da vratite dug, idete u zatvor.");
GameTextForPlayer(i, "~r~Uhapsen!", 2000, 1);
SetPlayerInterior(i, 6);
PlayerInfo = 6;
SetPlayerPos(i, 264.0486,82.0602,1001.0391);
PlayerInfo = 1;
SafeResetPlayerWeapons(i);
SafeResetPlayerMoney(i);
PlayerCuffed = 0;
WantedPoints = 0;
TogglePlayerControllable(i, 1);
PlayerInfo = 240;
format(string, sizeof(string), "Uhapseni ste na %d sekundi. Kaucija: Nedostupna", PlayerInfo);
SendClientMessage(i, COLOR_WHITE, string);
SetPlayerToTeamColor(i);
}
new playername2;
GetPlayerName(i, playername2, sizeof(playername2));
account = PlayerInfo;
new tmpintrate;
if(PlayerInfo < 2) { tmpintrate = 4; }
if(PlayerInfo < 1) { tmpintrate = 4; }
if(PlayerInfo < 1) { tmpintrate = 4; }
new key = PlayerInfo;
if(key != 255)
{
rent = HouseInfo;
if(strcmp(playername2, HouseInfo, true) == 0)
{
rent = 0;
}
else if(rent > GetPlayerMoney(i))
{
PlayerInfo = 255;
SendClientMessage(i, COLOR_WHITE, "Iseljeni ste.");
rent = 0;
}
HouseInfo = HouseInfo+rent;
}
if (key != 255 && strcmp(playername2, HouseInfo, true) == 0)
{
if(PlayerInfo > 0) { tmpintrate = intrate+4; }
else { tmpintrate = intrate+2; }//HouseInfo
}
else
{
if(PlayerInfo > 0) { tmpintrate = 3; }
else { tmpintrate = 1; }
}
if(PlayerInfo >= 5)
{
Tax += TaxValue;//Should work for every player online
PlayerInfo -= TaxValue;
new checks = PlayerInfo / 50;
if(PlayerInfo > 0)
{
new bonus = PlayerInfo / 100;
checks += bonus;
}
new ebill = (PlayerInfo/100000)*(PlayerInfo);
account += checks;
if(PlayerInfo > 0)
{
PlayerInfo -= ebill;
SBizzInfo += ebill;
}
else
{
ebill = 0;
}
new tmpintrate, interest;
if(PlayerInfo == 2 || PlayerInfo >= 1 || PlayerInfo >= 1)
{
PlayerInfo++;
}
if(PlayerInfo > 2 || PlayerInfo >= 1)
{
tmpintrate = 5;
}
else
{
tmpintrate = 3;
}
interest = (PlayerInfo/1000)*(tmpintrate)
account += checks;
account += interest;
account -= rent;
interest = (PlayerInfo/10000)*(tmpintrate);
PlayerInfo++;
PlayerInfo = account+interest;
format(coordstring1, sizeof(coordstring1),"{0049FF}|___BANKARSKI IZVESTAJ___|{FFFFFF}");
format(coordstring2, sizeof(coordstring2),"\n{F3FF02}Plata: $%d {FFFFFF} {F3FF02}Takse: -$%d {FFFFFF}", checks, TaxValue);
format(coordstring3, sizeof(coordstring3), "\n{00C0FF}Racun za struju: $%d",ebill);
format(coordstring4, sizeof(coordstring4),"\n{F3FF02}Staro Stanje: $%d{FFFFFF}", account - checks);
format(coordstring5, sizeof(coordstring5),"\nKamatna stopa: {F3FF02}0.%d posto",tmpintrate);
format(coordstring6, sizeof(coordstring6),"\n{F3FF02}Stecen interes od para u banci:$%d{FFFFFF}",interest);
format(coordstring7, sizeof(coordstring7),"\n{6EF83C}Novo Stanje: $%d",PlayerInfo);
format(coordstring8, sizeof(coordstring8),"\n{0049FF}Rent: -$%d{FFFFFF}", rent);
format(payday, 1250," %s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",coordstring1,coordstring2,coordstring3,coordstring4,coordstring5,coordstring6,coordstring7,coordstring8);
ShowPlayerDialog(i, 800, DIALOG_STYLE_MSGBOX, "Bankarski izvestaj gradjana", payday , "OK", "OK");
if(PlayerInfo != 0)
{
PlayerInfo -= 500;
PlayerInfo -= 500;
}
if(PlayerInfo != 0)
{
new kazna = (PlayerInfo) * (2000);
PlayerInfo -= kazna;
PlayerInfo = 0;
}
format(string, sizeof(string), "~y~Plata~n~~w~Plata je stigla na vas racun");
GameTextForPlayer(i, string, 5000, 1);
rent = 0;
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo += 1;
if(FarmerVar == 0)
{
FarmerPickup = 0;
}
if(DrugFarmerVar == 0)
{
DrugFarmerPickup = 0;
}
if(SmugglerWork == 0)
{
PayDaySecure = 0;
}
if(PlayerInfo > 0)
{
PlayerInfo += 1;
if(PlayerInfo >= 5)
{
PlayerInfo++;
PlayerInfo = 0;
}
}
}
else
{
SendClientMessage(i, COLOR_WHITE, "* Niste igrali dovoljno dugo da biste dobili platu.");
}
}
}
SaveAccounts();
Checkprop();
return 1;
}
ako jeste jel bi mogao da mi resis moram da idem sad?