[Pomoc] /prison

Započeo [UG]Cile, Januar 01, 2012, 11:15:07 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: CL RP Edit
Detaljan opis problema: ma nesto mi nece /prison pravio sam da se moze podesit vrijeme ali samo stavi igraca ID 0
Dio skripte:

   if(strcmp(cmd, "/prison", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /prison [ID Igraca/Dio Imena] [vrijeme] [razlog]");
            return 1;
         }
         new playa;
         new time;
         playa = ReturnUser(tmp);
         tmp = strtok(cmdtext, idx);
         time = strval(tmp);
         if (PlayerInfo[playerid][pAdmin] >= 1)
         {
             if(IsPlayerConnected(playa))
             {
                 if(playa != INVALID_PLAYER_ID)
                 {
                    GetPlayerName(playa, giveplayer, sizeof(giveplayer));
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  new length = strlen(cmdtext);
                  while ((idx < length) && (cmdtext[idx] <= ' '))
                  {
                     idx++;
                  }
                  new offset = idx;
                  new result[128];
                  while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
                  {
                     result[idx - offset] = cmdtext[idx];
                     idx++;
                  }
                  result[idx - offset] = EOS;
                  if(!strlen(result))
                  {
                     SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /prison [ID Igraca/Dio Imena] [vrijeme] [razlog]");
                     return 1;
                  }
                  if(PlayerInfo[playa][pJailed] == 0)
                  {
                     format(string, sizeof(string), "Zatvoren si u areu od admina %s na: %d minuta.",sendername,time);
                     SendClientMessage(playa, COLOR_LIGHTRED, string);
                     format(string, sizeof(string), "Zbog: %s",(result));
                     SendClientMessage(playa, ZUTA, string);
                     GameTextForPlayer(giveplayerid, "~w~Dobrodosli u ~n~~r~Area-51", 5000, 3);
                       WantedPoints[giveplayerid] = 0;
                       WantedLevel[giveplayerid] = 0;
                     PlayerInfo[playa][pJailed] = 2;
                     PlayerInfo[playa][pJailTime] = time*60;
                     SetPlayerPos(giveplayerid, 107.2300,1920.6311,18.5208);
                            SetPlayerWorldBounds(giveplayerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
                       SetPlayerInterior(giveplayerid,0);
                       PlayerInfo[giveplayerid][pInt] = 0;
                     format(string, sizeof(string), "*Stavio si u areu "COL_RED"%s.", giveplayer);
                     SendClientMessage(playerid, WHITE, string);
                     format(string, sizeof(string), "%s je zatvoren u areu od admina: %s, vrijeme: %d razlog: %s",giveplayer ,sendername,time,(result));
                     SendAdminMessage(RED,string);
                  }
               }
            }
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "{FFFFFF}[{F81414}CileX{FFFFFF}]{CCCCCC} Nisi ovlasten!");
         }
      }
      return 1;
   }
Neke slike/video za lakse dobivanje pomoci(neobavezno):/



Woo

*


vidis i sam da jesam :D

moze neko pomoc ?
Poslednja Izmena: Januar 02, 2012, 00:20:38 PRE PODNE od [BCL] Cile