[Pomoc] Oko Cop Sistema

Započeo ωт:яρ | αχєℓ иєℓѕσи, Mart 25, 2011, 15:48:31 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Raven's Roleplay
Detaljan opis problema: Na Raven's Roleplayu je cop sistem skroz razlicit od svih ostalih koje sam koristio modova, nema u garazi /arrest nego ga moras da RPanjem odvedes ispred celija i onda ga /arrest , naravno niko nije lud da RPa svoju kaznu i zatvor,i onda imamo problema kada nema admina, tako ako ima neko prijedlog jer stvarno mi treba pomoc oko toga da mi da neki cop sistem koji radi i koji nije bugovan ko ovaj...i da ovaj izbrisem sa GM-a..., Hvala u svakom slucaju...
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno): n/a
Poslednja Izmena: Mart 25, 2011, 15:48:44 POSLE PODNE od Axel Nelson
//

lol pa samo stavis da se komanda /arrest moze koristit i u garazi  ???

Citat: [ЯolePlay »Factory«]   K4Я!K3 poslato Mart 25, 2011, 16:09:52 POSLE PODNE
lol pa samo stavis da se komanda /arrest moze koristit i u garazi  ???

to je i moj problem...sta se i na drugim GM more u garazi koristit /arrest
Black Fire RP---188.40.66.75:7785

www.black-fire-samp.tk

djele se game masteri nakon 1 petog....i lideri se djele od danas kojeg god ocete :DD

Dojdite na nas server i zabavite se

Citat: sanjin poslato Mart 25, 2011, 16:18:26 POSLE PODNE
Citat: [ЯolePlay »Factory«]   K4Я!K3 poslato Mart 25, 2011, 16:09:52 POSLE PODNE
lol pa samo stavis da se komanda /arrest moze koristit i u garazi  ???

to je i moj problem...sta se i na drugim GM more u garazi koristit /arrest
Pa lijepo ti kaze Promijeni kordinate da moze da se /arest u garazi i radi  ???

Citat: $--L84S--$ poslato Mart 25, 2011, 16:30:19 POSLE PODNE
Citat: sanjin poslato Mart 25, 2011, 16:18:26 POSLE PODNE
Citat: [ЯolePlay »Factory«]   K4Я!K3 poslato Mart 25, 2011, 16:09:52 POSLE PODNE
lol pa samo stavis da se komanda /arrest moze koristit i u garazi  ???

to je i moj problem...sta se i na drugim GM more u garazi koristit /arrest
Pa lijepo ti kaze Promijeni kordinate da moze da se /arest u garazi i radi  ???


a sta bim u skripti trabo trazit...pod sat
Black Fire RP---188.40.66.75:7785

www.black-fire-samp.tk

djele se game masteri nakon 1 petog....i lideri se djele od danas kojeg god ocete :DD

Dojdite na nas server i zabavite se

Pa kucaj CTRL F "/arrest"
i naces IsPlayerRange tak nesto tu promjenis i stavis svoje koordinate.

Citat: elDar. poslato Mart 25, 2011, 17:07:10 POSLE PODNE
Pa kucaj CTRL F "/arrest"
i naces IsPlayerRange tak nesto tu promjenis i stavis svoje koordinate.

nasao sam..hvala
Black Fire RP---188.40.66.75:7785

www.black-fire-samp.tk

djele se game masteri nakon 1 petog....i lideri se djele od danas kojeg god ocete :DD

Dojdite na nas server i zabavite se

Udi u pawno i nadi /arrest ili kako ti se vec zove komanda
i imas nesto ovako
           if(PlayerToPoint(6.0, playerid, x,y,z)
mjesto ovog x y z stavljas svoje kordinate

Citat: $--L84S--$ poslato Mart 25, 2011, 17:11:48 POSLE PODNE
Udi u pawno i nadi /arrest ili kako ti se vec zove komanda
i imas nesto ovako
           if(PlayerToPoint(6.0, playerid, x,y,z)
mjesto ovog x y z stavljas svoje kordinate



nece javlja mi error

ovakva je skripta od tog djela  : 


   if(strcmp(cmd, "/arrest", true) == 0)
   {
       if(IsPlayerConnected(playerid))
         {
         if(IsACop(playerid) || IsAFreecop(playerid))
         {
            if(PlayerInfo[playerid][pDuty] == 0)
            {
                SendClientMessage(playerid, COLOR_GREY, "** Nisi na duznosti!");
                return 1;
            }
            if(PlayerInfo[playerid][pDBanned] == 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "** Banan si sa duznosti!");
                return 1;
            }

            if(IsPlayerInRangeOfPoint(playerid, 6, 1566.25,-1694.40,5.89 0))
            {//New arrest system SAPD

               tmp = strtok(cmdtext, idx);
               if(!strlen(tmp))
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /arrest [price] [time (minutes)] [bail (0=no 1=yes)] [bailprice]");
                  return 1;
               }
               moneys = strval(tmp);
               if(moneys < 1 || moneys > 20000) { SendClientMessage(playerid, COLOR_GREY, "   Jail Price can't be below $1 or above $20000!"); return 1; }
               tmp = strtok(cmdtext, idx);
               if(!strlen(tmp))
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /arrest [price] [time (minutes)] [bail (0=no 1=yes)] [bailprice]");
                  return 1;
               }
               new time = strval(tmp);
               if(time < 1 || time > 5) { SendClientMessage(playerid, COLOR_GREY, "   Jail Time Minutes can't be below 1 or above 5 (Take the person to prison then)!"); return 1; }
               tmp = strtok(cmdtext, idx);
               if(!strlen(tmp))
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /arrest [price] [time (minutes)] [bail (0=no 1=yes)] [bailprice]");
                  return 1;
               }
               new bail = strval(tmp);
               if(bail < 0 || bail > 1) { SendClientMessage(playerid, COLOR_GREY, "   Jail Bailing can't be below 0 or above 1!"); return 1; }
               tmp = strtok(cmdtext, idx);
               if(!strlen(tmp))
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /arrest [price] [time (minutes)] [bail (0=no 1=yes)] [bailprice]");
                  return 1;
               }
               new bailprice = strval(tmp);
               if(bailprice < 0 || bailprice > 2000000) { SendClientMessage(playerid, COLOR_GREY, "** Jail Bailing can't be below $0 or above $2000000!"); return 1; }
               new suspect = GetClosestPlayer(playerid);
               if(IsPlayerConnected(suspect))
               {
                  if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
                  {
                     GetPlayerName(suspect, giveplayer, sizeof(giveplayer));

                     if(WantedLevel[suspect] < 1)
                     {
                         SendClientMessage(playerid, COLOR_GREY, "** Player must be at least Wanted Level 1!");
                         return 1;
                     }
                     format(string, sizeof(string), "* Uhapsio si %s!", giveplayer);
                     SendClientMessage(playerid, COLOR_WHITE, string);
                     SafeGivePlayerMoney(suspect, -moneys);
                     format(string, sizeof(string), "Uhapsen od %s ~n~    za $%d", sendername, moneys);
                     GameTextForPlayer(suspect, string, 5000, 5);
                     SafeResetPlayerWeapons(suspect);
                     if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1)
                     { 


ovo su greške :
C:\Users\Administrator\Desktop\New Folder (2)\BalkanEvolution.pwn(3971) : warning 217: loose indentation
C:\Users\Administrator\Desktop\New Folder (2)\BalkanEvolution.pwn(20976) : warning 217: loose indentation
C:\Users\Administrator\Desktop\New Folder (2)\BalkanEvolution.pwn(21885) : warning 217: loose indentation
C:\Users\Administrator\Desktop\New Folder (2)\BalkanEvolution.pwn(67184) : warning 217: loose indentation
C:\Users\Administrator\Desktop\New Folder (2)\BalkanEvolution.pwn(71472) : error 001: expected token: ",", but found "-integer value-"
C:\Users\Administrator\Desktop\New Folder (2)\BalkanEvolution.pwn(71472) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\New Folder (2)\BalkanEvolution.pwn(71472) : error 001: expected token: ";", but found ")"
C:\Users\Administrator\Desktop\New Folder (2)\BalkanEvolution.pwn(71472) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\New Folder (2)\BalkanEvolution.pwn(71472) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.




ono podebljano ja maoja kordinata
pomoccc
Black Fire RP---188.40.66.75:7785

www.black-fire-samp.tk

djele se game masteri nakon 1 petog....i lideri se djele od danas kojeg god ocete :DD

Dojdite na nas server i zabavite se

hehe hvala momci na tome, ali opet kako da napravim kada ga tazer da bude tazovan a ne kada je samo wanted itd... :S?
//

Citat: sanjin poslato Mart 25, 2011, 18:07:58 POSLE PODNE
Citat: $--L84S--$ poslato Mart 25, 2011, 17:11:48 POSLE PODNE
Udi u pawno i nadi /arrest ili kako ti se vec zove komanda
i imas nesto ovako
           if(PlayerToPoint(6.0, playerid, x,y,z)
mjesto ovog x y z stavljas svoje kordinate



nece javlja mi error

ovakva je skripta od tog djela  : 


   if(strcmp(cmd, "/arrest", true) == 0)
   {
       if(IsPlayerConnected(playerid))
         {
         if(IsACop(playerid) || IsAFreecop(playerid))
         {
            if(PlayerInfo[playerid][pDuty] == 0)
            {
                SendClientMessage(playerid, COLOR_GREY, "** Nisi na duznosti!");
                return 1;
            }
            if(PlayerInfo[playerid][pDBanned] == 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "** Banan si sa duznosti!");
                return 1;
            }

            if(IsPlayerInRangeOfPoint(playerid, 6, 1566.25,-1694.40,5.89 0))
            {//New arrest system SAPD

               tmp = strtok(cmdtext, idx);
               if(!strlen(tmp))
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /arrest [price] [time (minutes)] [bail (0=no 1=yes)] [bailprice]");
                  return 1;
               }
               moneys = strval(tmp);
               if(moneys < 1 || moneys > 20000) { SendClientMessage(playerid, COLOR_GREY, "   Jail Price can't be below $1 or above $20000!"); return 1; }
               tmp = strtok(cmdtext, idx);
               if(!strlen(tmp))
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /arrest [price] [time (minutes)] [bail (0=no 1=yes)] [bailprice]");
                  return 1;
               }
               new time = strval(tmp);
               if(time < 1 || time > 5) { SendClientMessage(playerid, COLOR_GREY, "   Jail Time Minutes can't be below 1 or above 5 (Take the person to prison then)!"); return 1; }
               tmp = strtok(cmdtext, idx);
               if(!strlen(tmp))
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /arrest [price] [time (minutes)] [bail (0=no 1=yes)] [bailprice]");
                  return 1;
               }
               new bail = strval(tmp);
               if(bail < 0 || bail > 1) { SendClientMessage(playerid, COLOR_GREY, "   Jail Bailing can't be below 0 or above 1!"); return 1; }
               tmp = strtok(cmdtext, idx);
               if(!strlen(tmp))
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /arrest [price] [time (minutes)] [bail (0=no 1=yes)] [bailprice]");
                  return 1;
               }
               new bailprice = strval(tmp);
               if(bailprice < 0 || bailprice > 2000000) { SendClientMessage(playerid, COLOR_GREY, "** Jail Bailing can't be below $0 or above $2000000!"); return 1; }
               new suspect = GetClosestPlayer(playerid);
               if(IsPlayerConnected(suspect))
               {
                  if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
                  {
                     GetPlayerName(suspect, giveplayer, sizeof(giveplayer));

                     if(WantedLevel[suspect] < 1)
                     {
                         SendClientMessage(playerid, COLOR_GREY, "** Player must be at least Wanted Level 1!");
                         return 1;
                     }
                     format(string, sizeof(string), "* Uhapsio si %s!", giveplayer);
                     SendClientMessage(playerid, COLOR_WHITE, string);
                     SafeGivePlayerMoney(suspect, -moneys);
                     format(string, sizeof(string), "Uhapsen od %s ~n~    za $%d", sendername, moneys);
                     GameTextForPlayer(suspect, string, 5000, 5);
                     SafeResetPlayerWeapons(suspect);
                     if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1)
                     { 


ovo su greške :
C:\Users\Administrator\Desktop\New Folder (2)\BalkanEvolution.pwn(3971) : warning 217: loose indentation
C:\Users\Administrator\Desktop\New Folder (2)\BalkanEvolution.pwn(20976) : warning 217: loose indentation
C:\Users\Administrator\Desktop\New Folder (2)\BalkanEvolution.pwn(21885) : warning 217: loose indentation
C:\Users\Administrator\Desktop\New Folder (2)\BalkanEvolution.pwn(67184) : warning 217: loose indentation
C:\Users\Administrator\Desktop\New Folder (2)\BalkanEvolution.pwn(71472) : error 001: expected token: ",", but found "-integer value-"
C:\Users\Administrator\Desktop\New Folder (2)\BalkanEvolution.pwn(71472) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\New Folder (2)\BalkanEvolution.pwn(71472) : error 001: expected token: ";", but found ")"
C:\Users\Administrator\Desktop\New Folder (2)\BalkanEvolution.pwn(71472) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\New Folder (2)\BalkanEvolution.pwn(71472) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.




ono podebljano ja maoja kordinata
pomoccc




uspio sam napravit...trebao sam maknut samo onu 0
a kako da napravim ikonu na tom mjestu za /arrets
Black Fire RP---188.40.66.75:7785

www.black-fire-samp.tk

djele se game masteri nakon 1 petog....i lideri se djele od danas kojeg god ocete :DD

Dojdite na nas server i zabavite se

Jarane sta si mi zaspamo temu jbt otvori svoju pa spamaj... vidis da cekam odgovor kako da napravim da moze svakoga /tazer a ne samo onoga sto je wanted , pa da ga onda ubacis u auto sa /drag a da neizadje iz auta... ako moze help plz :)
//

Evo izvoli to sto si traziooo...xD xD

//------------------------------------------------------------------------------------------------------------------------------------------------------------------
if(strcmp(cmd, "/arrest", true) == 0)
   {
       if(IsPlayerConnected(playerid))
         {
         if(IsACop(playerid) || IsAFreecop(playerid))
         {
            if(PlayerInfo[playerid][pDuty] == 0)
            {
                SendClientMessage(playerid, COLOR_GREY, "** Nisi na duznosti!");
                return 1;
            }
            if(PlayerInfo[playerid][pDBanned] == 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "** Banan si sa duznosti!");
                return 1;
            }

            if(IsPlayerInRangeOfPoint(playerid, 6, 255.4480,85.8236,1002.4453))
            {//New arrest system SAPD

               tmp = strtok(cmdtext, idx);
               if(!strlen(tmp))
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /arrest [price] [time (minutes)] [bail (0=no 1=yes)] [bailprice]");
                  return 1;
               }
               moneys = strval(tmp);
               if(moneys < 1 || moneys > 20000) { SendClientMessage(playerid, COLOR_GREY, "   Jail Price can't be below $1 or above $20000!"); return 1; }
               tmp = strtok(cmdtext, idx);
               if(!strlen(tmp))
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /arrest [price] [time (minutes)] [bail (0=no 1=yes)] [bailprice]");
                  return 1;
               }
               new time = strval(tmp);
               if(time < 1 || time > 5) { SendClientMessage(playerid, COLOR_GREY, "   Jail Time Minutes can't be below 1 or above 5 (Take the person to prison then)!"); return 1; }
               tmp = strtok(cmdtext, idx);
               if(!strlen(tmp))
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /arrest [price] [time (minutes)] [bail (0=no 1=yes)] [bailprice]");
                  return 1;
               }
               new bail = strval(tmp);
               if(bail < 0 || bail > 1) { SendClientMessage(playerid, COLOR_GREY, "   Jail Bailing can't be below 0 or above 1!"); return 1; }
               tmp = strtok(cmdtext, idx);
               if(!strlen(tmp))
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /arrest [price] [time (minutes)] [bail (0=no 1=yes)] [bailprice]");
                  return 1;
               }
               new bailprice = strval(tmp);
               if(bailprice < 0 || bailprice > 2000000) { SendClientMessage(playerid, COLOR_GREY, "** Jail Bailing can't be below $0 or above $2000000!"); return 1; }
               new suspect = GetClosestPlayer(playerid);
               if(IsPlayerConnected(suspect))
               {
                  if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
                  {
                     GetPlayerName(suspect, giveplayer, sizeof(giveplayer));

                     if(WantedLevel[suspect] < 1)
                     {
                         SendClientMessage(playerid, COLOR_GREY, "** Player must be at least Wanted Level 1!");
                         return 1;
                     }
                     format(string, sizeof(string), "* Uhapsio si %s!", giveplayer);
                     SendClientMessage(playerid, COLOR_WHITE, string);
                     SafeGivePlayerMoney(suspect, -moneys);
                     format(string, sizeof(string), "Uhapsen od %s ~n~    za $%d", sendername, moneys);
                     GameTextForPlayer(suspect, string, 5000, 5);
                     SafeResetPlayerWeapons(suspect);
                     if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1)
                     {
                         new currank[64];
                         if(PlayerInfo[playerid][pRank] == 1) { currank = "Cadet"; }
                        else if(PlayerInfo[playerid][pRank] == 2) { currank = "Officer"; }
                        else if(PlayerInfo[playerid][pRank] == 3) { currank = "Senior Officer"; }
                        else if(PlayerInfo[playerid][pRank] == 4) { currank = "Sergeant"; }
                        else if(PlayerInfo[playerid][pRank] == 5) { currank = "Lieutenant"; }
                          else if(PlayerInfo[playerid][pRank] == 6) { currank = "Captain"; }
                          else if(PlayerInfo[playerid][pRank] == 7) { currank = "Deputy Chief"; }
                          else if(PlayerInfo[playerid][pRank] == 8) { currank = "Chief"; }
                        else { currank = "Cadet"; }
                        format(string, sizeof(string), "[Police] %s %s has just arrested %s", currank ,sendername, giveplayer);
                        OOCNews(COLOR_BLUE, string);
                     }
                     else if(PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pLeader]==2)
                     {
                        format(string, sizeof(string), "[Police] Agent %s has just arrested %s", sendername, giveplayer);
                        OOCNews(COLOR_BLUE, string);
                     }
                     else if(PlayerInfo[playerid][pMember]==3||PlayerInfo[playerid][pLeader]==3)
                     {
                        format(string, sizeof(string), "[Police] Soldier %s has just arrested %s", sendername, giveplayer);
                        OOCNews(COLOR_BLUE, string);
                     }
                     else if(IsAFreecop(playerid))
                     {
                         format(string, sizeof(string), "[Police] Voluntary %s has just arrested %s", sendername, giveplayer);
                        OOCNews(COLOR_BLUE, string);
                     }
                     SafeSetPlayerInterior(suspect, 6);
                     SafeSetPlayerPos(suspect,264.6288,77.5742,1001.0391);
                     PlayerInfo[suspect][pJailTime] = time * 60;
                     if(bail == 1)
                     {
                        JailPrice[suspect] = bailprice;
                        format(string, sizeof(string), "You are jailed for %d seconds.   Bail: $%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                        SendClientMessage(suspect, COLOR_WHITE, string);
                     }
                     else
                     {
                         JailPrice[suspect] = 0;
                        format(string, sizeof(string), "You are jailed for %d seconds.   Bail: Unable", PlayerInfo[suspect][pJailTime]);
                        SendClientMessage(suspect, COLOR_WHITE, string);
                     }
                     PlayerInfo[suspect][pJailed] = 1;
                          PlayerInfo[suspect][pArrested] += 1;
                     SetPlayerFree(suspect,playerid, "Got Arrested");
                     TextDrawShowForPlayer(suspect, Textdraw1[suspect]);
                     WantedPoints[suspect] = 0;
                     WantedLevel[suspect] = 0;
                     WantLawyer[suspect] = 1;
                     PlayerCuffed[suspect] = 0;
                     GaveUp[suspect] = 0;
                     new y, m, d;
                     new h,mi,s;
                     getdate(y,m,d);
                     gettime(h,mi,s);
                     format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Arrested %s for %s Seconds. Bail: $%d, Price: $%d",d,m,y,h,mi,s,sendername,giveplayer, PlayerInfo[suspect][pJailTime],JailPrice[suspect],moneys);
                     JailLog(string);
                  }//distance
               }//not connected
            }
         }
         else
         {
             SendClientMessage(playerid, COLOR_GREY, "** You are not an FBI!");
             return 1;
         }
      }//not connected
      return 1;
   }
//------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------
Zahvaljujem Se Snich_Wolf-u Zato sto Mi je mnogo Pomogo oko Skriptanja...Snich Hvala brt <3 xD

Citat: [Bp]jovan poslato Mart 25, 2011, 19:55:43 POSLE PODNE
Evo izvoli to sto si traziooo...xD xD

//------------------------------------------------------------------------------------------------------------------------------------------------------------------
if(strcmp(cmd, "/arrest", true) == 0)
   {
       if(IsPlayerConnected(playerid))
         {
         if(IsACop(playerid) || IsAFreecop(playerid))
         {
            if(PlayerInfo[playerid][pDuty] == 0)
            {
                SendClientMessage(playerid, COLOR_GREY, "** Nisi na duznosti!");
                return 1;
            }
            if(PlayerInfo[playerid][pDBanned] == 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "** Banan si sa duznosti!");
                return 1;
            }

            if(IsPlayerInRangeOfPoint(playerid, 6, 255.4480,85.8236,1002.4453))
            {//New arrest system SAPD

               tmp = strtok(cmdtext, idx);
               if(!strlen(tmp))
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /arrest [price] [time (minutes)] [bail (0=no 1=yes)] [bailprice]");
                  return 1;
               }
               moneys = strval(tmp);
               if(moneys < 1 || moneys > 20000) { SendClientMessage(playerid, COLOR_GREY, "   Jail Price can't be below $1 or above $20000!"); return 1; }
               tmp = strtok(cmdtext, idx);
               if(!strlen(tmp))
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /arrest [price] [time (minutes)] [bail (0=no 1=yes)] [bailprice]");
                  return 1;
               }
               new time = strval(tmp);
               if(time < 1 || time > 5) { SendClientMessage(playerid, COLOR_GREY, "   Jail Time Minutes can't be below 1 or above 5 (Take the person to prison then)!"); return 1; }
               tmp = strtok(cmdtext, idx);
               if(!strlen(tmp))
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /arrest [price] [time (minutes)] [bail (0=no 1=yes)] [bailprice]");
                  return 1;
               }
               new bail = strval(tmp);
               if(bail < 0 || bail > 1) { SendClientMessage(playerid, COLOR_GREY, "   Jail Bailing can't be below 0 or above 1!"); return 1; }
               tmp = strtok(cmdtext, idx);
               if(!strlen(tmp))
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /arrest [price] [time (minutes)] [bail (0=no 1=yes)] [bailprice]");
                  return 1;
               }
               new bailprice = strval(tmp);
               if(bailprice < 0 || bailprice > 2000000) { SendClientMessage(playerid, COLOR_GREY, "** Jail Bailing can't be below $0 or above $2000000!"); return 1; }
               new suspect = GetClosestPlayer(playerid);
               if(IsPlayerConnected(suspect))
               {
                  if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
                  {
                     GetPlayerName(suspect, giveplayer, sizeof(giveplayer));

                     if(WantedLevel[suspect] < 1)
                     {
                         SendClientMessage(playerid, COLOR_GREY, "** Player must be at least Wanted Level 1!");
                         return 1;
                     }
                     format(string, sizeof(string), "* Uhapsio si %s!", giveplayer);
                     SendClientMessage(playerid, COLOR_WHITE, string);
                     SafeGivePlayerMoney(suspect, -moneys);
                     format(string, sizeof(string), "Uhapsen od %s ~n~    za $%d", sendername, moneys);
                     GameTextForPlayer(suspect, string, 5000, 5);
                     SafeResetPlayerWeapons(suspect);
                     if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1)
                     {
                         new currank[64];
                         if(PlayerInfo[playerid][pRank] == 1) { currank = "Cadet"; }
                        else if(PlayerInfo[playerid][pRank] == 2) { currank = "Officer"; }
                        else if(PlayerInfo[playerid][pRank] == 3) { currank = "Senior Officer"; }
                        else if(PlayerInfo[playerid][pRank] == 4) { currank = "Sergeant"; }
                        else if(PlayerInfo[playerid][pRank] == 5) { currank = "Lieutenant"; }
                          else if(PlayerInfo[playerid][pRank] == 6) { currank = "Captain"; }
                          else if(PlayerInfo[playerid][pRank] == 7) { currank = "Deputy Chief"; }
                          else if(PlayerInfo[playerid][pRank] == 8) { currank = "Chief"; }
                        else { currank = "Cadet"; }
                        format(string, sizeof(string), "[Police] %s %s has just arrested %s", currank ,sendername, giveplayer);
                        OOCNews(COLOR_BLUE, string);
                     }
                     else if(PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pLeader]==2)
                     {
                        format(string, sizeof(string), "[Police] Agent %s has just arrested %s", sendername, giveplayer);
                        OOCNews(COLOR_BLUE, string);
                     }
                     else if(PlayerInfo[playerid][pMember]==3||PlayerInfo[playerid][pLeader]==3)
                     {
                        format(string, sizeof(string), "[Police] Soldier %s has just arrested %s", sendername, giveplayer);
                        OOCNews(COLOR_BLUE, string);
                     }
                     else if(IsAFreecop(playerid))
                     {
                         format(string, sizeof(string), "[Police] Voluntary %s has just arrested %s", sendername, giveplayer);
                        OOCNews(COLOR_BLUE, string);
                     }
                     SafeSetPlayerInterior(suspect, 6);
                     SafeSetPlayerPos(suspect,264.6288,77.5742,1001.0391);
                     PlayerInfo[suspect][pJailTime] = time * 60;
                     if(bail == 1)
                     {
                        JailPrice[suspect] = bailprice;
                        format(string, sizeof(string), "You are jailed for %d seconds.   Bail: $%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                        SendClientMessage(suspect, COLOR_WHITE, string);
                     }
                     else
                     {
                         JailPrice[suspect] = 0;
                        format(string, sizeof(string), "You are jailed for %d seconds.   Bail: Unable", PlayerInfo[suspect][pJailTime]);
                        SendClientMessage(suspect, COLOR_WHITE, string);
                     }
                     PlayerInfo[suspect][pJailed] = 1;
                          PlayerInfo[suspect][pArrested] += 1;
                     SetPlayerFree(suspect,playerid, "Got Arrested");
                     TextDrawShowForPlayer(suspect, Textdraw1[suspect]);
                     WantedPoints[suspect] = 0;
                     WantedLevel[suspect] = 0;
                     WantLawyer[suspect] = 1;
                     PlayerCuffed[suspect] = 0;
                     GaveUp[suspect] = 0;
                     new y, m, d;
                     new h,mi,s;
                     getdate(y,m,d);
                     gettime(h,mi,s);
                     format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Arrested %s for %s Seconds. Bail: $%d, Price: $%d",d,m,y,h,mi,s,sendername,giveplayer, PlayerInfo[suspect][pJailTime],JailPrice[suspect],moneys);
                     JailLog(string);
                  }//distance
               }//not connected
            }
         }
         else
         {
             SendClientMessage(playerid, COLOR_GREY, "** You are not an FBI!");
             return 1;
         }
      }//not connected
      return 1;
   }
//------------------------------------------------------------------------------------------------------------------------------------------------------------------




to za mene ili za njega
Black Fire RP---188.40.66.75:7785

www.black-fire-samp.tk

djele se game masteri nakon 1 petog....i lideri se djele od danas kojeg god ocete :DD

Dojdite na nas server i zabavite se

Admine izbrisi ovo.
Poslednja Izmena: Mart 26, 2011, 14:18:13 POSLE PODNE od Axel Nelson
//