From 1dbb42ce395f1240864785d3a17ebb4a6b993b02 Mon Sep 17 00:00:00 2001 From: Mrucznik Date: Sun, 22 Mar 2020 20:08:54 +0100 Subject: [PATCH 01/10] =?UTF-8?q?Gotowanie=20poprawka=20-=20ponowne=20wy?= =?UTF-8?q?=C5=9Bwetlnie=20UI=20po=20ugotowaniu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gamemodes/modules/cooking/commands/ugotuj/ugotuj_impl.pwn | 1 + 1 file changed, 1 insertion(+) diff --git a/gamemodes/modules/cooking/commands/ugotuj/ugotuj_impl.pwn b/gamemodes/modules/cooking/commands/ugotuj/ugotuj_impl.pwn index 903363e26..b9b860963 100644 --- a/gamemodes/modules/cooking/commands/ugotuj/ugotuj_impl.pwn +++ b/gamemodes/modules/cooking/commands/ugotuj/ugotuj_impl.pwn @@ -63,6 +63,7 @@ ugotuj_OnDialogResponse(playerid, listitem) SendClientMessage(playerid,COLOR_LIGHTBLUE, sprintf("* Ugotowałes potrawę: %s, ważącą %dg.", name, weight )); + command_ugotuj_Impl(playerid); } AddCookingFishRow(playerid, string[1024], slot, id, weight) From 5039b86d16e60507d4944fbd165e9cbc85c6f23a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20Szyma=C5=84ski=20=28Creative=29?= <15707695+creative-pl@users.noreply.github.com> Date: Mon, 23 Mar 2020 19:08:56 +0100 Subject: [PATCH 02/10] obiekty event --- gamemodes/obiekty | 2 +- include | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gamemodes/obiekty b/gamemodes/obiekty index 698a05451..a717a1d59 160000 --- a/gamemodes/obiekty +++ b/gamemodes/obiekty @@ -1 +1 @@ -Subproject commit 698a05451cafc869393cd9de4d7dddf37a726f53 +Subproject commit a717a1d59c8710add17dd6aa96523521ff8ec15e diff --git a/include b/include index db7b3fcc5..ae6661353 160000 --- a/include +++ b/include @@ -1 +1 @@ -Subproject commit db7b3fcc52761bdbcb0cc0e731894c3df81b3291 +Subproject commit ae666135311abf2ee88fd4e21532097ab27693c6 From cb207bad33b1994a2bcca88503aa86d4637113a0 Mon Sep 17 00:00:00 2001 From: Mrucznik Date: Mon, 23 Mar 2020 19:12:04 +0100 Subject: [PATCH 03/10] nerf ryb --- .../fishing/commands/sprzedajrybe/sprzedajrybe_impl.pwn | 8 ++++---- gamemodes/system/timery.pwn | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gamemodes/modules/fishing/commands/sprzedajrybe/sprzedajrybe_impl.pwn b/gamemodes/modules/fishing/commands/sprzedajrybe/sprzedajrybe_impl.pwn index 2f5fa4201..07934aa0e 100644 --- a/gamemodes/modules/fishing/commands/sprzedajrybe/sprzedajrybe_impl.pwn +++ b/gamemodes/modules/fishing/commands/sprzedajrybe/sprzedajrybe_impl.pwn @@ -61,7 +61,7 @@ command_sprzedajrybe_Impl(playerid, fishid) else if(fishid == 2 && Fishes[playerid][pWeight2] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Sprzedałeś rybę numer 2!"); - format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish2], Fishes[playerid][pWeight2], Fishes[playerid][pWeight2]*20); + format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish2], Fishes[playerid][pWeight2], Fishes[playerid][pWeight2]*5); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); DajKase(playerid, Fishes[playerid][pWeight2]*25); ClearFishID(playerid, fishid); @@ -72,7 +72,7 @@ command_sprzedajrybe_Impl(playerid, fishid) else if(fishid == 3 && Fishes[playerid][pWeight3] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Sprzedałeś rybę numer 3!"); - format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish3], Fishes[playerid][pWeight3], Fishes[playerid][pWeight3]*20); + format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish3], Fishes[playerid][pWeight3], Fishes[playerid][pWeight3]*5); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); DajKase(playerid, Fishes[playerid][pWeight3]*25); ClearFishID(playerid, fishid); @@ -83,7 +83,7 @@ command_sprzedajrybe_Impl(playerid, fishid) else if(fishid == 4 && Fishes[playerid][pWeight4] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Sprzedałeś rybę numer 4!"); - format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish4], Fishes[playerid][pWeight4], Fishes[playerid][pWeight4]*20); + format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish4], Fishes[playerid][pWeight4], Fishes[playerid][pWeight4]*5); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); DajKase(playerid, Fishes[playerid][pWeight4]*25); ClearFishID(playerid, fishid); @@ -94,7 +94,7 @@ command_sprzedajrybe_Impl(playerid, fishid) else if(fishid == 5 && Fishes[playerid][pWeight5] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Sprzedałeś rybę numer 5!"); - format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish5], Fishes[playerid][pWeight5], Fishes[playerid][pWeight5]*20); + format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish5], Fishes[playerid][pWeight5], Fishes[playerid][pWeight5]*5); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); DajKase(playerid, Fishes[playerid][pWeight5]*25); ClearFishID(playerid, fishid); diff --git a/gamemodes/system/timery.pwn b/gamemodes/system/timery.pwn index 806156195..6662b1ffa 100644 --- a/gamemodes/system/timery.pwn +++ b/gamemodes/system/timery.pwn @@ -1826,7 +1826,6 @@ public Production() { foreach(new i : Player) { - if(PlayerInfo[i][pFishes] >= 5) { if(FishCount[i] >= 3) { PlayerInfo[i][pFishes] = 0; } else { FishCount[i] += 1; } } if(PlayerDrunk[i] > 0) { PlayerDrunkTime[i] = 0; GameTextForPlayer(i, "~p~Jestes mniej pijany~n~~r~Pijaku", 3500, 1); } if(GetPlayerDrunkLevel(i) < 1999 && PlayerDrunk[i] > 0) { PlayerDrunk[i] = 0; PlayerDrunkTime[i] = 0; GameTextForPlayer(i, "~p~Wytrzezwiales~n~~r~Pijaku", 3500, 1); } if(PlayerInfo[i][pPayDay] < 6 && !IsPlayerPaused(i)) { PlayerInfo[i][pPayDay] += 1; } //+ 5 min to PayDay anti-abuse @@ -2099,6 +2098,8 @@ public IdleKick() PlayerPos[i][4] = PlayerPos[i][1]; PlayerPos[i][5] = PlayerPos[i][2]; } + + if(PlayerInfo[i][pFishes] >= 5) { if(FishCount[i] >= 3) { PlayerInfo[i][pFishes] = 0; } else { FishCount[i] += 1; } } } return 1; }/* From 981f7faa6671372f68b7c847910174af89e82cc5 Mon Sep 17 00:00:00 2001 From: gumbalowsky Date: Mon, 23 Mar 2020 20:40:53 +0100 Subject: [PATCH 04/10] Zablokowanie DFT od 2 lvl(!) --- gamemodes/old_modules/niceczlowiek/general.pwn | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gamemodes/old_modules/niceczlowiek/general.pwn b/gamemodes/old_modules/niceczlowiek/general.pwn index c9b7b4ebe..14777034c 100644 --- a/gamemodes/old_modules/niceczlowiek/general.pwn +++ b/gamemodes/old_modules/niceczlowiek/general.pwn @@ -176,14 +176,12 @@ Player_CanUseCar(playerid, vehicleid) { if(CarData[lcarid][c_Owner] != GetPlayerFraction(playerid) && CarData[lcarid][c_Owner] != 11) { - if(PlayerInfo[playerid][pAdmin] >= 5000) return 1; format(string, sizeof(string), " Ten pojazd należy do %s i nie możesz nim kierować.", FractionNames[CarData[lcarid][c_Owner]]); sendTipMessageEx(playerid,COLOR_GREY,string); return 0; } if(CarData[lcarid][c_Owner] == 11) { - if(PlayerInfo[playerid][pAdmin] >= 5000) return 1; if(GetPlayerFraction(playerid) == 11 && PlayerInfo[playerid][pRank] >= CarData[lcarid][c_Rang]) return 1; if(GetPlayerFraction(playerid) == 11 && PlayerInfo[playerid][pRank] < CarData[lcarid][c_Rang]) { @@ -198,7 +196,6 @@ Player_CanUseCar(playerid, vehicleid) } if(PlayerInfo[playerid][pRank] < CarData[lcarid][c_Rang]) { - if(PlayerInfo[playerid][pAdmin] >= 5000) return 1; format(string, sizeof(string), "Aby kierować tym pojazdem potrzebujesz %d rangi!", CarData[lcarid][c_Rang]); sendTipMessageEx(playerid,COLOR_GREY,string); return 0; @@ -242,14 +239,12 @@ Player_CanUseCar(playerid, vehicleid) } if(wywal) { - if(PlayerInfo[playerid][pAdmin] >= 5000) return 1; format(string, sizeof(string), "Aby prowadzić ten pojazd potrzebujesz %d skilla w zawodzie %s.", CarData[lcarid][c_Rang], JobNames[CarData[lcarid][c_Owner]]); sendTipMessageEx(playerid,COLOR_GREY,string); return 0; } - if(vehicleid == 578 && PlayerInfo[playerid][pLevel] == 1) + if(GetVehicleModel(vehicleid) == 578 && PlayerInfo[playerid][pLevel] == 1) { - if(PlayerInfo[playerid][pAdmin] >= 5000) return 1; format(string, sizeof(string), "Musisz mieć 2 level aby prowadzić tym pojazdem."); sendTipMessageEx(playerid,COLOR_GREY,string); return 0; From 03bc554cc50e18b81817c06504187210ac041f1b Mon Sep 17 00:00:00 2001 From: Mrucznik Date: Tue, 24 Mar 2020 00:53:38 +0100 Subject: [PATCH 05/10] nerf ryb --- .../sprzedajrybe/sprzedajrybe_impl.pwn | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/gamemodes/modules/fishing/commands/sprzedajrybe/sprzedajrybe_impl.pwn b/gamemodes/modules/fishing/commands/sprzedajrybe/sprzedajrybe_impl.pwn index 07934aa0e..d56f251b7 100644 --- a/gamemodes/modules/fishing/commands/sprzedajrybe/sprzedajrybe_impl.pwn +++ b/gamemodes/modules/fishing/commands/sprzedajrybe/sprzedajrybe_impl.pwn @@ -50,9 +50,9 @@ command_sprzedajrybe_Impl(playerid, fishid) else if(fishid == 1 && Fishes[playerid][pWeight1] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Sprzedałeś rybę numer 1!"); - format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish1], Fishes[playerid][pWeight1], Fishes[playerid][pWeight1]*20); + format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish1], Fishes[playerid][pWeight1], Fishes[playerid][pWeight1]*10); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); - DajKase(playerid, Fishes[playerid][pWeight1]*25); + DajKase(playerid, Fishes[playerid][pWeight1]*10); ClearFishID(playerid, fishid); Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0; @@ -61,9 +61,9 @@ command_sprzedajrybe_Impl(playerid, fishid) else if(fishid == 2 && Fishes[playerid][pWeight2] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Sprzedałeś rybę numer 2!"); - format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish2], Fishes[playerid][pWeight2], Fishes[playerid][pWeight2]*5); + format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish2], Fishes[playerid][pWeight2], Fishes[playerid][pWeight2]*10); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); - DajKase(playerid, Fishes[playerid][pWeight2]*25); + DajKase(playerid, Fishes[playerid][pWeight2]*10); ClearFishID(playerid, fishid); Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0; @@ -72,9 +72,9 @@ command_sprzedajrybe_Impl(playerid, fishid) else if(fishid == 3 && Fishes[playerid][pWeight3] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Sprzedałeś rybę numer 3!"); - format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish3], Fishes[playerid][pWeight3], Fishes[playerid][pWeight3]*5); + format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish3], Fishes[playerid][pWeight3], Fishes[playerid][pWeight3]*10); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); - DajKase(playerid, Fishes[playerid][pWeight3]*25); + DajKase(playerid, Fishes[playerid][pWeight3]*10); ClearFishID(playerid, fishid); Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0; @@ -83,9 +83,9 @@ command_sprzedajrybe_Impl(playerid, fishid) else if(fishid == 4 && Fishes[playerid][pWeight4] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Sprzedałeś rybę numer 4!"); - format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish4], Fishes[playerid][pWeight4], Fishes[playerid][pWeight4]*5); + format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish4], Fishes[playerid][pWeight4], Fishes[playerid][pWeight4]*10); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); - DajKase(playerid, Fishes[playerid][pWeight4]*25); + DajKase(playerid, Fishes[playerid][pWeight4]*10); ClearFishID(playerid, fishid); Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0; @@ -94,9 +94,9 @@ command_sprzedajrybe_Impl(playerid, fishid) else if(fishid == 5 && Fishes[playerid][pWeight5] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Sprzedałeś rybę numer 5!"); - format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish5], Fishes[playerid][pWeight5], Fishes[playerid][pWeight5]*5); + format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish5], Fishes[playerid][pWeight5], Fishes[playerid][pWeight5]*10); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); - DajKase(playerid, Fishes[playerid][pWeight5]*25); + DajKase(playerid, Fishes[playerid][pWeight5]*10); ClearFishID(playerid, fishid); Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0; From 9953f35f587c5fcd746a01ed725ca0af49fa54e8 Mon Sep 17 00:00:00 2001 From: Mrucznik Date: Tue, 24 Mar 2020 01:07:10 +0100 Subject: [PATCH 06/10] nex-ac remove --- pawn.json | 1 - 1 file changed, 1 deletion(-) diff --git a/pawn.json b/pawn.json index f06688622..110a249e0 100644 --- a/pawn.json +++ b/pawn.json @@ -13,7 +13,6 @@ "Southclaws/pawn-requests:0.8.7", "Open-GTO/sa-mp-fixes", "emmet-jones/New-SA-MP-callbacks", - "NexiusTailer/Nex-AC", "oscar-broman/strlib", "pawn-lang/YSI-Includes@4.x", "Southclaws/samp-whirlpool", From b642597232da272247a6efb36da101bd52556945 Mon Sep 17 00:00:00 2001 From: Mrucznik Date: Tue, 24 Mar 2020 13:52:57 +0100 Subject: [PATCH 07/10] zmiana regexa nickow aby zezwalal na nick typu John_McTea --- gamemodes/system/funkcje.pwn | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gamemodes/system/funkcje.pwn b/gamemodes/system/funkcje.pwn index d0887c56f..58784ca63 100644 --- a/gamemodes/system/funkcje.pwn +++ b/gamemodes/system/funkcje.pwn @@ -8712,8 +8712,7 @@ Sejf_Load() IsNickCorrect(nick[]) { - //if(regex_match(nick, "^[A-Z]{1}[a-z]{1,}(_[A-Z]{1}[a-z]{1,}([A-HJ-Z]{1}[a-z]{1,})?){1,2}$") >= 0) - if(regex_match(nick, "^[A-Z][a-z]+(( |_)[A-Z][a-z]{1,})+$") >= 0) + if(regex_match(nick, "^[A-Z][a-z]+([ _][A-Z][a-z]+([A-HJ-Z][a-z]+)?){1,2}$") >= 0) { return 1; } From ff18b1a1bb09662c6bd787e12b08e48e70f898f6 Mon Sep 17 00:00:00 2001 From: Mrucznik Date: Thu, 26 Mar 2020 12:26:59 +0100 Subject: [PATCH 08/10] wolne rybki!!! --- .../sprzedajrybe/sprzedajrybe_impl.pwn | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/gamemodes/modules/fishing/commands/sprzedajrybe/sprzedajrybe_impl.pwn b/gamemodes/modules/fishing/commands/sprzedajrybe/sprzedajrybe_impl.pwn index d56f251b7..1944fbb0b 100644 --- a/gamemodes/modules/fishing/commands/sprzedajrybe/sprzedajrybe_impl.pwn +++ b/gamemodes/modules/fishing/commands/sprzedajrybe/sprzedajrybe_impl.pwn @@ -25,6 +25,7 @@ //------------------<[ Implementacja: ]>------------------- command_sprzedajrybe_Impl(playerid, fishid) { + const moneyPerKg = 15; new string[128]; if (!PlayerToPoint(100, playerid,-30.875, -88.9609, 1004.53))//centerpoint 24-7 { @@ -41,6 +42,7 @@ command_sprzedajrybe_Impl(playerid, fishid) KickEx(playerid); return 1; } + if(fishid < 1 || fishid > 5) { sendTipMessageEx(playerid, COLOR_GREY, "Numer ryby od 1 do 5 !"); return 1; } else if(fishid == 1 && Fishes[playerid][pWeight1] < 1) { SendClientMessage(playerid, COLOR_GREY, " Nie złowiłeś żadnej ryby pod numerem(1) !"); return 1; } else if(fishid == 2 && Fishes[playerid][pWeight2] < 1) { SendClientMessage(playerid, COLOR_GREY, " Nie złowiłeś żadnej ryby pod numerem(2) !"); return 1; } @@ -50,9 +52,9 @@ command_sprzedajrybe_Impl(playerid, fishid) else if(fishid == 1 && Fishes[playerid][pWeight1] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Sprzedałeś rybę numer 1!"); - format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish1], Fishes[playerid][pWeight1], Fishes[playerid][pWeight1]*10); + format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish1], Fishes[playerid][pWeight1], Fishes[playerid][pWeight1]*moneyPerKg); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); - DajKase(playerid, Fishes[playerid][pWeight1]*10); + DajKase(playerid, Fishes[playerid][pWeight1]*moneyPerKg); ClearFishID(playerid, fishid); Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0; @@ -61,9 +63,9 @@ command_sprzedajrybe_Impl(playerid, fishid) else if(fishid == 2 && Fishes[playerid][pWeight2] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Sprzedałeś rybę numer 2!"); - format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish2], Fishes[playerid][pWeight2], Fishes[playerid][pWeight2]*10); + format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish2], Fishes[playerid][pWeight2], Fishes[playerid][pWeight2]*moneyPerKg); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); - DajKase(playerid, Fishes[playerid][pWeight2]*10); + DajKase(playerid, Fishes[playerid][pWeight2]*moneyPerKg); ClearFishID(playerid, fishid); Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0; @@ -72,9 +74,9 @@ command_sprzedajrybe_Impl(playerid, fishid) else if(fishid == 3 && Fishes[playerid][pWeight3] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Sprzedałeś rybę numer 3!"); - format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish3], Fishes[playerid][pWeight3], Fishes[playerid][pWeight3]*10); + format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish3], Fishes[playerid][pWeight3], Fishes[playerid][pWeight3]*moneyPerKg); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); - DajKase(playerid, Fishes[playerid][pWeight3]*10); + DajKase(playerid, Fishes[playerid][pWeight3]*moneyPerKg); ClearFishID(playerid, fishid); Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0; @@ -83,9 +85,9 @@ command_sprzedajrybe_Impl(playerid, fishid) else if(fishid == 4 && Fishes[playerid][pWeight4] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Sprzedałeś rybę numer 4!"); - format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish4], Fishes[playerid][pWeight4], Fishes[playerid][pWeight4]*10); + format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish4], Fishes[playerid][pWeight4], Fishes[playerid][pWeight4]*moneyPerKg); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); - DajKase(playerid, Fishes[playerid][pWeight4]*10); + DajKase(playerid, Fishes[playerid][pWeight4]*moneyPerKg); ClearFishID(playerid, fishid); Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0; @@ -94,9 +96,9 @@ command_sprzedajrybe_Impl(playerid, fishid) else if(fishid == 5 && Fishes[playerid][pWeight5] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Sprzedałeś rybę numer 5!"); - format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish5], Fishes[playerid][pWeight5], Fishes[playerid][pWeight5]*10); + format(string, sizeof(string), "Sprzedałeś rybę: %s, ważącą %d kg. Otrzymujesz %d$.", Fishes[playerid][pFish5], Fishes[playerid][pWeight5], Fishes[playerid][pWeight5]*moneyPerKg); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); - DajKase(playerid, Fishes[playerid][pWeight5]*10); + DajKase(playerid, Fishes[playerid][pWeight5]*moneyPerKg); ClearFishID(playerid, fishid); Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0; From ffe0da2bb075caeb516070ef0d178002748a6c25 Mon Sep 17 00:00:00 2001 From: Mrucznik Date: Thu, 26 Mar 2020 12:27:04 +0100 Subject: [PATCH 09/10] /wydaj --- gamemodes/commands/commands.pwn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gamemodes/commands/commands.pwn b/gamemodes/commands/commands.pwn index ec310cf03..a84b5322f 100644 --- a/gamemodes/commands/commands.pwn +++ b/gamemodes/commands/commands.pwn @@ -563,7 +563,7 @@ #include "cmd/wynajempomoc.pwn" #include "cmd/wyniki.pwn" #include "cmd/wypij.pwn" -//#include "cmd/wypisz.pwn" +#include "cmd/wypisz.pwn" #include "cmd/wyplac.pwn" #include "cmd/wyprowadz.pwn" #include "cmd/wypusc.pwn" @@ -1309,7 +1309,7 @@ static Aliases() Command_AddAltNamed("wypij", "pij"); //wypisz - //Command_AddAltNamed("wypisz", "wydaj"); + Command_AddAltNamed("wypisz", "wydaj"); //wyplac Command_AddAltNamed("wyplac", "withdraw"); From ed3122ff8cc5d2deade25f71d36c27ebe048a27d Mon Sep 17 00:00:00 2001 From: Mrucznik Date: Thu, 26 Mar 2020 12:27:04 +0100 Subject: [PATCH 10/10] /wydaj --- gamemodes/commands/cmd/wypisz.pwn | 4 ++-- gamemodes/commands/commands.pwn | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gamemodes/commands/cmd/wypisz.pwn b/gamemodes/commands/cmd/wypisz.pwn index 13cff29ac..f8399cb67 100644 --- a/gamemodes/commands/cmd/wypisz.pwn +++ b/gamemodes/commands/cmd/wypisz.pwn @@ -52,9 +52,9 @@ YCMD:wypisz(playerid, params[], help) { if(giveplayerid != INVALID_PLAYER_ID) { - SendClientMessage(playerid, COLOR_LIGHTBLUE, sprintf("Dałeś dowód osobisty %s", GetNick(giveplayerid, true))); + SendClientMessage(playerid, COLOR_LIGHTBLUE, sprintf("Dałeś dowód osobisty %s", GetNickEx(giveplayerid))); if(giveplayerid != playerid) - SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, sprintf("Urzędnik %s dał Tobie dowód osobisty", GetNick(playerid, true))); + SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, sprintf("Urzędnik %s dał Tobie dowód osobisty", GetNickEx(playerid))); PlayerInfo[giveplayerid][pDowod] = 1; return 1; diff --git a/gamemodes/commands/commands.pwn b/gamemodes/commands/commands.pwn index ec310cf03..a84b5322f 100644 --- a/gamemodes/commands/commands.pwn +++ b/gamemodes/commands/commands.pwn @@ -563,7 +563,7 @@ #include "cmd/wynajempomoc.pwn" #include "cmd/wyniki.pwn" #include "cmd/wypij.pwn" -//#include "cmd/wypisz.pwn" +#include "cmd/wypisz.pwn" #include "cmd/wyplac.pwn" #include "cmd/wyprowadz.pwn" #include "cmd/wypusc.pwn" @@ -1309,7 +1309,7 @@ static Aliases() Command_AddAltNamed("wypij", "pij"); //wypisz - //Command_AddAltNamed("wypisz", "wydaj"); + Command_AddAltNamed("wypisz", "wydaj"); //wyplac Command_AddAltNamed("wyplac", "withdraw");