Jump to content

KrsGabriel

Membru
  • Posts

    11
  • Joined

  • Last visited

Posts posted by KrsGabriel

  1. Problema intalnita (descriere): vreu un site sau un program unde pot converti mapele din mta "RemoveBuildingForPlayer" va rog ajutati-ma am vazut unu la voi aici bun dar numai il gasesc il avea cineeva la semnatura !
    Ero(area / rile) / warning-(ul / urile): ---
    Liniile de cod / sursa / script-ul: ---
    Imagini / Video (optional): ---
    Ati incercat sa rezolvati singur?:
    da

     

    SCZ DACA NU AM POSTAT UNNDE TREBUIE !

  2. sault bag astea in gm si nu imi apare pe svr de la ce este ?

    new Text:Textdraw0;
    new Text:Textdraw1;
    new Text:Textdraw2;
    new Text:Textdraw3;
    new Text:Textdraw4;
        Textdraw0 = TextDrawCreate(5.444000, 409.554992, "G");
        TextDrawBackgroundColor(Textdraw0, 255);
        TextDrawFont(Textdraw0, 2);
        TextDrawLetterSize(Textdraw0, 0.629999, 3.799998);
        TextDrawColor(Textdraw0, 0x4D9999FF);
        TextDrawSetOutline(Textdraw0, 0);
        TextDrawSetProportional(Textdraw0, 1);
        TextDrawSetShadow(Textdraw0, 1);
    
        Textdraw1 = TextDrawCreate(21.549999, 426.554992, "rand");
        TextDrawBackgroundColor(Textdraw1, 255);
        TextDrawFont(Textdraw1, 1);
        TextDrawLetterSize(Textdraw1, 0.509999, 1.500000);
        TextDrawColor(Textdraw1, -1);
        TextDrawSetOutline(Textdraw1, 0);
        TextDrawSetProportional(Textdraw1, 1);
        TextDrawSetShadow(Textdraw1, 1);
    
        Textdraw2 = TextDrawCreate(73.444000, 413.554992, "L");
        TextDrawBackgroundColor(Textdraw2, 255);
        TextDrawFont(Textdraw2, 2);
        TextDrawLetterSize(Textdraw2, 0.629999, 3.199999);
        TextDrawColor(Textdraw2, 0x4D9999FF);
        TextDrawSetOutline(Textdraw2, 0);
        TextDrawSetProportional(Textdraw2, 1);
        TextDrawSetShadow(Textdraw2, 1);
    
        Textdraw3 = TextDrawCreate(87.550003, 426.554992, "arceny");
        TextDrawBackgroundColor(Textdraw3, 255);
        TextDrawFont(Textdraw3, 1);
        TextDrawLetterSize(Textdraw3, 0.509999, 1.500000);
        TextDrawColor(Textdraw3, -1);
        TextDrawSetOutline(Textdraw3, 0);
        TextDrawSetProportional(Textdraw3, 1);
        TextDrawSetShadow(Textdraw3, 1);
    
        Textdraw4 = TextDrawCreate(58.549999, 429.554992, "~h~]");
        TextDrawBackgroundColor(Textdraw4, 255);
        TextDrawFont(Textdraw4, 0);
        TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
        TextDrawColor(Textdraw4, -1);
        TextDrawSetOutline(Textdraw4, 0);
        TextDrawSetProportional(Textdraw4, 1);
        TextDrawSetShadow(Textdraw4, 1);
  3. Problema intalnita (descriere): Vreau sa fac la aceasta comanda sa poata si admini sa porneasca masina altora va rog ajutati-ma
    Ero(area / rile) / warning-(ul / urile): -
    Liniile de cod / sursa / script-ul:

    if(!strcmp(cmd, "/engine", true))
        {
            if(IsPlayerConnected(playerid))
            {
                if(IsPlayerInAnyVehicle(playerid))
                {
                    if(!engineOn[GetPlayerVehicleID(playerid)])
                    {
                        if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
                        {
                            return 1;
                        }
                        if(pveh == 510 || pveh == 462 || pveh == 481 || pveh == 509)
                        {
                            return 1;
                        }
                        if(IsAAllRentCar(idcar))
                        {
                            if(HireCar[playerid] != idcar)
                            {
                                return 1;
                            }
                        }
                        if(IsAPlane(idcar))
                        {
                            return 1;
                        }
                        if(IsABus(idcar))
                        {
                            return 1;
                        }
                        if(IsAPizzabike(idcar))
                        {
                            return 1;
                        }
                        if(IsAGarbageTruck(idcar))
                        {
                            return 1;
                        }
                        if(IsAHarvest(idcar))
                        {
                            return 1;
                        }
                        if(IsAJobCar(idcar))
                        {
                            return 1;
                        }
                        if(IsASweeper(idcar))
                        {
                            return 1;
                        }
                        if(IsAnOwnableCar(idcar) && idcar != PlayerInfo[playerid][pPcarkey])
                        {
                            if(IsAnOwnableCar(idcar) && idcar != PlayerInfo[playerid][pPcarkey2])
                            {
                                if(IsAnOwnableCar(idcar) && idcar != PlayerInfo[playerid][pPcarkey3])
                                {
                                    if(IsAnOwnableCar(idcar) && idcar != PlayerInfo[playerid][pPcarkey4])
                                    {
                                        if(IsAnOwnableCar(idcar) && idcar != PlayerInfo[playerid][pPcarkey5])
                                        {
                                                if(IsAnOwnableCar(idcar) && idcar != PlayerInfo[playerid][pPcarkey6])
                                            {
                                                if(IsAnOwnableCar(idcar) && idcar != PlayerInfo[playerid][pPcarkey7])
                                                {
                                                    if(IsAnOwnableCar(idcar) && idcar != PlayerInfo[playerid][pPcarkey8])
                                                    {
                                                            if(IsAnOwnableCar(idcar) && idcar != PlayerInfo[playerid][pPcarkey9])
                                                        {
                                                                if(IsAnOwnableCar(idcar) && idcar != PlayerInfo[playerid][pPcarkey10])
                                                            {
                                                                 SendClientMessage(playerid, COLOR_PURPLE, "[Server]: Nu ai cheile pentru aceasta masina!");
                                                                 RemovePlayerFromVehicle(playerid);
                                                                TogglePlayerControllable(playerid, 1);
                                                                return 1;
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        if(gEngine[playerid] == 1) { return 1; }
                        new playerveh = GetPlayerVehicleID(playerid);
                        PutPlayerInVehicle(playerid, playerveh, 0);
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        format(string, sizeof(string), "* %s spins a key and tries to start vehicle engine.", sendername);
                        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        SetTimerEx("StartingTheVehicle",1500,0,"i",playerid);
                        GameTextForPlayer(playerid, "~w~Starting vehicle engine...",1500,3);
                        gEngine[playerid] = 1;
                        return 1;
                    }
                    if(engineOn[GetPlayerVehicleID(playerid)])
                    {
                        if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
                        {
                            return 1;
                        }
                        if(pveh == 510 || pveh == 462 || pveh == 481 || pveh == 509)
                        {
                            return 1;
                        }
                        if(IsAAllRentCar(idcar))
                        {
                            if(HireCar[playerid] != idcar)
                            {
                                return 1;
                            }
                        }
                        if(IsABus(idcar))
                        {
                            return 1;
                        }
                        if(IsAGarbageTruck(idcar))
                        {
                            return 1;
                        }
                        if(IsAHarvest(idcar))
                        {
                            return 1;
                        }
                        if(IsAPizzabike(idcar))
                        {
                            return 1;
                        }
                        if(IsAPlane(idcar))
                        {
                            return 1;
                        }
                        if(IsAJobCar(idcar))
                        {
                            return 1;
                        }
                        if(IsASweeper(idcar))
                        {
                            return 1;
                        }
                        if(IsAnOwnableCar(idcar) && idcar != PlayerInfo[playerid][pPcarkey])
                        {
                            if(IsAnOwnableCar(idcar) && idcar != PlayerInfo[playerid][pPcarkey2])
                            {
                                if(IsAnOwnableCar(idcar) && idcar != PlayerInfo[playerid][pPcarkey3])
                                {
                                    if(IsAnOwnableCar(idcar) && idcar != PlayerInfo[playerid][pPcarkey4])
                                    {
                                        if(IsAnOwnableCar(idcar) && idcar != PlayerInfo[playerid][pPcarkey5])
                                        {
                                                if(IsAnOwnableCar(idcar) && idcar != PlayerInfo[playerid][pPcarkey6])
                                            {
                                                if(IsAnOwnableCar(idcar) && idcar != PlayerInfo[playerid][pPcarkey7])
                                                {
                                                    if(IsAnOwnableCar(idcar) && idcar != PlayerInfo[playerid][pPcarkey8])
                                                    {
                                                            if(IsAnOwnableCar(idcar) && idcar != PlayerInfo[playerid][pPcarkey9])
                                                        {
                                                                if(IsAnOwnableCar(idcar) && idcar != PlayerInfo[playerid][pPcarkey10])
                                                            {
                                                                 SendClientMessage(playerid, COLOR_PURPLE, "[Server]: Nu ai cheile pentru aceasta masina!");
                                                                  RemovePlayerFromVehicle(playerid);
                                                                TogglePlayerControllable(playerid, 1);
                                                                return 1;
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        engineOn[GetPlayerVehicleID(playerid)] = false;
                        //RemovePlayerFromVehicle(playerid);
                        TogglePlayerControllable(playerid, 0);
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        format(string, sizeof(string), "* %s spins the vehicle key and turns off the engine.", sendername);
                        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        gEngine[playerid] = 0;
                        return 1;
                    }
                }
            }
            return 1;
        }

    Imagini / Video (optional):
    Ati incercat sa rezolvati singur?:  da

     

     

     

  4. Problema intalnita (descriere): Nu poti da gethere la un player fara /aod pornit sau la un admin mai mare decat tine
    Ero(area / rile) / warning-(ul / urile): 0
    Liniile de cod / sursa / script-ul:

    if(strcmp(cmd, "/gethere", true) == 0)
      {
        if(IsPlayerConnected(playerid))
        {
          tmp = strtok(cmdtext, idx);
          if(!strlen(tmp))
          {
            SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /gethere [playerid/PartOfName]");
            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][pHelper] >= 1)
              {
               if(PlayerInfo[playerid][pAdmin] < 1339)
                  {
                    f(AdminDuty[playerid] == 0 && HelperDuty[playerid] == 0)
                    {
                    SendClientMessage(playerid,COLOR_GREY,"[Server]: Trebuie sa fii OnDuty !");
                    return 1;
                   }
                }
                   if(PlayerInfo[plo][pJailed] == 1)
                   {
                    SendClientMessage(playerid,COLOR_GREY,"[Server]: Acest player nu sia terminat inca sentinta (/jl) !");
                    return 1;
                }
                 if(WantedLevel[plo] >= 1)
                 {
                  SendClientMessage(playerid,COLOR_GREY,"[Server]: Acest player are wanted,este posibil sa fie urmarit de politie !");
                  return 1;
                 }
                if(PlayerInfo[plo][pAdmin] > PlayerInfo[playerid][pAdmin])
                {
                  SendClientMessage(playerid, COLOR_GRAD1,"[Server]: Nu poti teleporta admini mai mari in grad ca tine !");
                  return 1;
                }
                GetPlayerPos(playerid, plocx, plocy, plocz);
                if(GetPlayerInterior(playerid) > 0)
                {
                  SetPlayerInterior(plo,GetPlayerInterior(playerid));
                  PlayerInfo[plo][pInt] = GetPlayerInterior(playerid);
                  PlayerInfo[plo][pVirWorld] = GetPlayerVirtualWorld(playerid);
                  SetPlayerVirtualWorld(plo,GetPlayerVirtualWorld(playerid));
                }
                if(GetPlayerInterior(playerid) == 0)
                {
                  SetPlayerInterior(plo,0);
                  PlayerInfo[plo][pVirWorld] = 0;
                  SetPlayerVirtualWorld(plo,0);
                }
                if(plocz > 930.0 && GetPlayerInterior(playerid) == 0) //the highest land point in sa = 526.8
                {
                  SetPlayerInterior(plo,1);
                  PlayerInfo[plo][pInt] = 1;
                  PlayerInfo[plo][pVirWorld] = 1;
                  SetPlayerVirtualWorld(plo,1);
                }
                if (GetPlayerState(plo) == 2)
                {
                  TelePos[plo][0] = 0.0;
                  TelePos[plo][1] = 0.0;
                  new tmpcar = GetPlayerVehicleID(plo);
                  SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
                }
                else
                {
                  SetPlayerPos(plo,plocx,plocy+2, plocz);
                }
                GetPlayerName(playerid, sendername, sizeof(sendername));
                GetPlayerName(plo, playername, sizeof(playername));
                format(string, 256, "** Admin %s tea teleportat la el.", sendername);
                  SendClientMessage(plo, COLOR__CYAN, string);
                new arank[64];
                if(PlayerInfo[playerid][pAdmin] >= 1) { arank = "Admin"; }
                else if(PlayerInfo[playerid][pHelper] >= 1) { arank = "HELPER"; }
                else { arank = "Virus"; }
                format(string, sizeof(string), "[%s]: %s la teleportat la el pe %s.", arank,sendername,playername);
                SendHelperMessage(COLOR_YELLOW, string);
                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 la teleportat la el pe %s.",d,m,y,h,mi,s,sendername,playername);
                AdminActivity(string);
              }
              else
              {
                SendClientMessage(playerid, COLOR_GRAD1, "[Server]: Tu nu esti autorizat sa foloesti aceasta comanda!");
              }
            }
          }
          else
          {
            format(string, sizeof(string), "[Server]: %d is not an active player.", plo);
            SendClientMessage(playerid, COLOR_GRAD1, string);
          }
        }
        return 1;
      }
    
    

    Imagini / Video (optional): ---
    Ati incercat sa rezolvati singur?: da dar numai merge deloc comanda

  5. Ajutati-ma am o problema un admin de lvl mai mic decat owneru nu poate da /respawn la un player fara sa dea /aod ce trebuie sa scot din gm ca am la mai multe comenzi aceasi problema ajutati-ma va rog daca se poate

    //-----------------------------------[Respawn]----------------------------------
        if(strcmp(cmd, "/respawn", true) == 0) //By KrsGabriel
        {
            if(IsPlayerConnected(playerid))
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /respawn [playerid/PartOfName]");
                    return 1;
                }
                new playa;
                  playa = ReturnUser(tmp);
                  if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 2)
                {
                    if(IsPlayerConnected(playa))
                    {
                        if(playa != INVALID_PLAYER_ID)
                        {
                            if(PlayerInfo[playerid][pAdmin] < 1339)
                            {
                                if(playa == playerid){ SendClientMessage(playerid, COLOR_WHITE,"[Server]: You can respawn yourself, stupid."); return 1; }
                            }
                            if(PlayerInfo[playa][pAdmin] > PlayerInfo[playerid][pAdmin])
                            {
                                SendClientMessage(playerid, COLOR_GRAD1,"[Server]: Nu poti teleporta admini mai mari in grad ca tine !");
                                return 1;
                            }
                            if(WantedLevel[playa] >= 1)
                             {
                                SendClientMessage(playerid,COLOR_GREY,"[Server]: Acest player are wanted !");
                                return 1;
                             }
                            //if(SpawnChange[playerid])
                            {
                                GetPlayerName(playa, giveplayer, sizeof(giveplayer));
                                SpawnPlayer(playa);
                                SetPlayerArmour(playa, 0.0);
                                GetPlayerName(playerid, sendername, sizeof(sendername));
                                new arank[64];
                                if(PlayerInfo[playerid][pAdmin] >= 1) { arank = "Admin"; }
                                else if(PlayerInfo[playerid][pHelper] >= 1) { arank = "HELPER"; }
                                else { arank = "Virus"; }
                                format(string, sizeof(string), "[Server]: Ai primit respawn de la [%s] %s.", arank,sendername);
                                SendClientMessage(playa, COLOR__CYAN, string);
                                format(string, 128, "[%s]: %s has respawned the player %s.", arank,sendername, giveplayer);
                                SendHelperMessage(COLOR_YELLOW, string);
                                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 respawned the player %s.",d,m,y,h,mi,s,sendername,giveplayer);
                                AdminActivity(string);
                                return 1;
                }
                        }
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "[Server]: Nu ai voie sa folosesti aceasta comanda!");
                }
            }
            return 1;
        }
    
  6.    Am si eu o problema va rog ajutati-ma un admin de lvl 1,2,3,4,.... inafara de owner nu poate da /gethere la un player fara sa porneasca /aod ... va rog ajuati-ma daca puteti mam tot chinu !!

     if(strcmp(cmd, "/gethere", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /gethere [playerid/PartOfName]");
                    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][pHelper] >= 1)
                        {
                             if(PlayerInfo[playerid][pAdmin] < 1339)
                            {
                                f(AdminDuty[playerid] == 0 && HelperDuty[playerid] == 0)
                                {
                                    SendClientMessage(playerid,COLOR_GREY,"[Server]: Trebuie sa fii OnDuty !");
                                    return 1;
                                 }
                            }
                               if(PlayerInfo[plo][pJailed] == 1)
                             {
                                SendClientMessage(playerid,COLOR_GREY,"[Server]: Acest player nu sia terminat inca sentinta (/jl) !");
                                return 1;
                              }
                               if(WantedLevel[plo] >= 1)
                             {
                                SendClientMessage(playerid,COLOR_GREY,"[Server]: Acest player are wanted,este posibil sa fie urmarit de politie !");
                                return 1;
                             }
                            if(PlayerInfo[plo][pAdmin] > PlayerInfo[playerid][pAdmin])
                            {
                                SendClientMessage(playerid, COLOR_GRAD1,"[Server]: Nu poti teleporta admini mai mari in grad ca tine !");
                                return 1;
                            }
                            GetPlayerPos(playerid, plocx, plocy, plocz);
                            if(GetPlayerInterior(playerid) > 0)
                            {
                                SetPlayerInterior(plo,GetPlayerInterior(playerid));
                                PlayerInfo[plo][pInt] = GetPlayerInterior(playerid);
                                PlayerInfo[plo][pVirWorld] = GetPlayerVirtualWorld(playerid);
                                SetPlayerVirtualWorld(plo,GetPlayerVirtualWorld(playerid));
                            }
                            if(GetPlayerInterior(playerid) == 0)
                            {
                                SetPlayerInterior(plo,0);
                                PlayerInfo[plo][pVirWorld] = 0;
                                SetPlayerVirtualWorld(plo,0);
                            }
                            if(plocz > 930.0 && GetPlayerInterior(playerid) == 0) //the highest land point in sa = 526.8
                            {
                                SetPlayerInterior(plo,1);
                                PlayerInfo[plo][pInt] = 1;
                                PlayerInfo[plo][pVirWorld] = 1;
                                SetPlayerVirtualWorld(plo,1);
                            }
                            if (GetPlayerState(plo) == 2)
                            {
                                TelePos[plo][0] = 0.0;
                                TelePos[plo][1] = 0.0;
                                new tmpcar = GetPlayerVehicleID(plo);
                                SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
                            }
                            else
                            {
                                SetPlayerPos(plo,plocx,plocy+2, plocz);
                            }
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            GetPlayerName(plo, playername, sizeof(playername));
                            format(string, 256, "** Admin %s tea teleportat la el.", sendername);
                              SendClientMessage(plo, COLOR__CYAN, string);
                            new arank[64];
                            if(PlayerInfo[playerid][pAdmin] >= 1) { arank = "Admin"; }
                            else if(PlayerInfo[playerid][pHelper] >= 1) { arank = "HELPER"; }
                            else { arank = "Virus"; }
                            format(string, sizeof(string), "[%s]: %s la teleportat la el pe %s.", arank,sendername,playername);
                            SendHelperMessage(COLOR_YELLOW, string);
                            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 la teleportat la el pe %s.",d,m,y,h,mi,s,sendername,playername);
                            AdminActivity(string);
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "[Server]: Tu nu esti autorizat sa foloesti aceasta comanda!");
                        }
                    }
                }
                else
                {
                    format(string, sizeof(string), "[Server]: %d is not an active player.", plo);
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                }
            }
            return 1;
        }
  7. SALUT AM O PROBLEMA 

    UN ADMIN DE LEVEL MAI MIC DECAT OWNERU NU POATE DA TP LA UN ADMIN MAI MARE DECAT EL FARA SA DEA /AOD

    VA ROG AJUTATI-MA 

     

     

      //------------------------------------------------------------------------------
        if(strcmp(cmd, "/goto", true) == 0)
        {
              if(IsPlayerConnected(playerid))
              {
                    if(PlayerInfo[playerid][pJailed] == 1)
                     {
                        SendClientMessage(playerid,COLOR_GREY,"[server]: Nu pleci nicaieri deoarece esti la inchisoare !");
                        return 1;
                    }
                    if(WantedLevel[playerid] >= 1)
                     {
                        SendClientMessage(playerid,COLOR_GREY,"[server]: Nu pleci nicaieri deoarece ai wanted !");
                        return 1;
                     }
                      new x_nr[256];
                      x_nr = strtok(cmdtext, idx);
                    if(!strlen(x_nr))
                    {
                        SendClientMessage(playerid, COLOR_WHITE, "{00A1FF}USAGE{FFFFFF}: /goto [nume]");
                        SendClientMessage(playerid, COLOR_GRAD5, "Menu: SALA, M, BANK, HOSPITAL, DMW, CAR");
                        SendClientMessage(playerid, COLOR_GRAD5, "Menu: LS, SF, LV, AD, TEREN, VIP, (P)layer");
                        SendClientMessage(playerid, COLOR_GRAD5, "Menu: BC, HOTEL, BP, BB, PLATE, RACE, RACE2");
                        return 1;
                    }
                    if(strcmp(x_nr,"m",true) == 0)
                     {
                        if(PlayerInfo[playerid][pAdmin] >= 1)
                        {
                            if (GetPlayerState(playerid) == 2)
                            {
                                new tmpcar = GetPlayerVehicleID(playerid);
                                SetVehiclePos(tmpcar, -2311.7415,-1637.7587,483.2643);
                                TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                            }
                            else
                            {
                                SetPlayerPos(playerid, -2311.7415,-1637.7587,483.2643);
                            }
                            SetPlayerInterior(playerid,0);
                            PlayerInfo[playerid][pInt] = 0;
                            SetPlayerVirtualWorld(playerid, 0);
                            PlayerInfo[playerid][pVirWorld] = 0;
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "[Admin]: %s s-a teleportat pe Chiliad.", sendername);
                            ABroadCast(COLOR_YELLOW,string,1);
                            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  s-a teleportat pe Chiliad.",d,m,y,h,mi,s,sendername);
                            AdminActivity(string);
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "[server]: Nu esti admin pentru a folosi comanda aceasta !");
                            return 1;
                        }
                        return 1;
                    }
                    if(strcmp(x_nr,"plate",true) == 0)
                     {
                        if(PlayerInfo[playerid][pAdmin] >= 1)
                        {
                            if (GetPlayerState(playerid) == 2)
                            {
                                new tmpcar = GetPlayerVehicleID(playerid);
                                SetVehiclePos(tmpcar, 1306.20, -2230.70, 18.90);
                                TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                            }
                            else
                            {
                                SetPlayerPos(playerid, 1306.20, -2230.70, 18.90);
                            }
                            SetPlayerInterior(playerid,0);
                            PlayerInfo[playerid][pInt] = 0;
                            SetPlayerVirtualWorld(playerid, 0);
                            PlayerInfo[playerid][pVirWorld] = 0;
                            /*GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "[Admin]: %s s-a teleportat pe Chiliad.", sendername);
                            ABroadCast(COLOR_YELLOW,string,1);
                            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  s-a teleportat pe Chiliad.",d,m,y,h,mi,s,sendername);
                            AdminActivity(string);*/
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "[server]: Nu esti admin pentru a folosi comanda aceasta !");
                            return 1;
                        }
                        return 1;
                    }
                    if(strcmp(x_nr,"sala",true) == 0)
                    {
                        if (PlayerInfo[playerid][pAdmin] >= 1)
                        {
                            SetPlayerPos(playerid, 1374.5255,5.6363,1008.1563);
                            SetPlayerInterior(playerid,1);
                            PlayerInfo[playerid][pInt] = 1;
                            SetPlayerVirtualWorld(playerid,123);
                            PlayerInfo[playerid][pVirWorld] = 123;
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "[Admin]: %s s-a teleportat in Arena Eventurilor.", sendername);
                            ABroadCast(COLOR_YELLOW,string,1);
                            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  s-a teleportat in Arena Eventurilor.",d,m,y,h,mi,s,sendername);
                            AdminActivity(string);
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "[server]: Ne pare rãu,dar nu esti autorizat sã folosesti aceastã comandã !");
                            return 1;
                        }
                         return 1;
                      }
                    if(strcmp(x_nr,"bank",true) == 0)
                     {
                        if(PlayerInfo[playerid][pAdmin] >= 1)
                        {
                            if (GetPlayerState(playerid) == 2)
                            {
                                new tmpcar = GetPlayerVehicleID(playerid);
                                SetVehiclePos(tmpcar, 1462.7164,-1025.5474,23.8281);
                                TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                            }
                            else
                            {
                                SetPlayerPos(playerid, 1462.7164,-1025.5474,23.8281);
                            }
                            SetPlayerInterior(playerid,0);
                            PlayerInfo[playerid][pInt] = 0;
                            SetPlayerVirtualWorld(playerid, 0);
                            PlayerInfo[playerid][pVirWorld] = 0;
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "[Admin]: %s s-a teleportat la banca.", sendername);
                            ABroadCast(COLOR_YELLOW,string,1);
                            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 s-a teleportat la banca.",d,m,y,h,mi,s,sendername);
                            AdminActivity(string);
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "[server]: Ne pare rãu,dar nu esti autorizat sã folosesti aceastã comandã !");
                            return 1;
                        }
                        return 1;
                    }
                    if(strcmp(x_nr,"hospital",true) == 0)
                    {
                        if(PlayerInfo[playerid][pAdmin] >= 1)
                        {
                            SetPlayerPos(playerid, 1172.1720,-1332.8326,1006.4028);
                            SetPlayerInterior(playerid,6);
                            SetPlayerFacingAngle(playerid, 0);
                            PlayerInfo[playerid][pInt] = 6;
                            SetPlayerVirtualWorld(playerid, 1);
                            PlayerInfo[playerid][pVirWorld] = 1;
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "[Admin]: %s s-a teleportat la Hospital.", sendername);
                            ABroadCast(COLOR_YELLOW,string,1);
                            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 s-a teleportat la Hospital.",d,m,y,h,mi,s,sendername);
                            AdminActivity(string);
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GREY, "[server]: Ne pare rãu,dar nu esti autorizat sã folosesti aceastã comandã .");
                            return 1;
                        }
                        return 1;
                    }
                    if(strcmp(x_nr,"ls",true) == 0)
                    {
                        if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
                        {
                            if (GetPlayerState(playerid) == 2)
                            {
                                new tmpcar = GetPlayerVehicleID(playerid);
                                SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
                                TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                            }
                            else
                            {
                                SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
                            }
                            SetPlayerInterior(playerid,0);
                            PlayerInfo[playerid][pInt] = 0;
                            SetPlayerVirtualWorld(playerid, 0);
                            PlayerInfo[playerid][pVirWorld] = 0;
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            new arank[64];
                            if(PlayerInfo[playerid][pAdmin] >= 1) { arank = "Admin"; }
                            else if(PlayerInfo[playerid][pHelper] >= 1) { arank = "HELPER"; }
                            else { arank = "Virus"; }
                            format(string, sizeof(string), "[%s]: %s s-a teleportat in LS.", arank,sendername);
                            SendHelperMessage(COLOR_YELLOW, string);
                            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 s-a teleportat in LS.",d,m,y,h,mi,s,sendername);
                            AdminActivity(string);
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "[server]: Ne pare rãu,dar nu esti autorizat sã folosesti aceastã comandã !");
                            return 1;
                        }
                        return 1;
                     }
                       if(strcmp(x_nr,"dmw",true) == 0)
                    {
                        if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 3)
                        {
                            if (GetPlayerState(playerid) == 2)
                            {
                                new tmpcar = GetPlayerVehicleID(playerid);
                                SetVehiclePos(tmpcar, 2059.8696,-1910.9449,13.5469);
                                TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                            }
                            else
                            {
                                SetPlayerPos(playerid, 2059.8696,-1910.9449,13.5469);
                            }
                            SetPlayerInterior(playerid,0);
                            PlayerInfo[playerid][pInt] = 0;
                            SetPlayerVirtualWorld(playerid, 0);
                            PlayerInfo[playerid][pVirWorld] = 0;
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            new arank[64];
                            if(PlayerInfo[playerid][pAdmin] >= 1) { arank = "Admin"; }
                            else if(PlayerInfo[playerid][pHelper] >= 1) { arank = "HELPER"; }
                            else { arank = "Virus"; }
                            format(string, sizeof(string), "[%s]: %s s-a teleportat la DMW.", arank,sendername);
                            SendHelperMessage(COLOR_YELLOW, string);
                            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 s-a teleportat la DMW.",d,m,y,h,mi,s,sendername);
                            AdminActivity(string);
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "[server]: Ne pare rãu,dar nu esti autorizat sã folosesti aceastã comandã !");
                            return 1;
                        }
                         return 1;
                    }
                    if(strcmp(x_nr,"lv",true) == 0)
                    {
                        if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 3)
                        {
                            if (GetPlayerState(playerid) == 2)
                            {
                                new tmpcar = GetPlayerVehicleID(playerid);
                                SetVehiclePos(tmpcar, 1699.2, 1435.1, 10.7);
                                TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                            }
                            else
                            {
                                SetPlayerPos(playerid, 1699.2,1435.1, 10.7);
                            }
                            SetPlayerInterior(playerid,0);
                            PlayerInfo[playerid][pInt] = 0;
                            SetPlayerVirtualWorld(playerid, 0);
                            PlayerInfo[playerid][pVirWorld] = 0;
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            new arank[64];
                            if(PlayerInfo[playerid][pAdmin] >= 1) { arank = "Admin"; }
                            else if(PlayerInfo[playerid][pHelper] >= 1) { arank = "HELPER"; }
                            else { arank = "Virus"; }
                            format(string, sizeof(string), "[%s] %s s-a teleportat in LV.", arank,sendername);
                            SendHelperMessage(COLOR_YELLOW, string);
                            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 s-a teleportat in LV.",d,m,y,h,mi,s,sendername);
                            AdminActivity(string);
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "[server]: Ne pare rãu,dar nu esti autorizat sã folosesti aceastã comandã !");
                            return 1;
                        }
                         return 1;
                    }
                    if(strcmp(x_nr,"sf",true) == 0)
                     {
                        if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 3)
                        {
                            if (GetPlayerState(playerid) == 2)
                            {
                                new tmpcar = GetPlayerVehicleID(playerid);
                                SetVehiclePos(tmpcar, -1417.0,-295.8,14.1);
                                TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                            }
                            else
                            {
                                SetPlayerPos(playerid, -1417.0,-295.8,14.1);
                            }
                            SetPlayerInterior(playerid,0);
                            PlayerInfo[playerid][pInt] = 0;
                            SetPlayerVirtualWorld(playerid, 0);
                            PlayerInfo[playerid][pVirWorld] = 0;
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            new arank[64];
                            if(PlayerInfo[playerid][pAdmin] >= 1) { arank = "Admin"; }
                            else if(PlayerInfo[playerid][pHelper] >= 1) { arank = "HELPER"; }
                            else { arank = "Virus"; }
                            format(string, sizeof(string), "[%s]: %s s-a teleportat in SF.", arank,sendername);
                            SendHelperMessage(COLOR_YELLOW, string);
                            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 s-a teleportat in SF.",d,m,y,h,mi,s,sendername);
                            AdminActivity(string);
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "[server]: Ne pare rãu,dar nu esti autorizat sã folosesti aceastã comandã !");
                            return 1;
                        }
                        return 1;
                    }
                    if(strcmp(x_nr,"car",true) == 0)
                     {
                        tmp = strtok(cmdtext, idx);
                        if(!strlen(tmp))
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "{00A1FF}USAGE{FFFFFF}: /goto car [carid]");
                            return 1;
                        }
                        new testcar = strval(tmp);
                        if (PlayerInfo[playerid][pAdmin] >= 1)
                        {
                            new Float:cwx2,Float:cwy2,Float:cwz2;
                            GetVehiclePos(testcar, cwx2, cwy2, cwz2);
                            new tmpcar = GetPlayerVehicleID(playerid);
                            SetPlayerPos(playerid, cwx2, cwy2, cwz2);
                            PlayerInfo[playerid][pVirWorld] = GetVehicleVirtualWorld(tmpcar);
                            SetPlayerVirtualWorld(playerid,GetVehicleVirtualWorld(tmpcar));
                            SetPlayerInterior(playerid,0);
                            PlayerInfo[playerid][pInt] = 0;
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "[Admin]: %s s-a teleportat la masina [%d].", sendername,testcar);
                            ABroadCast(COLOR_YELLOW,string,1);
                            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 s-a teleportat la masina [%d].",d,m,y,h,mi,s,sendername,testcar);
                            AdminActivity(string);
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "[server]: Ne pare rãu,dar nu esti autorizat sã folosesti aceastã comandã !");
                            return 1;
                        }
                        return 1;
                    }
                    if(strcmp(x_nr,"ad",true) == 0)
                     {
                        if(PlayerInfo[playerid][pAdmin] >= 1)
                        {
                            if (GetPlayerState(playerid) == 2)
                            {
                                new tmpcar = GetPlayerVehicleID(playerid);
                                SetVehiclePos(tmpcar, 840.526611, -1031.174072, 25.850427);
                                TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                            }
                            else
                            {
                                SetPlayerPos(playerid, 840.526611, -1031.174072, 25.850427);
                            }
                            SetPlayerInterior(playerid,0);
                            PlayerInfo[playerid][pInt] = 0;
                            SetPlayerVirtualWorld(playerid, 0);
                            PlayerInfo[playerid][pVirWorld] = 0;
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "[Admin]: %s s-a teleportat la AD.", sendername);
                            ABroadCast(COLOR_YELLOW,string,1);
                            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 s-a teleportat la AD.",d,m,y,h,mi,s,sendername);
                            AdminActivity(string);
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "[server]: Ne pare rãu,dar nu esti autorizat sã folosesti aceastã comandã !");
                            return 1;
                        }
                        return 1;
                    }
                    if(strcmp(x_nr,"race",true) == 0)
                     {
                        if (PlayerInfo[playerid][pAdmin] >= 1)
                        {
                            new tmpcar = GetPlayerVehicleID(playerid);
                            if (GetPlayerState(playerid) == 2)
                            {
                                SetVehiclePos(tmpcar, -1435.75, -652.664, 1054.94);
                            }
                            else
                            {
                                SetPlayerPos(playerid, -1435.75, -652.664, 1054.94);
                            }
                            SetPlayerInterior(playerid,4);
                            PlayerInfo[playerid][pInt] = 4;
                            SetPlayerVirtualWorld(playerid, 123);
                            PlayerInfo[playerid][pVirWorld] = 123;
                            LinkVehicleToInterior(tmpcar, GetPlayerInterior(playerid));
                            SetVehicleVirtualWorld(tmpcar, GetPlayerVirtualWorld(playerid));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "[Admin]: %s s-a teleportat in Arena Curselor.", sendername);
                            ABroadCast(COLOR_YELLOW,string,1);
                            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 s-a teleportat in Arena Curselor.",d,m,y,h,mi,s,sendername);
                            AdminActivity(string);
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "[server]: Ne pare rãu,dar nu esti autorizat sã folosesti aceastã comandã !");
                            return 1;
                        }
                        return 1;
                    }
                    if(strcmp(x_nr,"race2",true) == 0)
                     {
                        if (PlayerInfo[playerid][pAdmin] >= 1)
                        {
                            new tmpcar = GetPlayerVehicleID(playerid);
                            if (GetPlayerState(playerid) == 2)
                            {
                                SetVehiclePos(tmpcar, -1398.065307,-217.028900,1051.115844);
                            }
                            else
                            {
                                SetPlayerPos(playerid, -1398.065307,-217.028900,1051.115844);
                            }
                            SetPlayerInterior(playerid,7);
                            PlayerInfo[playerid][pInt] = 7;
                            SetPlayerVirtualWorld(playerid, 123);
                            PlayerInfo[playerid][pVirWorld] = 123;
                            LinkVehicleToInterior(tmpcar, GetPlayerInterior(playerid));
                            SetVehicleVirtualWorld(tmpcar, GetPlayerVirtualWorld(playerid));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "[Admin]: %s s-a teleportat in Arena Curselor.", sendername);
                            ABroadCast(COLOR_YELLOW,string,1);
                            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 s-a teleportat in Arena Curselor.",d,m,y,h,mi,s,sendername);
                            AdminActivity(string);
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "[server]: Ne pare rãu,dar nu esti autorizat sã folosesti aceastã comandã !");
                            return 1;
                        }
                        return 1;
                    }
                    if(strcmp(x_nr,"teren",true) == 0)
                     {
                        if(PlayerInfo[playerid][pAdmin] >= 1)
                        {
                            SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);
                            SetPlayerInterior(playerid,10);
                            PlayerInfo[playerid][pInt] = 10;
                            PlayerInfo[playerid][pVirWorld] = 123;
                            SetPlayerVirtualWorld(playerid,123);
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "[Admin]: %s s-a teleportat pe Teren.", sendername);
                            ABroadCast(COLOR_YELLOW,string,1);
                            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 s-a teleportat pe Teren.",d,m,y,h,mi,s,sendername);
                            AdminActivity(string);
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "[server]: Ne pare rãu,dar nu esti autorizat sã folosesti aceastã comandã !");
                            return 1;
                        }
                        return 1;
                    }
                    if(strcmp(x_nr,"hotel",true) == 0 || strcmp(x_nr,"hot",true) == 0)
                     {
                        if(PlayerInfo[playerid][pAdmin] == 1340)
                        {
                            if (GetPlayerState(playerid) == 2)
                            {
                                new tmpcar = GetPlayerVehicleID(playerid);
                                SetVehiclePos(tmpcar, 2636.492187, 2329.948974, 10.921875);
                                TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                            }
                            else
                            {
                                SetPlayerPos(playerid, 2636.492187, 2329.948974, 10.921875);
                            }
                            GameTextForPlayer(playerid, "~w~Welcome owner buycar",5000,1);
                            SetPlayerInterior(playerid,0);
                            PlayerInfo[playerid][pInt] = 0;
                            SetPlayerVirtualWorld(playerid, 0);
                            PlayerInfo[playerid][pVirWorld] = 0;
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "[Admin]: %s s-a teleportat la Hotelul Adminilor.", sendername);
                            ABroadCast(COLOR_LIGHTBLUE,string,1340);
                            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 s-a teleportat la Hotelul Adminilor.",d,m,y,h,mi,s,sendername);
                            AdminActivity(string);
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "[server]: Ne pare rãu,dar nu esti autorizat sã folosesti aceastã comandã !");
                            return 1;
                        }
                        return 1;
                    }
                    if(strcmp(x_nr,"bc",true) == 0)
                     {
                        if(PlayerInfo[playerid][pAdmin] >= 1)
                        {
                            if (GetPlayerState(playerid) == 2)
                            {
                                new tmpcar = GetPlayerVehicleID(playerid);
                                SetVehiclePos(tmpcar, 533.3819,-1291.8124,17.2422);
                                TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                            }
                            else
                            {
                                SetPlayerPos(playerid, 533.3819,-1291.8124,17.2422);
                            }
                            SetPlayerInterior(playerid,0);
                            PlayerInfo[playerid][pInt] = 0;
                            SetPlayerVirtualWorld(playerid, 0);
                            PlayerInfo[playerid][pVirWorld] = 0;
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "[Admin]: %s s-a teleportat la BuyCar.", sendername);
                            ABroadCast(COLOR_YELLOW,string,1);
                            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 s-a teleportat la BuyCar.",d,m,y,h,mi,s,sendername);
                            AdminActivity(string);
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "[server]: Ne pare rãu,dar nu esti autorizat sã folosesti aceastã comandã !");
                            return 1;
                        }
                        return 1;
                    }
                    if(strcmp(x_nr,"bp",true) == 0)
                     {
                        if(PlayerInfo[playerid][pAdmin] >= 1)
                        {
                            if (GetPlayerState(playerid) == 2)
                            {
                                new tmpcar = GetPlayerVehicleID(playerid);
                                SetVehiclePos(tmpcar, 1617.5712,-2637.0317,13.5469);
                                TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                            }
                            else
                            {
                                SetPlayerPos(playerid, 1617.5712,-2637.0317,13.5469);
                            }
                            SetPlayerInterior(playerid,0);
                            PlayerInfo[playerid][pInt] = 0;
                            SetPlayerVirtualWorld(playerid, 0);
                            PlayerInfo[playerid][pVirWorld] = 0;
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "[Admin]: %s s-a teleportat la Plane Shop.", sendername);
                            ABroadCast(COLOR_YELLOW,string,1);
                            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 s-a teleportat la Plane Shop.",d,m,y,h,mi,s,sendername);
                            AdminActivity(string);
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "[server]: Ne pare rãu,dar nu esti autorizat sã folosesti aceastã comandã !");
                        }
                        return 1;
                    }
                    if(strcmp(x_nr,"bb",true) == 0)
                     {
                         if(PlayerInfo[playerid][pAdmin] >= 1)
                        {
                            if (GetPlayerState(playerid) == 2)
                            {
                                new tmpcar = GetPlayerVehicleID(playerid);
                                SetVehiclePos(tmpcar, 183.974517,-1920.751220,1.203125);
                                TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                            }
                            else
                            {
                                SetPlayerPos(playerid, 183.974517,-1920.751220,1.203125);
                            }
                            SetPlayerInterior(playerid,0);
                            PlayerInfo[playerid][pInt] = 0;
                            SetPlayerVirtualWorld(playerid, 0);
                            PlayerInfo[playerid][pVirWorld] = 0;
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "[Admin]: %s s-a teleportat la BuyBoat I.", sendername);
                            ABroadCast(COLOR_YELLOW,string,1);
                            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 s-a teleportat la BuyBoat I.",d,m,y,h,mi,s,sendername);
                            AdminActivity(string);
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "[server]: Ne pare rãu,dar nu esti autorizat sã folosesti aceastã comandã !");
                            return 1;
                        }
                        return 1;
                    }
                    if(strcmp(x_nr,"vip",true) == 0)
                     {
                        if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
                        {
                            SetPlayerPos(playerid, 1481.3234,-1755.2032,29.7559);
                            SetPlayerInterior(playerid,0);
                            PlayerInfo[playerid][pInt] = 0;
                            SetPlayerVirtualWorld(playerid, 1);
                            PlayerInfo[playerid][pVirWorld] = 1;
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            new arank[64];
                            if(PlayerInfo[playerid][pAdmin] >= 1) { arank = "Admin"; }
                            else if(PlayerInfo[playerid][pHelper] >= 1) { arank = "HELPER"; }
                            else { arank = "Virus"; }
                            format(string, sizeof(string), "[%s]: %s s-a teleportat in Apartamentul Adminilor.", arank,sendername);
                            SendHelperMessage(COLOR_YELLOW, string);
                            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 s-a teleportat in Apartamentul Adminilor.",d,m,y,h,mi,s,sendername);
                            AdminActivity(string);
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "[server]: Ne pare rãu,dar nu esti autorizat sã folosesti aceastã comandã !");
                            return 1;
                        }
                        return 1;
                    }
                    if(strcmp(x_nr,"p",true) == 0 || strcmp(x_nr,"player",true) == 0)
                     {
                        tmp = strtok(cmdtext, idx);
                        if(!strlen(tmp))
                        {
                            SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /goto (p)player [playerid/PartOfName]");
                            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][pHelper] >= 1)
                                {
                                     if(PlayerInfo[playerid][pAdmin] < 1339)
                                    {
                                        if(AdminDuty[playerid] == 0 && HelperDuty[playerid] == 0)
                                        {
                                            SendClientMessage(playerid,COLOR_GREY,"[server]: Trebuie sa fii OnDuty !");
                                            return 1;
                                         }
                                    }
                                    if(PlayerInfo[plo][pAdmin] > PlayerInfo[playerid][pAdmin])
                                    {
                                        SendClientMessage(playerid, COLOR_GRAD1,"[server]: Nu te poti teleporta la admini mai mari in grad ca tine !");
                                        return 1;
                                    }
                                    if(Spectate[playerid] != 255)
                                    {
                                        Spectate[playerid] = 256;
                                    }
                                    GetPlayerPos(plo, plocx, plocy, plocz);
                                    if(GetPlayerInterior(plo) > 0)
                                    {
                                        SetPlayerInterior(playerid,GetPlayerInterior(plo));
                                        PlayerInfo[playerid][pInt] = GetPlayerInterior(plo);
                                        PlayerInfo[playerid][pVirWorld] = GetPlayerVirtualWorld(plo);
                                        SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(plo));
                                    }
                                    if(GetPlayerInterior(plo) == 0)
                                    {
                                        SetPlayerInterior(playerid,0);
                                        PlayerInfo[playerid][pInt] = 0;
                                        PlayerInfo[playerid][pVirWorld] = 0;
                                        SetPlayerVirtualWorld(playerid,0);
                                    }
                                    if(plocz > 530.0 && GetPlayerInterior(plo) == 0) //the highest land point in sa = 526.8
                                    {
                                        SetPlayerInterior(playerid,1);
                                        PlayerInfo[playerid][pInt] = 1;
                                        PlayerInfo[playerid][pVirWorld] = 1;
                                        SetPlayerVirtualWorld(playerid,1);
                                    }
                                    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
                                    {
                                        SetPlayerPos(playerid,plocx,plocy+2, plocz);
                                    }
                                    GetPlayerName(playerid, sendername, sizeof(sendername));
                                    GetPlayerName(plo, playername, sizeof(playername));
                                    new arank[64];
                                    if(PlayerInfo[playerid][pAdmin] >= 1) { arank = "Admin"; }
                                    else if(PlayerInfo[playerid][pHelper] >= 1) { arank = "HELPER"; }
                                    else { arank = "Virus"; }
                                    format(string, sizeof(string), "[%s]: %s s-a teleportat la playerul %s.", arank,sendername,playername);
                                    SendHelperMessage(COLOR_YELLOW, string);
                                    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 s-a teleportat la playerul %s.",d,m,y,h,mi,s,sendername,playername);
                                    AdminActivity(string);
                                }
                                else
                                {
                                    SendClientMessage(playerid, COLOR_GRAD1, "[server]: Ne pare rãu,dar nu esti autorizat sã folosesti aceastã comandã !");
                                    return 1;
                                }
                            }
                        }
                        else
                        {
                            format(string, sizeof(string), "[server]: %d is not an active player.", plo);
                            SendClientMessage(playerid, COLOR_GRAD1, string);
                        }
                        return 1;
                    }
            }
            return 1;
        }

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.