[POMOC] EXP

Započeo Danisha, Oktobar 20, 2012, 11:35:23 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

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
public PayDay()
{
new string[128];
new Nalog,interest;
new rent = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
    if(PlayerInfo[i][pLevel] > 0)
    {
    if(MoneyMessage[i]==1)
{
    new bank = PlayerInfo[i][pNalog];
    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[i][pJailed] = 1;
            SafeResetPlayerWeapons(i);
            SafeResetPlayerMoney(i);
SafeGivePlayerMoney(i, 1);
WantedPoints[i] = 0;
PlayerInfo[i][pNalog] = (bank + DebtMoney[i]);
DebtMoney[i] = 0;
PlayerInfo[i][pJailTime] = 240;
TextDrawShowForPlayer(i, Textdraw1[i]);
format(string, sizeof(string), "Zatvoreni ste na %d sekundi.   Kaucija: Onemogucena", PlayerInfo[i][pJailTime]);
SendClientMessage(i, COLOR_WHITE, string);
}
new playername2[MAX_PLAYER_NAME];
GetPlayerName(i, playername2, sizeof(playername2));
Nalog = PlayerInfo[i][pNalog];
new key = PlayerInfo[i][pPhousekey];
if(key != 9999)
{
rent = HouseInfo[key][hRent];
if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
{
rent = 0;
}
else if(rent > GetPlayerMoney(i))
{
PlayerInfo[i][pPhousekey] = 9999;
SendClientMessage(i, COLOR_WHITE, "You have been evicted.");
rent = 0;
}
HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;
}
new tmpintrate;
if (key != 9999 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
{
    if(PlayerInfo[i][pRegularRank] > 0) { tmpintrate = intrate+4; }
else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel]
}
else
{
    if(PlayerInfo[i][pRegularRank] > 0) { tmpintrate = 3; }
else { tmpintrate = 1; }
}
if(PlayerInfo[i][pPayDay] >= 5)
{
    Tax += TaxValue;//Should work for every player online
    PlayerInfo[i][pNalog] -= TaxValue;
new checks = PlayerInfo[i][pPayCheck]/10;
if(PlayerInfo[i][pDonateRank] == 1)
{
    new bonus = (PlayerInfo[i][pPayCheck]/10)/4;
    checks += bonus;
}
else if(PlayerInfo[i][pDonateRank] == 2)
{
    new bonus = (PlayerInfo[i][pPayCheck]/10)/10*4;
    checks += bonus;
}
else if(PlayerInfo[i][pDonateRank] == 3)
{
    new bonus = (PlayerInfo[i][pPayCheck]/10)/10*7;
    checks += bonus;
}
else if(PlayerInfo[i][pDonateRank] == 4)
{
    new bonus = PlayerInfo[i][pPayCheck]/10;
    checks += bonus;
}
    new ebill = (PlayerInfo[i][pNalog]/9000)*(PlayerInfo[i][pLevel]);
new porez = (PlayerInfo[i][pNalog]/20000)*(PlayerInfo[i][pLevel]);
    Nalog += checks;
DrzavniBudzet -= checks;
    if(PlayerInfo[i][pNalog] > 0)
    {
    Nalog -= ebill;
    SBizzInfo[4][sbTill] += ebill/2;
DrzavniBudzet += ebill/2;
}
else
{
    ebill = 0;
}
if(PlayerInfo[i][pDonateRank] < 4)
{
if(PlayerInfo[i][pNalog] > 1000000 && key != 9999 || GetPlayerMoney(i) > 1000000 && key != 9999)
{
Nalog -= porez;
DrzavniBudzet += porez;
}
else
{
porez = 0;
}
}
interest = (PlayerInfo[i][pNalog]/1000)*(tmpintrate);
PlayerInfo[i][pExp]++;
PlayerPlayMusic(i);
PlayerInfo[i][pNalog] = 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[i][pPhousekey] != 9999 || PlayerInfo[i][pPbiskey] != 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[i][pDonateRank] < 4)
{
if(PlayerInfo[i][pNalog] > 1000000 && key != 9999 || GetPlayerMoney(i) > 1000000 && key != 9999)
{
format(string, sizeof(string), "  Porez na bogatstvo: -$%d", porez);
SendClientMessage(i, COLOR_GRAD1, string);
}
}
if(PlayerInfo[i][pDonateRank] < 3)
{
if(PlayerInfo[i][pPcarkey] != 9999 && PlayerInfo[i][pPcarkey2] != 9999)
{
PlayerInfo[i][pNalog] -= 2000;
DrzavniBudzet += 2000;
SendClientMessage(i, COLOR_GREY,"  Porez na drugo vozilo 2000$");
}
}
SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
format(string, sizeof(string), "  Novo stanje: $%d", PlayerInfo[i][pNalog]);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), "  Rent: -$%d", rent);
SendClientMessage(i, COLOR_GRAD5, string);
if(PlayerInfo[i][pKredit] != 0)
{
SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
format(string, sizeof(string), "  Ukupan Kredit: $%d", PlayerInfo[i][pKredit]);
SendClientMessage(i, COLOR_GRAD5, string);
}
if(PlayerInfo[i][pKredit] >= 475)
{
SendClientMessage(i, COLOR_GRAD5,"  Rata za Kredit: $500");
PlayerInfo[i][pKredit] -= 475;
Nalog -= 500;
SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
}
else if(PlayerInfo[i][pKredit] < 475 && PlayerInfo[i][pKredit] != 0)
{
PlayerInfo[i][pKredit] = 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[i][pPayDay] = 0;
PlayerInfo[i][pPayCheck] = 0;
if(FarmerVar[i] == 0)
{
FarmerPickup[i][0] = 0;
}
if(DrugFarmerVar[i] == 0)
{
DrugFarmerPickup[i][0] = 0;
}
if(SmugglerWork[i] == 0)
{
PayDaySecure[i] = 0;
}
if(PlayerInfo[i][pRegularRank] > 0)
{
    PlayerInfo[i][pPayDayHad] += 1;
    if(PlayerInfo[i][pPayDayHad] >= 5)
    {
        PlayerInfo[i][pExp]++;
        PlayerInfo[i][pPayDayHad] = 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

Yakavetta


Hm, nisam se toliko bavio ravensom, ali nesto sam smixao

if(strcmp(cmd,"/duplixp", true)==0)
{
    {
        foreach (Player, i)
{
PlayerInfo[i][pExp]+++;
}
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[i][pExp]++;
}


Nikad se nisam bavio raven's-om, pa mala vjerovatnost da ce biti dobro
Poslednja Izmena: Oktobar 20, 2012, 13:33:34 POSLE PODNE od Coldplay

To sto si ti uradio ColdPlay ne valja nista to ce samo da mu da jednom a najbolje bi bilo da napravi varijablu i da sa njom napravi nesto

Pa gledajte, znaci, kada je subota 0:00, vi ubacite da se dobija 2sata, umesto 1sat u pawno, i samo promenite mod, i to je to :)
RESPECT :
Vegas & C++

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[i][pExp] = PlayerInfo[i][pExp] + 2;
}
}
Poslednja Izmena: Oktobar 20, 2012, 15:32:28 POSLE PODNE od gReeDy.aMx

Nista ja vas nerazumijem moze li mi neko od vas da to sredi u to moje gore Public PayDay da u petak u 00:00 ide dupli respekt pa sve do nedeljke do 23:00

Nemozes to tako namjestiti... Najbolje ti je da napravis cmd, s kojom palis i gasis dupli xp

A kako to uraditi? :D Ali da za svaku platu bude 2 exp-a.
.
Poslednja Izmena: Oktobar 20, 2012, 18:54:23 POSLE PODNE od Nitro

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?

Brate ako imas posto sam prije igro na noobotu pa sam to i video ako imas samo postavi

Koristi include GetDay , potrazi ga na samp forumu.
ODSUTAN

public PayDay()
{
new string[128];
new Nalog,interest;
new rent = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
    if(PlayerInfo[i][pLevel] > 0)
    {
    if(MoneyMessage[i]==1)
{
    new bank = PlayerInfo[i][pNalog];
    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[i][pJailed] = 1;
            SafeResetPlayerWeapons(i);
            SafeResetPlayerMoney(i);
SafeGivePlayerMoney(i, 1);
WantedPoints[i] = 0;
PlayerInfo[i][pNalog] = (bank + DebtMoney[i]);
DebtMoney[i] = 0;
PlayerInfo[i][pJailTime] = 240;
TextDrawShowForPlayer(i, Textdraw1[i]);
format(string, sizeof(string), "Zatvoreni ste na %d sekundi.   Kaucija: Onemogucena", PlayerInfo[i][pJailTime]);
SendClientMessage(i, COLOR_WHITE, string);
}
new playername2[MAX_PLAYER_NAME];
GetPlayerName(i, playername2, sizeof(playername2));
Nalog = PlayerInfo[i][pNalog];
new key = PlayerInfo[i][pPhousekey];
if(key != 9999)
{
rent = HouseInfo[key][hRent];
if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
{
rent = 0;
}
else if(rent > GetPlayerMoney(i))
{
PlayerInfo[i][pPhousekey] = 9999;
SendClientMessage(i, COLOR_WHITE, "You have been evicted.");
rent = 0;
}
HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;
}
new tmpintrate;
if (key != 9999 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
{
    if(PlayerInfo[i][pRegularRank] > 0) { tmpintrate = intrate+4; }
else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel]
}
else
{
    if(PlayerInfo[i][pRegularRank] > 0) { tmpintrate = 3; }
else { tmpintrate = 1; }
}
if(PlayerInfo[i][pPayDay] >= 5)
{
    Tax += TaxValue;//Should work for every player online
    PlayerInfo[i][pNalog] -= TaxValue;
new checks = PlayerInfo[i][pPayCheck]/10;
if(PlayerInfo[i][pDonateRank] == 1)
{
    new bonus = (PlayerInfo[i][pPayCheck]/10)/4;
    checks += bonus;
}
else if(PlayerInfo[i][pDonateRank] == 2)
{
    new bonus = (PlayerInfo[i][pPayCheck]/10)/10*4;
    checks += bonus;
}
else if(PlayerInfo[i][pDonateRank] == 3)
{
    new bonus = (PlayerInfo[i][pPayCheck]/10)/10*7;
    checks += bonus;
}
else if(PlayerInfo[i][pDonateRank] == 4)
{
    new bonus = PlayerInfo[i][pPayCheck]/10;
    checks += bonus;
}
    new ebill = (PlayerInfo[i][pNalog]/9000)*(PlayerInfo[i][pLevel]);
new porez = (PlayerInfo[i][pNalog]/20000)*(PlayerInfo[i][pLevel]);
    Nalog += checks;
DrzavniBudzet -= checks;
    if(PlayerInfo[i][pNalog] > 0)
    {
    Nalog -= ebill;
    SBizzInfo[4][sbTill] += ebill/2;
DrzavniBudzet += ebill/2;
}
else
{
    ebill = 0;
}
if(PlayerInfo[i][pDonateRank] < 4)
{
if(PlayerInfo[i][pNalog] > 1000000 && key != 9999 || GetPlayerMoney(i) > 1000000 && key != 9999)
{
Nalog -= porez;
DrzavniBudzet += porez;
}
else
{
porez = 0;
}
}
interest = (PlayerInfo[i][pNalog]/1000)*(tmpintrate);
PlayerInfo[i][pExp]++;
PlayerPlayMusic(i);
PlayerInfo[i][pNalog] = 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[i][pPhousekey] != 9999 || PlayerInfo[i][pPbiskey] != 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[i][pDonateRank] < 4)
{
if(PlayerInfo[i][pNalog] > 1000000 && key != 9999 || GetPlayerMoney(i) > 1000000 && key != 9999)
{
format(string, sizeof(string), "  Porez na bogatstvo: -$%d", porez);
SendClientMessage(i, COLOR_GRAD1, string);
}
}
if(PlayerInfo[i][pDonateRank] < 3)
{
if(PlayerInfo[i][pPcarkey] != 9999 && PlayerInfo[i][pPcarkey2] != 9999)
{
PlayerInfo[i][pNalog] -= 2000;
DrzavniBudzet += 2000;
SendClientMessage(i, COLOR_GREY,"  Porez na drugo vozilo 2000$");
}
}
SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
format(string, sizeof(string), "  Novo stanje: $%d", PlayerInfo[i][pNalog]);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), "  Rent: -$%d", rent);
SendClientMessage(i, COLOR_GRAD5, string);
if(PlayerInfo[i][pKredit] != 0)
{
SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
format(string, sizeof(string), "  Ukupan Kredit: $%d", PlayerInfo[i][pKredit]);
SendClientMessage(i, COLOR_GRAD5, string);
}
if(PlayerInfo[i][pKredit] >= 475)
{
SendClientMessage(i, COLOR_GRAD5,"  Rata za Kredit: $500");
PlayerInfo[i][pKredit] -= 475;
Nalog -= 500;
SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
}
else if(PlayerInfo[i][pKredit] < 475 && PlayerInfo[i][pKredit] != 0)
{
PlayerInfo[i][pKredit] = 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[i][pPayDay] = 0;
PlayerInfo[i][pPayCheck] = 0;
if(FarmerVar[i] == 0)
{
FarmerPickup[i][0] = 0;
}
if(DrugFarmerVar[i] == 0)
{
DrugFarmerPickup[i][0] = 0;
}
if(SmugglerWork[i] == 0)
{
PayDaySecure[i] = 0;
}
if(PlayerInfo[i][pRegularRank] > 0)
{
    PlayerInfo[i][pPayDayHad] += 1;
    if(PlayerInfo[i][pPayDayHad] >= 5)
    {
        PlayerInfo[i][pExp]++;
        PlayerInfo[i][pPayDayHad] = 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

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