[Pomoc]Kazna

Započeo caupton
26. Maj 2011.
1,015
pregleda
8
postova
[Bp]D.N
5
Kingpin
26. Maj 2011.
Skripta koju koristim:FactionGame
Detaljan opis problema:Moze li mi neko npomoci kako da napravim komandu /kazniclana i da ga lider izbaci i kada ga izbaci da se igracu oduzme 10k sa racuna banke,ili para kod sebe ako ima..Molim vas
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
PPS.Zahvalan sam svako me ko mi pomogne

PS.HVALA U NAPRRED
Mr.Lowrey
5
Godfather
26. Maj 2011.
ti trebas nesto, lockajte ovo, procitaj ubuduce pravila, i od kud da ja znam iz tvog moda kako ide varijable za ako je igrac u bandi/orgi?
[Bp]D.N
5
Kingpin
26. Maj 2011.
Quote from May 26, 2011, 5:53 pm:
ti trebas nesto, lockajte ovo, procitaj ubuduce pravila, i od kud da ja znam iz tvog moda kako ide varijable za ako je igrac u bandi/orgi?


Jel ti moras da budes u svakoj corbi,mirodjija,pitao sam ko moze,sada odlizi od teme,ja sam rekao ko moze..,a ne neko da mi pametuje tu
Mr.Lowrey
5
Godfather
26. Maj 2011.
ko moze da ti napravi? Pa to je isti ku*ac kao da trazis nesto, nemoj mudrovat nego izvoli pitaj u Trebam Nešto - tema
[Bp]D.N
5
Kingpin
26. Maj 2011.
Quote from May 26, 2011, 5:59 pm:
ko moze da ti napravi? Pa to je isti ku*ac kao da trazis nesto, nemoj mudrovat nego izvoli pitaj u Trebam Nešto - tema

Necu da se svadjam,dzabe skupljacs postove  😐
antonio005
4
Made Man
26. Maj 2011.
evo ti brate  😉 evo ti cela komanda 😉
if(strcmp(cmd, "/paricna", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /paricna [ID Igraca/Dio Imena] ");
return 1;
}
new playa;
new money;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
if(money < 1 || money > 50000) { SendClientMessage(playerid, COLOR_GREY, "   Cijena kazne ne moze biti ispod 1 ni preko 50000 !"); return 1; }
new result;
new length = strlen(cmdtext);
new offset = idx;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if (PlayerInfo >= 2)
{
   if(IsPlayerConnected(playa))
   {
       if(playa != INVALID_PLAYER_ID)
       {
SafeGivePlayerMoney(playa, -money);
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "[Dream Team] %s je kaznio %s Novac: $%d Razlog: %s", sendername,giveplayer,money,(result));
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   niste ovlasteni da koristite tu komandu!");
}
}
return 1;
}
Deleted User
Obrisan korisnik
26. Maj 2011.
Gigov.so wrote on May 26, 2011, 6:38 pm:
evo ti brate  😉 evo ti cela komanda 😉
if(strcmp(cmd, "/paricna", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /paricna [ID Igraca/Dio Imena] ");
return 1;
}
new playa;
new money;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
if(money < 1 || money > 50000) { SendClientMessage(playerid, COLOR_GREY, "   Cijena kazne ne moze biti ispod 1 ni preko 50000 !"); return 1; }
new result;
new length = strlen(cmdtext);
new offset = idx;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if (PlayerInfo >= 2)
{
   if(IsPlayerConnected(playa))
   {
       if(playa != INVALID_PLAYER_ID)
       {
SafeGivePlayerMoney(playa, -money);
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "[Dream Team] %s je kaznio %s Novac: $%d Razlog: %s", sendername,giveplayer,money,(result));
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   niste ovlasteni da koristite tu komandu!");
}
}
return 1;
}

Procitaj sta je napisao. Da lider kazni, a ne admin i da ga izbaci iz org eo izvoli:
if(strcmp(cmd, "/kazniigraca", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /kazniigraca [ID Igraca/Dio Imena] ");
return 1;
}
new playa;
new money;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
if(money < 1 || money > 50000) { SendClientMessage(playerid, COLOR_GREY, "  Cijena kazne ne moze biti ispod 1 ni preko 50000 !"); return 1; }
new result;
new length = strlen(cmdtext);
new offset = idx;
new para1;
para1 = ReturnUser(tmp);
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS; if(PlayerInfo==5||PlayerInfo==6||PlayerInfo==8||PlayerInfo==12||PlayerInfo==15||PlayerInfo==16||PlayerInfo==5||PlayerInfo==6||PlayerInfo==8||PlayerInfo==12||PlayerInfo==15||PlayerInfo==16)
{
    if(IsPlayerConnected(playa))
    {
        if(playa != INVALID_PLAYER_ID)
        {
SafeGivePlayerMoney(playa, -money);
                      gTeam = 3;
PlayerInfo = 3;
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo = 0;
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "[Dream Team] %s je kaznio %s Novac: $%d Razlog: %s", sendername,giveplayer,money,(result));
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "  niste ovlasteni da koristite tu komandu!");
}
}
return 1;
}

Eto tako nesto bi trebalo to ti je za ilegalne organizacije samo za njih sam samo stavio tu komandu.
antonio005
4
Made Man
26. Maj 2011.
ah nisam razbrao ok 🙂 mozda mu i to treba xd

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha