Započeo Danisha
•20. Okt. 2012.• Zaključano[POMOC] EXP
725
pregleda
13
postova
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
560
Postovi:
211
Teme:
Pridružio se:Jul 2012
20. Okt. 2012.
Skripta koju koristim:Ravens
Detaljan opis problema:E ovako ocu da subotom i nedeljkom dobijam duple respekte
Dio skripte:
Evo moje payday pa ako neko zna da mi sredi
Neke slike/video za lakse dobivanje pomoci(neobavezno):Evo i slika kako da izgleda
http://www.dodaj.rs/f/10/13c/WujUtZZ/sa-mp-685.png
Detaljan opis problema:E ovako ocu da subotom i nedeljkom dobijam duple respekte
Dio skripte:
Evo moje payday pa ako neko zna da mi sredi
public PayDay()
{
new string;
new Nalog,interest;
new rent = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
if(PlayerInfo > 0)
{
if(MoneyMessage==1)
{
new bank = PlayerInfo;
SendClientMessage(i, COLOR_LIGHTRED, "Niste isplatili vase dugove, idete u zatvor.");
GameTextForPlayer(i, "~r~Uhapseni ste!", 2000, 1);
SafeSetPlayerInterior(i, 6);
SafeSetPlayerPos(i, 264.6288,77.5742,1001.0391);
PlayerInfo = 1;
SafeResetPlayerWeapons(i);
SafeResetPlayerMoney(i);
SafeGivePlayerMoney(i, 1);
WantedPoints = 0;
PlayerInfo = (bank + DebtMoney);
DebtMoney = 0;
PlayerInfo = 240;
TextDrawShowForPlayer(i, Textdraw1);
format(string, sizeof(string), "Zatvoreni ste na %d sekundi. Kaucija: Onemogucena", PlayerInfo);
SendClientMessage(i, COLOR_WHITE, string);
}
new playername2;
GetPlayerName(i, playername2, sizeof(playername2));
Nalog = PlayerInfo;
new key = PlayerInfo;
if(key != 9999)
{
rent = HouseInfo;
if(strcmp(playername2, HouseInfo, true) == 0)
{
rent = 0;
}
else if(rent > GetPlayerMoney(i))
{
PlayerInfo = 9999;
SendClientMessage(i, COLOR_WHITE, "You have been evicted.");
rent = 0;
}
HouseInfo = HouseInfo+rent;
}
new tmpintrate;
if (key != 9999 && 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/10;
if(PlayerInfo == 1)
{
new bonus = (PlayerInfo/10)/4;
checks += bonus;
}
else if(PlayerInfo == 2)
{
new bonus = (PlayerInfo/10)/10*4;
checks += bonus;
}
else if(PlayerInfo == 3)
{
new bonus = (PlayerInfo/10)/10*7;
checks += bonus;
}
else if(PlayerInfo == 4)
{
new bonus = PlayerInfo/10;
checks += bonus;
}
new ebill = (PlayerInfo/9000)*(PlayerInfo);
new porez = (PlayerInfo/20000)*(PlayerInfo);
Nalog += checks;
DrzavniBudzet -= checks;
if(PlayerInfo > 0)
{
Nalog -= ebill;
SBizzInfo += ebill/2;
DrzavniBudzet += ebill/2;
}
else
{
ebill = 0;
}
if(PlayerInfo < 4)
{
if(PlayerInfo > 1000000 && key != 9999 || GetPlayerMoney(i) > 1000000 && key != 9999)
{
Nalog -= porez;
DrzavniBudzet += porez;
}
else
{
porez = 0;
}
}
interest = (PlayerInfo/1000)*(tmpintrate);
PlayerInfo++;
PlayerPlayMusic(i);
PlayerInfo = Nalog+interest;
SendClientMessage(i, COLOR_GREEN, "|___ Izvestaj Banke ___|");
format(string, sizeof(string), " Plata: $%d Takse: -$%d", checks, TaxValue);
SendClientMessage(i, COLOR_WHITE, string);
if(PlayerInfo != 9999 || PlayerInfo != 9999)
{
format(string, sizeof(string), " Racun za struju: -$%d", ebill);
SendClientMessage(i, COLOR_GRAD1, string);
}
format(string, sizeof(string), " Staro stanje: $%d", (Nalog - interest - checks + ebill + porez));
SendClientMessage(i, COLOR_WHITE, string);
format(string, sizeof(string), " Kamatna stopa: 0.%d procenata",tmpintrate);
SendClientMessage(i, COLOR_GRAD2, string);
format(string, sizeof(string), " Stecen interes $%d", interest);
SendClientMessage(i, COLOR_GRAD3, string);
if(PlayerInfo < 4)
{
if(PlayerInfo > 1000000 && key != 9999 || GetPlayerMoney(i) > 1000000 && key != 9999)
{
format(string, sizeof(string), " Porez na bogatstvo: -$%d", porez);
SendClientMessage(i, COLOR_GRAD1, string);
}
}
if(PlayerInfo < 3)
{
if(PlayerInfo != 9999 && PlayerInfo != 9999)
{
PlayerInfo -= 2000;
DrzavniBudzet += 2000;
SendClientMessage(i, COLOR_GREY," Porez na drugo vozilo 2000$");
}
}
SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
format(string, sizeof(string), " Novo stanje: $%d", PlayerInfo);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), " Rent: -$%d", rent);
SendClientMessage(i, COLOR_GRAD5, string);
if(PlayerInfo != 0)
{
SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
format(string, sizeof(string), " Ukupan Kredit: $%d", PlayerInfo);
SendClientMessage(i, COLOR_GRAD5, string);
}
if(PlayerInfo >= 475)
{
SendClientMessage(i, COLOR_GRAD5," Rata za Kredit: $500");
PlayerInfo -= 475;
Nalog -= 500;
SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
}
else if(PlayerInfo < 475 && PlayerInfo != 0)
{
PlayerInfo = 0;
SendClientMessage(i, COLOR_GRAD5,"Otplatili ste vas kredit.");
SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
}
format(string, sizeof(string), "~y~Plata~n~~w~Proverite vas nalog");
GameTextForPlayer(i, string, 5000, 1);
rent = 0;
PlayerInfo = 0;
PlayerInfo = 0;
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 bi dobili platu.");
}
}
}
}
SaveNalogs();
new rand = random(2500); rand += 1245;
Jackpot += rand;
SaveStuff();
SaveAnticheat();
format(string, sizeof(string), "Lotto vesti: JackPot je povecan i on sada iznosi $%d.", Jackpot);
OOCOff(COLOR_WHITE, string);
return 1;
}Neke slike/video za lakse dobivanje pomoci(neobavezno):Evo i slika kako da izgleda
http://www.dodaj.rs/f/10/13c/WujUtZZ/sa-mp-685.png
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
623
Postovi:
87
Teme:
Pridružio se:Jun 2012
20. Okt. 2012.
Hm, nisam se toliko bavio ravensom, ali nesto sam smixao
Da iskljucis
Nikad se nisam bavio raven's-om, pa mala vjerovatnost da ce biti dobro
if(strcmp(cmd,"/duplixp", true)==0)
{
{
foreach (Player, i)
{
PlayerInfo+++;
}
SendClientMessage(playerid, Boja, "[Dupli Exp] Dao si svima za vikend dupli exp");
return 0;
}Da iskljucis
if(strcmp(cmd,"/duplixpoff", true)==0)
{
{
foreach (Player, i)
{
PlayerInfo++;
}Nikad se nisam bavio raven's-om, pa mala vjerovatnost da ce biti dobro
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
91 / 100 XP
Početnik(0)
150
Postovi:
13
Teme:
Pridružio se:Avg. 2011
20. Okt. 2012.
Ta komanda ce dati igracima koji su online jos respekta ali kad dobije platu dobijace normalno respekte nece dobijati duple ,e sad napravis obicnu var npr new dupliexp; i napravis komandu da stavis var na 1 npr i napravis proveru pod public payday
foreach(Player,i)
{
if(dupliexp == 1)
{
PlayerInfo = PlayerInfo + 2;
}
}
Godfather
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,858
Postovi:
63
Teme:
Pridružio se:Jun 2012
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
575
Postovi:
90
Teme:
Pridružio se:Jun 2012
20. Okt. 2012.
Jel ti treba ono kao na NoooBot,jer i ja radim Raven's v3.0 i dosta sam uradio,a imam i NoooBot v2.1 pa ako mogu s'time nekako da ti pomognem?
Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
937
Postovi:
22
Teme:
Pridružio se:Mar. 2011
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
560
Postovi:
211
Teme:
Pridružio se:Jul 2012
20. Okt. 2012.
public PayDay()
{
new string;
new Nalog,interest;
new rent = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
if(PlayerInfo > 0)
{
if(MoneyMessage==1)
{
new bank = PlayerInfo;
SendClientMessage(i, COLOR_LIGHTRED, "Niste isplatili vase dugove, idete u zatvor.");
GameTextForPlayer(i, "~r~Uhapseni ste!", 2000, 1);
SafeSetPlayerInterior(i, 6);
SafeSetPlayerPos(i, 264.6288,77.5742,1001.0391);
PlayerInfo = 1;
SafeResetPlayerWeapons(i);
SafeResetPlayerMoney(i);
SafeGivePlayerMoney(i, 1);
WantedPoints = 0;
PlayerInfo = (bank + DebtMoney);
DebtMoney = 0;
PlayerInfo = 240;
TextDrawShowForPlayer(i, Textdraw1);
format(string, sizeof(string), "Zatvoreni ste na %d sekundi. Kaucija: Onemogucena", PlayerInfo);
SendClientMessage(i, COLOR_WHITE, string);
}
new playername2;
GetPlayerName(i, playername2, sizeof(playername2));
Nalog = PlayerInfo;
new key = PlayerInfo;
if(key != 9999)
{
rent = HouseInfo;
if(strcmp(playername2, HouseInfo, true) == 0)
{
rent = 0;
}
else if(rent > GetPlayerMoney(i))
{
PlayerInfo = 9999;
SendClientMessage(i, COLOR_WHITE, "You have been evicted.");
rent = 0;
}
HouseInfo = HouseInfo+rent;
}
new tmpintrate;
if (key != 9999 && 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/10;
if(PlayerInfo == 1)
{
new bonus = (PlayerInfo/10)/4;
checks += bonus;
}
else if(PlayerInfo == 2)
{
new bonus = (PlayerInfo/10)/10*4;
checks += bonus;
}
else if(PlayerInfo == 3)
{
new bonus = (PlayerInfo/10)/10*7;
checks += bonus;
}
else if(PlayerInfo == 4)
{
new bonus = PlayerInfo/10;
checks += bonus;
}
new ebill = (PlayerInfo/9000)*(PlayerInfo);
new porez = (PlayerInfo/20000)*(PlayerInfo);
Nalog += checks;
DrzavniBudzet -= checks;
if(PlayerInfo > 0)
{
Nalog -= ebill;
SBizzInfo += ebill/2;
DrzavniBudzet += ebill/2;
}
else
{
ebill = 0;
}
if(PlayerInfo < 4)
{
if(PlayerInfo > 1000000 && key != 9999 || GetPlayerMoney(i) > 1000000 && key != 9999)
{
Nalog -= porez;
DrzavniBudzet += porez;
}
else
{
porez = 0;
}
}
interest = (PlayerInfo/1000)*(tmpintrate);
PlayerInfo++;
PlayerPlayMusic(i);
PlayerInfo = Nalog+interest;
SendClientMessage(i, COLOR_GREEN, "|___ Izvestaj Banke ___|");
format(string, sizeof(string), " Plata: $%d Takse: -$%d", checks, TaxValue);
SendClientMessage(i, COLOR_WHITE, string);
if(PlayerInfo != 9999 || PlayerInfo != 9999)
{
format(string, sizeof(string), " Racun za struju: -$%d", ebill);
SendClientMessage(i, COLOR_GRAD1, string);
}
format(string, sizeof(string), " Staro stanje: $%d", (Nalog - interest - checks + ebill + porez));
SendClientMessage(i, COLOR_WHITE, string);
format(string, sizeof(string), " Kamatna stopa: 0.%d procenata",tmpintrate);
SendClientMessage(i, COLOR_GRAD2, string);
format(string, sizeof(string), " Stecen interes $%d", interest);
SendClientMessage(i, COLOR_GRAD3, string);
if(PlayerInfo < 4)
{
if(PlayerInfo > 1000000 && key != 9999 || GetPlayerMoney(i) > 1000000 && key != 9999)
{
format(string, sizeof(string), " Porez na bogatstvo: -$%d", porez);
SendClientMessage(i, COLOR_GRAD1, string);
}
}
if(PlayerInfo < 3)
{
if(PlayerInfo != 9999 && PlayerInfo != 9999)
{
PlayerInfo -= 2000;
DrzavniBudzet += 2000;
SendClientMessage(i, COLOR_GREY," Porez na drugo vozilo 2000$");
}
}
SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
format(string, sizeof(string), " Novo stanje: $%d", PlayerInfo);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), " Rent: -$%d", rent);
SendClientMessage(i, COLOR_GRAD5, string);
if(PlayerInfo != 0)
{
SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
format(string, sizeof(string), " Ukupan Kredit: $%d", PlayerInfo);
SendClientMessage(i, COLOR_GRAD5, string);
}
if(PlayerInfo >= 475)
{
SendClientMessage(i, COLOR_GRAD5," Rata za Kredit: $500");
PlayerInfo -= 475;
Nalog -= 500;
SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
}
else if(PlayerInfo < 475 && PlayerInfo != 0)
{
PlayerInfo = 0;
SendClientMessage(i, COLOR_GRAD5,"Otplatili ste vas kredit.");
SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
}
format(string, sizeof(string), "~y~Plata~n~~w~Proverite vas nalog");
GameTextForPlayer(i, string, 5000, 1);
rent = 0;
PlayerInfo = 0;
PlayerInfo = 0;
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 bi dobili platu.");
}
}
}
}
SaveNalogs();
new rand = random(2500); rand += 1245;
Jackpot += rand;
SaveStuff();
SaveAnticheat();
format(string, sizeof(string), "Lotto vesti: JackPot je povecan i on sada iznosi $%d.", Jackpot);
OOCOff(COLOR_WHITE, string);
return 1;
}Imal ko da se razumije pa da mi ubaci u ovo sve sam pretrazio i nemogu nadjem nigdjee
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
75 / 100 XP
Početnik(0)
26
Postovi:
0
Teme:
Pridružio se:Sep. 2011
20. Okt. 2012.
Ne možeš to tek tako napraviti.
Tebi treba prvo nešto da dobiješ subotu i nedjelju, znaci moraš napraviti nešto da "skripta zna" da je baš danas subota ili nedjelja!
I onda samo provjeru napraviš, ako je subota ili nedjelja neka dadne dupli exp.. itd
Tebi treba prvo nešto da dobiješ subotu i nedjelju, znaci moraš napraviti nešto da "skripta zna" da je baš danas subota ili nedjelja!
I onda samo provjeru napraviš, ako je subota ili nedjelja neka dadne dupli exp.. itd
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava