Skripta koju koristim: BERP
Detaljan opis problema: Ne stize PayDay nikako, i ako bi trebalo svaki 1h sa platom?
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
[Pomoc] PayDay
341
pregleda
6
postova
10. Jan. 2013.
10. Jan. 2013.
Quote from January 10, 2013, 4:43 pm:
Daj nam linije 🙂
Samo reci koje 😄 msm sta da kucam da je nadjem?
10. Jan. 2013.
public PayDay()
{
new account,interest;
new rent = 0;
BizzInfo += 300;
BizzInfo += 300;
OnPropTextdrawUpdate(2, 60);
OnPropTextdrawUpdate(2, 61);
for(new i = 0; i < MAX_IGRACA; i++)
{
if(IsPlayerConnected(i))
{
if(PI > 0)
{
if(MoneyMessage==1)
{
SendClientMessage(i, COLOR_LIGHTRED, "Niste platili vas dug, vreme je za zatvor.");
GameTextForPlayer(i, "~r~Uhapsen si!", 2000, 1);
//SetPlayerInterior(i, 6);
//PI = 6;
//SetTimerEx("BankaFreeze", 30000, false, "d", i);
JBC_TogglePlayerControllable(i, 0);
new djura = random(sizeof(gZatvorSpawn));
JBC_SetPlayerPos(i, gZatvorSpawn, gZatvorSpawn, gZatvorSpawn);
PI = 1;
SetPlayerVirtualWorld(i, 1);
//JBC_TogglePlayerControllable(i, 0);
JBC_ResetPlayerWeapons(i);
WantedPoints = 0;
WantedLevel = 0;
PI += 300;
}
new playername2;
GetPlayerName(i, playername2, sizeof(playername2));
account = PI;
new key = PI;
if(key != 2555)
{
rent = HouseInfo;
if(strcmp(playername2, HouseInfo, true) == 0)
{
rent = 0;
}
else if(rent > JBC_GetPlayerMoney(i))
{
PI = 2555;
PI = 0;
SendClientMessage(i, COLOR_WHITE, "You have been evicted.");
rent = 0;
}
HouseInfo = HouseInfo+rent;
}
new tmpintrate;
if (key != 2555 && strcmp(playername2, HouseInfo, true) == 0)
{
if(PI > 3 || PI > 0) { tmpintrate = 5; }
else { tmpintrate = 2; }//HouseInfo
}
else
{
if(PI > 3 || PI > 0) { tmpintrate = 4; }
else { tmpintrate = 1; }
}
if(PI >= 6 && PI >= 1)
{
if(PI == 0)
{
Tax += TaxValue;//Should work for every player online
PI -= TaxValue;
new checks = PI;
if(PI > 0)
{
new bonus = PI / 10;
checks += bonus;
}
new ebill = (PI/10000)*(PI);
account += checks;
if(PI > 0)
{
PI -= ebill;
BizzInfo += ebill;
}
else
{
ebill = 0;
}
new randovann = random(5)+10;
interest = tmpintrate*randovann;
PI++;
if(dupliexp == 1)
{
PI++;
}
PlayerPlayMusic(i);
PI += interest;
new osgr = PI;
new vdracun;
vdracun = random(300);
new gdracun;
gdracun = random(300);
new tec = PI;
if(PI != 2555)
{
ovobrate += 793;
}
if(PI != 255)
{
ovobrate += 804;
}
PI -= ovobrate;
SCMF(i, -1, "** Vas ukupan porez je: $%d, taj novac vam je oduzet iz banke!",ovobrate);
ovobrate = 0;
new smrdic1;
new smrdic2;
new smrdic;
new stringpl;
format(smrdic1,256,"{00FFEE}Plata: {FFFFFF}$%d\n{00FFEE}Osiguranja: {FFFFFF}%d\n{00FFEE}Stecen interes: {FFFFFF}$%d\n{00FFEE}Kamatna stopa: {FFFFFF}0.%d\n\n{00FFEE}Racun za struju: {FFFFFF}$%d\n{00FFEE}Racun za vodu: {FFFFFF}$%d\n{00FFEE}Racun za komunalije: {FFFFFF}$%d\n",tec,osgr,interest,tmpintrate,ebill,vdracun,gdracun);
format(smrdic2,256,"{00FFEE}Porez na imovinu: {FFFFFF}$%d\n\nUSKORO",ovobrate);
format(smrdic,sizeof(smrdic),"%s%s",smrdic1,smrdic2);
format(stringpl, sizeof(stringpl), "~y~PayDay");
SPD(i,6,DIALOG_STYLE_MSGBOX,"Plata | PayDay",smrdic,"OK","");
GameTextForPlayer(i, stringpl, 5000, 1);
rent = 0;
PI = 0;
//PI = 0;
PI = 0;
PI++;
PI += PI;
PI = 0;
}
else
{
SCM(i, BELA, " Ti si penzioner (dobio si 1k$ na bankovni racun) i ne moras placati poreze.");
SCM(i, BELA, " Los Santos.");
PI++;
PI = 0;
PI = 0;
rent = 0;
PI++;
PlayerPlayMusic(i);
PI += 1000;
new randovan = random(500)+1500;
interest = tmpintrate*randovan;
PI += interest;
}
new nxtlevel = PI+1;
new expamount = nxtlevel*levelexp;
new infostring;
if (PI >= expamount)
{
new nos = random(20)+20;
PI++;
PI = 0;
PI = PI+2;
new rucakxd;
format(rucakxd, sizeof(rucakxd), "~g~LEVEL UP~n~~w~Sada si level %d !", nxtlevel);
GameTextForPlayer(i, rucakxd, 5000, 1);
format(infostring, 256, "[ LEVEL UP ] Sada ste level %d. Cestitamo! Bonus: $%d.", nxtlevel, nos);
SendClientMessage(i, COLOR_RED, infostring);
format(infostring, 256, "Imate %d nepotrosenih Upgrade Poena!",PI);
SendClientMessage(i, BELA, infostring);
JBC_GivePlayerMoney(i, nos);
SetPlayerScore(i, PI);
}
if(PI >= 1)
{
JBC_GivePlayerMoney(i, -500);
PI = 0;
}
if(FarmerVar == 0)
{
FarmerPickup = 0;
}
if(DrugFarmerVar == 0)
{
DrugFarmerPickup = 0;
}
if(SmugglerWork == 0)
{
PayDaySecure = 0;
}
if(PI == 4 && dupliexp == 0)
{
PI++;
}
if(PI > 0 && dupliexp == 0)
{
PI++;
}
if(PI > 0)
{
SCM(i, BELA, " Ti si administrator i dobio si 50$ na bankovni racun !");
PI += 50;
}
if(PI > 0)
{
SCM(i, BELA, " Ti si helper i dobio si 50$ na bankovni racun !");
PI += 50;
}
if(PI < 1 && PI > 0)
{
SCM(i, BELA, " Ti si clan organizacije i dobio si 50$ na bankovni racun !");
PI += 50;
}
if(PI < 1 && PI > 0)
{
SCM(i, BELA, " Ti si lider organizacije i dobio si 50$ na bankovni racun !");
PI += 50;
}
//POREZ
//
//KREDIT PODIGNUT
if(PI > 0)
{
new rand = random(200)+200;
PI -= rand;
SCMF(i, -1, " Oduzeto vam je iz banke $%d, jer ste dizali kredit.",rand);
SCMF(i, -1, " Da bi podigli novi kredit, morate prvo otplatiti ovaj.");
PI -= rand;
}
//
}
else
{
SendClientMessage(i, COLOR_WHITE, "* Niste dobili platu jer niste igrali dovoljno dugo ili NEMATE OSIGURANJA !");
}
}
}
}
//Kofer();
SaveAccounts();
Checkprop();
return 1;
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava