[pomoc] prison

Započeo Aldin Begovic, Oktobar 23, 2011, 21:30:00 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim:GTA RP
Detaljan opis problema:Kada ubacim nekog u areu ili zatvor i kada on uradil relog bude na slobodi ne vrati se u zatvor a trebao bi jer kazna nije zavrsena
Dio skripte:   COMMAND:prison(playerid, params[])
   {
      new id, razlog[200], vrijemes, string[200];
      new sendername[MAX_PLAYER_NAME];
      new giveplayer[MAX_PLAYER_NAME];
      if (sscanf(params, "uds[128]", id, vrijemes, razlog))
      {
         if(PlayerInfo[playerid][pAdmin] >= 1)
         {
            SCM(playerid, COLOR_GRAD2, "{168BFF}INFO: {959561} /prison {959561}[ID/DioImena] [Vrijeme] [Razlog]");
            return 1;
         }
      }
      else
      {
         if(PlayerInfo[playerid][pAdmin] >= 1)
         {
            if(IsPlayerConnected(id))
               {
                  GetPlayerName(id, giveplayer, sizeof(giveplayer));
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  WantedPoints[id] = 0;
                  WantedLevel[id] = 0;
                  PlayerInfo[id][pJailed] = 2;
                  PlayerInfo[id][pJailTime] = vrijemes*60;
                  new rand = random(sizeof(RandomAreaSpawns));
                  SetPlayerPos(id, RandomAreaSpawns[rand][0], RandomAreaSpawns[rand][1], RandomAreaSpawns[rand][2]);
                  pritvorvrijeme[playerid] = TextDrawCreate(5.000000, 319.000000, "~r~Pritvor:~b~ 5000 sec");
   TextDrawBackgroundColor(pritvorvrijeme[playerid], 255);
   TextDrawFont(pritvorvrijeme[playerid], 1);
   TextDrawLetterSize(pritvorvrijeme[playerid], 0.429999, 2.099999);
   TextDrawColor(pritvorvrijeme[playerid], -1);
   TextDrawSetOutline(pritvorvrijeme[playerid], 1);
   TextDrawSetProportional(pritvorvrijeme[playerid], 1);
   TextDrawUseBox(pritvorvrijeme[playerid], 1);
   TextDrawBoxColor(pritvorvrijeme[playerid], 62);
   TextDrawTextSize(pritvorvrijeme[playerid], 143.000000, -21.000000);
                  SetPlayerInterior(id, 0);
                  format(string,sizeof(string), "{FF0000}Zatvoren si u KP dom! | Vrijeme: {FFFF80}%d minuta| {FF0000}Admin:{FFFF80} %s | {FF0000}Razlog: {FFFF80}%s", vrijemes, sendername, razlog);
                  TextDrawShowForPlayer(id, pritvorvrijeme[playerid]);
                  SCM(id, 0xFF4141FF, string);
                  format(string,sizeof(string), "Zatvorio si {FF9797}%s {FF4141}u KP dom! | Vrijeme: {FF9797}%d minuta {FF4141}| Razlog: {FF9797}%s", giveplayer, vrijemes, razlog);
                  SCM(playerid, 0xFF4141FF, string);
               }
               else
               {
               SCM(playerid, GREY, "Taj igrac nije online!");
               }
            }
            else
            {
            SCM(playerid, GREY, "Nisi ovlasten!");
            }
         }
         return 1;
      }
   
Neke slike/video za lakse dobivanje pomoci(neobavezno):

Evo ti ocako stavi

SCM(playerid, COLOR_GRAD2, "{168BFF}INFO: {959561} /prison {959561}[ID/DioImena] [Vrijeme] [Razlog]");
            return 1;
         }
      }
      else
      {
         if(PlayerInfo[playerid][pAdmin] >= 1)
         {
            if(IsPlayerConnected(id))
               {
                  GetPlayerName(id, giveplayer, sizeof(giveplayer));
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  WantedPoints[id] = 0;
                  WantedLevel[id] = 0;
                  PlayerInfo[id][pJailed] = 2;
                  PlayerInfo[id][pJailTime] = vrijemes*60;
                  new rand = random(sizeof(RandomAreaSpawns));
                  SetPlayerPos(id, RandomAreaSpawns[rand][0], RandomAreaSpawns[rand][1], RandomAreaSpawns[rand][2]);
                  pritvorvrijeme[playerid] = TextDrawCreate(5.000000, 319.000000, "~r~Pritvor:~b~ 5000 sec");
   TextDrawBackgroundColor(pritvorvrijeme[playerid], 255);
   TextDrawFont(pritvorvrijeme[playerid], 1);
   TextDrawLetterSize(pritvorvrijeme[playerid], 0.429999, 2.099999);
   TextDrawColor(pritvorvrijeme[playerid], -1);
   TextDrawSetOutline(pritvorvrijeme[playerid], 1);
   TextDrawSetProportional(pritvorvrijeme[playerid], 1);
   TextDrawUseBox(pritvorvrijeme[playerid], 1);
   TextDrawBoxColor(pritvorvrijeme[playerid], 62);
   TextDrawTextSize(pritvorvrijeme[playerid], 143.000000, -21.000000);
                  SetPlayerInterior(id, 0);
                  format(string,sizeof(string), "{FF0000}Zatvoren si u KP dom! | Vrijeme: {FFFF80}%d minuta| {FF0000}Admin:{FFFF80} %s | {FF0000}Razlog: {FFFF80}%s", vrijemes, sendername, razlog);
                  TextDrawShowForPlayer(id, pritvorvrijeme[playerid]);
                  SCM(id, 0xFF4141FF, string);
                  format(string,sizeof(string), "Zatvorio si {FF9797}%s {FF4141}u KP dom! | Vrijeme: {FF9797}%d minuta {FF4141}| Razlog: {FF9797}%s", giveplayer, vrijemes, razlog);
                  SCM(playerid, 0xFF4141FF, string);
               }
               else
               {
               SCM(playerid, GREY, "Taj igrac nije online!");
               }
            }
            else
            {
            SCM(playerid, GREY, "Nisi ovlasten!");
            }
         }
         return 1;
      }
   
   CMD:utisaj(playerid, params[])
   {
      new id, razlog[200], vrijemes, string[128];
      new sendername[MAX_PLAYER_NAME];
      new giveplayer[MAX_PLAYER_NAME];
      if (sscanf(params, "uds[128]", id, vrijemes, razlog))
      {
         if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGameMaster] >= 3)
         {

EDIT:ako ne bude radilo do srv-ra je kod mene radi tako
Poslednja Izmena: Oktobar 23, 2011, 21:32:35 POSLE PODNE od Medis
Pravim modove i FS-ove javite mi se na PM za drugo samo $$$$$$$$$

ne radi opet isto !1!
meni treba nesto da izbaci mu ad nije vratio dug drustvu il tak nesto !!
Poslednja Izmena: Oktobar 23, 2011, 21:40:25 POSLE PODNE od Aldin Begovic

Ne znam u mene radi onta ti je do srv-a ili do skripte
Pravim modove i FS-ove javite mi se na PM za drugo samo $$$$$$$$$

if(PlayerInfo[playerid][pJailed] == 1)
      {
          SetPlayerInterior(playerid, 6);
          PlayerInfo[playerid][pInt] = 6;
         SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
         SendClientMessage(playerid, COLOR_LIGHTRED, "Ne potpune kazne, nazad u zatvor.");
         return 1;
      }
      if(PlayerInfo[playerid][pJailed] == 2)
      {
          SetPlayerInterior(playerid, 0);
          PlayerInfo[playerid][pInt] = 0;
         SetPlayerPos(playerid,268.5777,1857.9351,9.8133);
         SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
         return 1;
      }

ovo mene decko zeza