pomoc /goto

Započeo Vacok, Avgust 21, 2012, 11:29:10 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:BG
Detaljan opis problema:Ovako kako da napravim da se nemzju poratti damini do mene npr jedino veci od admin level 3
Dio skripte:
Citatif(strcmp(cmd, "/goto", true) == 0)
   {
       if(IsPlayerConnected(playerid) && !IsPlayerInRangeOfPoint(playerid, 100,-5.2383,1526.3005,12.7500))
       {
         if(PlayerInfo[playerid][pGmDuty] == 1 || PlayerInfo[playerid][pAdminDuty] == 1 || PlayerInfo[playerid][pAdmin] >= 1338)
         {
            if(PlayerInfo[playerid][pJailed] == 0)
            {
               tmp = strtok(cmdtext, idx);
               if(!strlen(tmp))
               {
                  SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /goto [playerID/DeoImena]");
                  return 1;
               }
               new Float:plocx,Float:plocy,Float:plocz;
               new plo;
               plo = ReturnUser(tmp);
               if (IsPlayerConnected(plo))
               {
                  if(plo != INVALID_PLAYER_ID)
                  {
                     if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGameMaster] >= 1)
                     {
                        GetPlayerPos(plo, plocx, plocy, plocz);
                        if(PlayerInfo[plo][pInt] > 0)
                        {
                           SafeSetPlayerInterior(playerid,PlayerInfo[plo][pInt]);
                           PlayerInfo[playerid][pLocal] = PlayerInfo[plo][pLocal];
                        }
                        else
                        {
                           SafeSetPlayerInterior(playerid,0);
                        }
                        if (GetPlayerState(playerid) == 2)
                        {
                           new tmpcar = GetPlayerVehicleID(playerid);
                           SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
                           TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                        }
                        else
                        {
                           SafeSetPlayerPos(playerid,plocx,plocy+2, plocz);
                        }
                        SetPlayerVirtualWorld(playerid, PlayerInfo[plo][pVirWorld]);
                        GetPlayerName(plo, giveplayer, sizeof(giveplayer));
                        format(string, sizeof(string), "[ADMIN]: %s se teleportovao do %s", sendername, giveplayer);
                        ABroadCast(COLOR_LIGHTRED, string, 5);
                        DisablePlayerCheckpoint(playerid);
                        OnPlayerExitFood(playerid);
                        if(BizzEntered[plo] != 9999)
                        {
                           BizzEntered[playerid] = BizzEntered[plo];
                        }
                        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 se teleportovao do %s",d,m,y,h,mi,s,sendername,giveplayer);
                        TelesLog(string);
                     }
                     else
                     {
                        SendClientMessage(playerid, COLOR_GRAD1, "** Niste ovlasceni da koristite tu komandu!");
                        return 1;
                     }
                  }
               }
               else
               {
                  format(string, sizeof(string), "   %d igrac nije aktivan.", plo);
                  SendClientMessage(playerid, COLOR_GRAD1, string);
                  return 1;
               }
            }
            else
            {
               GameTextForPlayer(playerid, "~r~NALAZITE SE U ZATVORU!", 5000, 3);
               return 1;
            }
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "** Ne mozete da se teleportujete dok niste na duznosti!");
            return 1;
         }
      }
      else
      {
         GameTextForPlayer(playerid, "~r~NALAZITE SE U GULAGU!", 5000, 3);
      }
      return 1;
   }
Neke slike/video za lakse dobivanje pomoci(neobavezno):