beyler komut ile heryerden 2 kat skor 2 kat para 2 kat exp almasını istiyorm elinde olan varsa rica etsem atabilirmi mod lodos modu
mesela atıyorm /x2etk yazcak komuttan sonra 2 kat skor para exp vercek ve yine aynı komutu yazarak devre dışıı bırakcak elinde olan varsa atabilirmi
Modun başına;
new x2Etk = 0;
CMD:x2etk(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "RCON değilsin.");
if(x2Etk == 0)
{
x2Etk = 1;
SendClientMessage(playerid, -1, "2x etkinliği açıldı.");
}
else
{
x2Etk = 0;
SendClientMessage(playerid, -1, "2x etkinliği kapandı.");
}
return 1;
}
2 Kat para, skor ve XP vermek sana kalmış.
zoxy tam olarak nasıl yapcamı anlatırmısn rica etsem ekledim moda bunları
@zoxy bu paylaştığınız komut anadolu moduna veya bozkurt moduna eklesek çalışırmı?
function SoygunTimer()
{
foreach(new i : Player)
{
if(aranmaSeviyesii[i] <= 0)
{
if(gTeam[i] != POLIS ||
gTeam[i] != CEVIK_KUVVET ||
gTeam[i] != OZEL_HAREKAT_TIMI ||
gTeam[i] != SIVIL_POLIS ||
gTeam[i] != OZEL_KUVVET_B ||
gTeam[i] != TURK_H_KUVVETLERI ||
gTeam[i] != TURK_D_KUVVETLERI)
{
SetPlayerColor(i, -1);
}
}
if(aranmaSeviyesii[i] >= 1 && aranmaSeviyesii[i] <= 3) SetPlayerColor(i, 0xFEC606FF);
if(aranmaSeviyesii[i] >= 4 && aranmaSeviyesii[i] <= 35) SetPlayerColor(i, 0xE67E22FF);
if(aranmaSeviyesii[i] >= 36) SetPlayerColor(i, 0xC0392BFF);
if(gTeam[i] == POLIS) SetPlayerColor(i, POLIS_RENK);
if(gTeam[i] == CEVIK_KUVVET) SetPlayerColor(i, 0x44BBFFFF);
if(gTeam[i] == OZEL_HAREKAT_TIMI) SetPlayerColor(i, 0xD33257FF);
if(gTeam[i] == SIVIL_POLIS) SetPlayerColor(i, -1);
if(gTeam[i] == OZEL_KUVVET_B) SetPlayerColor(i, 0x20911EFF);
if(gTeam[i] == TURK_H_KUVVETLERI) SetPlayerColor(i, 0xFFFF66FF);
if(gTeam[i] == TURK_D_KUVVETLERI) SetPlayerColor(i, 0xFFFF66FF);
if(soygunCount[i] > 1)
{
new sMekan = GetPVarInt(i, "TempSoygun"), randPara;
switch(oyuncuData[i][YetenekSoygun])
{
case 0: randPara = random(500 - 400) + 400; // 10 - 11k
case 1: randPara = random(700 - 500) + 500; // 14 - 15k
case 2: randPara = random(1250 - 570) + 570; // 21- 24k
case 3: randPara = random(1555 - 500) + 500; // 25 - max: 29k
case 4: randPara = random(1770 - 830) + 830; // 30 - 34k
case 5: randPara = random(1988 - 958) + 958; // 35 - 38k
case 6: randPara = random(2321 - 987) + 987; // 39 - 42k
case 7: randPara = random(2521 - 987) + 987; // 42 - 45k
case 8: randPara = random(2921 - 987) + 987; // 46 - 50k
case 9: randPara = random(3000 - 1445) + 1445; // 55 - 60k
case 10: randPara = random(3776 - 1425) + 1425; // 60 - 70k
}
soygunCount[i]--;
sBarGuncelle(i, SoygunIslem[sMekan][soygunIsmi]);
pParaver(i, randPara);
soygunParasi[i] += randPara;
}
if(soygunCount[i] == 1)
{
soygunCount[i] = 0;
new ID, bx[100+24+11+5], m = GetPVarInt(i, "TempSoygun");
PlayerTextDrawHide(i, SoyulanBar[i][0]);
PlayerTextDrawHide(i, SoyulanBar[i][1]);
PlayerTextDrawHide(i, SoyulanBar[i][2]);
PlayerTextDrawHide(i, SoyulanBar[i][3]);
PlayerTextDrawHide(i, SoyulanBar[i][4]);
PlayerTextDrawHide(i, SoyulanBar[i][5]);
PlayerTextDrawHide(i, SoyulanBar[i][6]);
PlayerTextDrawHide(i, SoyulanBar[i][7]);
PlayerTextDrawHide(i, SoyulanBar[i][8]);
format(bx, sizeof(bx), "=> Soygun: {FFFFFF}%s mekanından $%s dolar çaldın!", SoygunIslem[m][soygunIsmi], convertNumber(soygunParasi[i]));
SendClientMessage(i, 0x2FE2D9FF, bx);
format(bx, sizeof(bx), "~y~~h~[SOYGUN] ~w~~h~Oyuncu ~r~~h~%s(%d)~w~~h~, ~g~~h~%s ~w~~h~mekanindan ~p~~h~$%s ~w~~h~caldi!", getName(i), i, SoygunIslem[m][soygunIsmi], convertNumber(soygunParasi[i]));
textFlood++;
foreach(new x : Player) TextdrawYazi(x, bx);
if(textFlood == 3){ textFlood = 0; }
Skorver(i, SERVER_SOYGUN);
oyuncuData[i][soygunS]++;
oyuncuData[ID][_Puan] += 1;
//PlayerTextDrawHide(i, AltBarBilgi[i][0]);
format(bx, sizeof(bx), "%d", oyuncuData[i][soygunS]);
//PlayerTextDrawSetString(i, AltBarBilgi[i][0], bx);
//PlayerTextDrawShow(i, AltBarBilgi[i][0]);
if(oyuncuData[i][pVip] >= 1)
{
Skorver(i, 1);
oyuncuData[ID][_Puan] += 2;
if(oyuncuData[i][pAdmin] <= 0)
{
format(bx, sizeof(bx), "{FC575E}[VİP] {FFFFFF}Oyuncu {44BBFF}%s(%d){FFFFFF}, vip olduğundan dolayı her soygundan +1 skor ve +2 puan kazanıyor.", getName(i), i);
SendClientMessageToAll(-1, bx);
}
}
Soygun bu
Zoxy kodları attım ayarlarmısın rica etsem
function SoygunTimer()
{
foreach(new i : Player)
{
if(aranmaSeviyesii[i] <= 0)
{
if(gTeam[i] != POLIS ||
gTeam[i] != CEVIK_KUVVET ||
gTeam[i] != OZEL_HAREKAT_TIMI ||
gTeam[i] != SIVIL_POLIS ||
gTeam[i] != OZEL_KUVVET_B ||
gTeam[i] != TURK_H_KUVVETLERI ||
gTeam[i] != TURK_D_KUVVETLERI)
{
SetPlayerColor(i, -1);
}
}
if(aranmaSeviyesii[i] >= 1 && aranmaSeviyesii[i] <= 3) SetPlayerColor(i, 0xFEC606FF);
if(aranmaSeviyesii[i] >= 4 && aranmaSeviyesii[i] <= 35) SetPlayerColor(i, 0xE67E22FF);
if(aranmaSeviyesii[i] >= 36) SetPlayerColor(i, 0xC0392BFF);
if(gTeam[i] == POLIS) SetPlayerColor(i, POLIS_RENK);
if(gTeam[i] == CEVIK_KUVVET) SetPlayerColor(i, 0x44BBFFFF);
if(gTeam[i] == OZEL_HAREKAT_TIMI) SetPlayerColor(i, 0xD33257FF);
if(gTeam[i] == SIVIL_POLIS) SetPlayerColor(i, -1);
if(gTeam[i] == OZEL_KUVVET_B) SetPlayerColor(i, 0x20911EFF);
if(gTeam[i] == TURK_H_KUVVETLERI) SetPlayerColor(i, 0xFFFF66FF);
if(gTeam[i] == TURK_D_KUVVETLERI) SetPlayerColor(i, 0xFFFF66FF);
if(soygunCount[i] > 1)
{
new sMekan = GetPVarInt(i, "TempSoygun"), randPara;
switch(oyuncuData[i][YetenekSoygun])
{
case 0: randPara = random(500 - 400) + 400; // 10 - 11k
case 1: randPara = random(700 - 500) + 500; // 14 - 15k
case 2: randPara = random(1250 - 570) + 570; // 21- 24k
case 3: randPara = random(1555 - 500) + 500; // 25 - max: 29k
case 4: randPara = random(1770 - 830) + 830; // 30 - 34k
case 5: randPara = random(1988 - 958) + 958; // 35 - 38k
case 6: randPara = random(2321 - 987) + 987; // 39 - 42k
case 7: randPara = random(2521 - 987) + 987; // 42 - 45k
case 8: randPara = random(2921 - 987) + 987; // 46 - 50k
case 9: randPara = random(3000 - 1445) + 1445; // 55 - 60k
case 10: randPara = random(3776 - 1425) + 1425; // 60 - 70k
}
if(x2Etk == 1) randPara += 2*randPara; // önemli olan bu kısım
soygunCount[i]--;
sBarGuncelle(i, SoygunIslem[sMekan][soygunIsmi]);
pParaver(i, randPara);
soygunParasi[i] += randPara;
}
if(soygunCount[i] == 1)
{
soygunCount[i] = 0;
new ID, bx[100+24+11+5], m = GetPVarInt(i, "TempSoygun");
PlayerTextDrawHide(i, SoyulanBar[i][0]);
PlayerTextDrawHide(i, SoyulanBar[i][1]);
PlayerTextDrawHide(i, SoyulanBar[i][2]);
PlayerTextDrawHide(i, SoyulanBar[i][3]);
PlayerTextDrawHide(i, SoyulanBar[i][4]);
PlayerTextDrawHide(i, SoyulanBar[i][5]);
PlayerTextDrawHide(i, SoyulanBar[i][6]);
PlayerTextDrawHide(i, SoyulanBar[i][7]);
PlayerTextDrawHide(i, SoyulanBar[i][8]);
format(bx, sizeof(bx), "=> Soygun: {FFFFFF}%s mekanından $%s dolar çaldın!", SoygunIslem[m][soygunIsmi], convertNumber(soygunParasi[i]));
SendClientMessage(i, 0x2FE2D9FF, bx);
format(bx, sizeof(bx), "~y~~h~[SOYGUN] ~w~~h~Oyuncu ~r~~h~%s(%d)~w~~h~, ~g~~h~%s ~w~~h~mekanindan ~p~~h~$%s ~w~~h~caldi!", getName(i), i, SoygunIslem[m][soygunIsmi], convertNumber(soygunParasi[i]));
textFlood++;
foreach(new x : Player) TextdrawYazi(x, bx);
if(textFlood == 3){ textFlood = 0; }
Skorver(i, SERVER_SOYGUN);
if(x2Etk == 1) Skorver(i, SERVER_SOYGUN*2); // önemli olan bu kısım
oyuncuData[i][soygunS]++;
oyuncuData[ID][_Puan] += 1;
//PlayerTextDrawHide(i, AltBarBilgi[i][0]);
format(bx, sizeof(bx), "%d", oyuncuData[i][soygunS]);
//PlayerTextDrawSetString(i, AltBarBilgi[i][0], bx);
//PlayerTextDrawShow(i, AltBarBilgi[i][0]);
if(oyuncuData[i][pVip] >= 1)
{
Skorver(i, 1);
oyuncuData[ID][_Puan] += 2;
if(oyuncuData[i][pAdmin] <= 0)
{
format(bx, sizeof(bx), "{FC575E}[VİP] {FFFFFF}Oyuncu {44BBFF}%s(%d){FFFFFF}, vip olduğundan dolayı her soygundan +1 skor ve +2 puan kazanıyor.", getName(i), i);
SendClientMessageToAll(-1, bx);
}
}
Zoxy'nin verdiği kodları moduna ekle, yukarıda "// önemli olan bu kısım" dediğim yerleri de kendine göre düzenle.
teşekkürler konu kilit