Započeo MEMOREX™️
•23. Dec. 2011.[Pomoc] PayDay
872
pregleda
10
postova
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
476
Postovi:
100
Teme:
Pridružio se:Nov. 2011
23. Dec. 2011.
Skripta koju koristim: Moja
Detaljan opis problema: Npr. Kako da uradim PayDay da od 18:00 do 19:00 bude na 15 min a ostalo na 30.? Inace sad imam 30 min...
Dio skripte:
Public Payday:
Public PayDayCheck:
Timer Za PayDay:
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Detaljan opis problema: Npr. Kako da uradim PayDay da od 18:00 do 19:00 bude na 15 min a ostalo na 30.? Inace sad imam 30 min...
Dio skripte:
Public Payday:
public PayDay(playerid)
{
new string;
new levelpd = PlayerInfo;
new moneypayday = 100*levelpd;
PlayerInfo += 1;
PlayerInfo += moneypayday;
PlayerInfo -= 1;
format(string, sizeof(string), "PAYDAY: Uspjesno ste dobili placu u iznosu od %d na svoju radnu knjizicu te 1 respekt.", moneypayday);
SendClientMessage(playerid, BLUE, string);
return 1;
}
Public PayDayCheck:
public paydaycheck()
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo >= 0)
{
new string;
new nxtlevel = PlayerInfo+1;
new expamount = nxtlevel*levelexp;
new infostring;
if (PlayerInfo < expamount)
{
format(infostring, 256, "ERROR: Nazalost trebas imati %d Respekta, a ti trenutno imas {FFFFFF}[%d]{FF0000}, te nisi dobio levelup!",expamount,PlayerInfo);
SendClientMessage(i,COLOR_LIGHTRED, infostring);
return 1;
}
else
{
format(string, sizeof(string), "INFO: Cestitamo, sada si %d level!", nxtlevel);
PlayerPlaySound(i, 1052, 0.0, 0.0, 0.0);
SendClientMessage(i, COLOR_GOLD, string);
PlayerInfo++;
}
}
}
}
return 1;
}Timer Za PayDay:
payday = SetTimer("PayDay", 3000000, 1);
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Hustler
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
25 / 100 XP
Početnik(0)
51
Postovi:
0
Teme:
Pridružio se:Dec. 2011
Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,169
Postovi:
10
Teme:
Pridružio se:Nov. 2012
23. Dec. 2011.
Kopija Los Balkana sa Happy hourom.
Zeli da u 18:00 dobije platu,onda u 18:15,sljedecu u 18:30,i tako do 19:00,nakon toga da svako pola sata dobija sve do narednog dana kada bude 18:00.
Zeli da u 18:00 dobije platu,onda u 18:15,sljedecu u 18:30,i tako do 19:00,nakon toga da svako pola sata dobija sve do narednog dana kada bude 18:00.
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
476
Postovi:
100
Teme:
Pridružio se:Nov. 2011
23. Dec. 2011.
Explode.ba wrote on December 23, 2011, 11:31 pm:
nekužim da pay bude na 18:15 i 19:15 ?
Ne Od 18:00 Sati do 19:00 da bude PayDay svakih 15 minuta..Kuzis?
EDIT: Ok onda stavim od 15:00 Do 16:00, samo ako mi neko objasni kako 🙂
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
315
Postovi:
89
Teme:
Pridružio se:Dec. 2011
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
315
Postovi:
89
Teme:
Pridružio se:Dec. 2011
24. Dec. 2011.
public PayDay()
{
new string;
new account,interest;
new rent = 0;
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.6288,77.5742,1001.0391);
PlayerInfo = 1;
SafeResetPlayerWeapons(i);
SafeResetPlayerMoney(i);
WantedPoints = 0;
PlayerInfo = 240;
format(string, sizeof(string), "Uhapseni ste na %d sekundi. Kaucija: Nedostupna", PlayerInfo);
SendClientMessage(i, COLOR_WHITE, string);
}
new playername2;
GetPlayerName(i, playername2, sizeof(playername2));
account = PlayerInfo;
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;
}
new tmpintrate;
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 / 5;
if(PlayerInfo > 0)
{
new bonus = PlayerInfo / 10;
checks += bonus;
}
new ebill = (PlayerInfo/500)*(PlayerInfo);
account += checks;
if(PlayerInfo > 0)
{
PlayerInfo -= ebill;
SBizzInfo += ebill;
}
else
{
ebill = 0;
}
interest = (PlayerInfo/500)*(tmpintrate);
PlayerInfo++;
PlayerInfo = account+interest;
SendClientMessage(i, COLOR_GROVE, "~~~~~ IZVESTAJ BANKE~~~~");
format(string, sizeof(string), " Plata: $%d Takse: -$%d", checks, TaxValue);
SendClientMessage(i, ORANGE, string);
if(PlayerInfo != 255 || PlayerInfo != 255)
{
format(string, sizeof(string), " Racun za struju: -$%d", ebill);
SendClientMessage(i, ORANGE, string);
}
format(string, sizeof(string), " Staro stanje: $%d", account - checks);
SendClientMessage(i, ORANGE, string);
format(string, sizeof(string), " Kamata: 0.%d posto",tmpintrate);
SendClientMessage(i, ORANGE, string);
format(string, sizeof(string), " Kamatni interes $%d", interest);
SendClientMessage(i, ORANGE, string);
SendClientMessage(i, COLOR_GROVE, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
format(string, sizeof(string), " Novo stanje: $%d", PlayerInfo);
SendClientMessage(i, ORANGE, string);
format(string, sizeof(string), " Rent: -$%d", rent);
SendClientMessage(i, ORANGE, string);
format(string, sizeof(string), " Ukupan Kredit: $%d", PlayerInfo);
SendClientMessage(i, ORANGE, string);
if(PlayerInfo != 0)
{
SendClientMessage(i, ORANGE," Rata: $500");
PlayerInfo -= 500;
PlayerInfo -= 500;
}
format(string, sizeof(string), "~y~Plata~n~~b~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;
}jel bi mogo i lotto da mi namestis da na svakih 1 sat kad je plata bude igranje
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
315
Postovi:
89
Teme:
Pridružio se:Dec. 2011
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
476
Postovi:
100
Teme:
Pridružio se:Nov. 2011
24. Dec. 2011.
Blaeks_Biofor wrote on December 24, 2011, 9:22 am:
Brate masteru ovo je covekov post i on pita za svoju pomoc idi stavi nov posto
A ti Memorex samo promenis milisekunde na koliko zelis da plata bude🙂
A ti Memorex samo promenis milisekunde na koliko zelis da plata bude🙂
Nekontam te. Imam sad na 3000000 to je 30min? kako da stavim samo 30 da je u minutrama?
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava