[POMOC] /exit komanda ne radi

Započeo Ante_Dracar aka Lopa, Avgust 20, 2010, 17:42:19 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

dakle imam cromafia gm i kad sam ga skinuo ja mislim da su normalno radili svi enter/exit-i ali sada nerade i sada ja znam napravit komandu za enter i exit ali imam problem,sad npr za pd      /PDEXIT   za fbi    /FBIEXIT    za hitman       /HITMANEXIT    ali mene zanima kako da sve to bude u 1 komandi   /exit ...

hvala unaprjed.
Poslednja Izmena: Avgust 21, 2010, 20:42:45 POSLE PODNE od [BP] AleeN ba! ^^

U komandi provjeravas dok igrac upise komandu dali je na odreÄ'enoj poziciji,ako je nek ga porta, a ako nije onda ide gledati ostale kordinate.

PRIMJER:
if(/*provjera kordinata*/)
{
      //port
}
else if(/*provjera kordinata*/)
{
      //port
}
else if(/*provjera kordinata*/)
{
      //port
}


RESPECT 4 EVER: John, GLC,bAndzi, Nikola, Sop, Zoki, Bruno_Venuti, Mele, Luka P,ExtremePower,Wang(neki kineski frajer)

NAJBOLJI CITATI:
Citat: [GF]Alive poslato Jun 24, 2010, 18:20:19 POSLE PODNE
Paizte ljud mozda je KayLoger! ! !
MOJI RADOVI:
[FS]Trofeji

jeli ovako       






if(strcmp(cmd, "/exit", true) == 0)
   {
       if(IsPlayerConnected(playerid))
      {
         for(new i = 0; i <  sizeof(HouseInfo); i++)
         {
            //printf("House :%d",i);
            if (PlayerToPoint(3, playerid,HouseInfo[hExitx], HouseInfo[hExity], HouseInfo[hExitz]))
            {
               SetPlayerInterior(playerid,0);
               SetPlayerPos(playerid,HouseInfo[hEntrancex],HouseInfo[hEntrancey],HouseInfo[hEntrancez]);
               PlayerInfo[playerid][pInt] = 0;
               PlayerInfo[playerid][pLocal] = 255;
               if(HouseInfo[hHel] == 1)
               {
                  new Float:tempheal;
                  GetPlayerHealth(playerid,tempheal);
                  if(tempheal < 100.0)
                  {
                     SetPlayerHealth(playerid,100.0);
                  }
               }
            }
         }
         for(new i = 0; i <  sizeof(BizzInfo); i++)
         {
            //printf("Bizz :%d",i);
            if (PlayerToPoint(3, playerid,BizzInfo[bExitX], BizzInfo[bExitY], BizzInfo[bExitZ]))
            {
               SetPlayerInterior(playerid,0);
               PlayerInfo[playerid][pInt] = 0;
               SetPlayerPos(playerid,BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ]);
               PlayerInfo[playerid][pLocal] = 255;
            }
         }
         if(GetPlayerVehicleID(playerid) >= 71 && GetPlayerVehicleID(playerid) <= 77)
         {
            TogglePlayerControllable(playerid, 1);
            RemovePlayerFromVehicle(playerid);
         }
         else if (PlayerToPoint(6.0, playerid,387.7978,173.8582,1008.3828))//Gradska vijecnica Exit
         {
             SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,-1494.2909,919.9765,7.1875);
         }
         else if (PlayerToPoint(6.0, playerid,-2477.3301,131.5735,64.9353))//Montana Krov Exit
         {
             SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,-2467.1780,137.1335,35.1719);
         }
         else if (PlayerToPoint(6.0, playerid,2807.6318,-1172.9641,1025.5703))//Montana HQ Exit
         {
             SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,-2457.4578,128.3785,35.1719);
         }
         else if (PlayerToPoint(6.0, playerid,363.4129,-74.5783,1001.5078))//Burger Exit
         {
             SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,-1911.4158,828.9231,35.1719);
         }
         else if (PlayerToPoint(6.0, playerid,365.6730,-10.7132,1001.8516))//Cluckin` Exit
         {
             SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,-1816.3649,617.0126,35.1719);
         }
         else if (PlayerToPoint(6.0, playerid,372.3520,-131.6613,1001.4922))//Pizzeria Exit
         {
             SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,-1807.8591,944.9744,24.8906);
         }
         else if (PlayerToPoint(6.0, playerid,-30.9479,-89.6127,1003.5469))//SF INTERSPAR Exit
         {
             SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,-2442.9116,752.9581,35.1719);
         }
         else if (PlayerToPoint(6.0, playerid,-27.4682,-29.3736,1003.5573))//E-Bay INTERSPAR Exit
         {
             SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,-2491.2778,2363.1719,10.2725);
         }
         else if (PlayerToPoint(6.0, playerid,2306.1265,-16.0863,26.7496))//Banka Exit
         {
             SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,-2352.2698,493.4027,30.8329);
         }
         else if (PlayerToPoint(6.0, playerid,246.783996,63.900199,1003.640625))//SF Police Station Exit
         {
             SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,-1605.6317,711.7258,13.8672);
         }
         else if (PlayerToPoint(6.0, playerid,-2184.2036,658.5449,73.8359))//Cole Krov Exit
         {
             SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,-2184.0737,646.8181,49.4375);
         }
         else if (PlayerToPoint(6.0, playerid,377.1800,-192.6030,1000.6328))//Krafna Exit
         {
             SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,-2767.3848,788.8003,52.7813);
         }
         else if (PlayerToPoint(6.0, playerid,1204.809936,-11.586799,1000.921875))//Strip Club Exit
         {
             SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,-2551.7278,193.7213,6.1910);
         }
         else if (PlayerToPoint(6.0, playerid,-2637.4500,1404.6300,906.4609))//Jizzy`s Exit
         {
             SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,-2624.4346,1412.1604,7.0938);
         }
         else if (PlayerToPoint(6.0, playerid,493.3910,-22.7228,1000.6797))//Bar Exit
         {
             SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,-2478.9011,2318.3538,4.9844);
         }
         else if (PlayerToPoint(6.0, playerid,772.111999,-3.898649,1000.728820))//GYM Exit
         {
             SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,-2269.4573,-155.9437,35.3203);
         }
         else if (PlayerToPoint(6.0, playerid,501.980987,-69.150199,998.757812))//Classic Rock Exit
         {
             SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,-1978.0576,84.7796,27.6889);
         }
         else if (PlayerToPoint(6.0, playerid,1204.809936,13.897239,1000.921875))//Private Room Exit
         {
             SetPlayerInterior(playerid,2);
            SetPlayerPos(playerid,1204.7921,11.9087,1000.9219);
         }
         else if (PlayerToPoint(6.0, playerid,-2229.8777,-116.2453,47.2874))//Ghetto Exit
         {
             SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,-2227.2485,-105.8840,35.3203);
         }
         else if (PlayerToPoint(6.0, playerid,-2444.7986,2254.2188,14.8964))//GSF krov Exit
         {
             SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,-2448.5752,2251.1362,4.9844);
         }
         else if (PlayerToPoint(6.0, playerid,2496.65,-1696.55,1014.74))//GSF HQ Exit
         {
             SetPlayerInterior(playerid,0);
            SetPlayerPos(playerid,-2455.5847,2254.1594,4.9806);
         }
         else if(NoFuel[playerid] == 1)
         {
             TogglePlayerControllable(playerid, 1);
            RemovePlayerFromVehicle(playerid);
            NoFuel[playerid] = 0;
         }
      }
      return 1;
   }

Da tako je,samo preporuka je da koristis IsPlayerInRangeOfPoint.


RESPECT 4 EVER: John, GLC,bAndzi, Nikola, Sop, Zoki, Bruno_Venuti, Mele, Luka P,ExtremePower,Wang(neki kineski frajer)

NAJBOLJI CITATI:
Citat: [GF]Alive poslato Jun 24, 2010, 18:20:19 POSLE PODNE
Paizte ljud mozda je KayLoger! ! !
MOJI RADOVI:
[FS]Trofeji

Ante_Dracar aka Lopa prva opomena za tebe. Ovaj put ću ti ja ispraviti naslov teme, drugi put ću ti je samo obrisati. Znači, naslov ti mora imati prefix [POMOC] ako trebaš pomoć ili [SAVJET] ako trebaš savjet.

Ukoliko su ti pomogli i skontao si Å¡ta si trebao i pitao, javi mi na pm da lockam temu.

Pozdrav,

Alen.
Povratak na balkan-samp  :)  15.01.2013. 
..   


Respect : [BP]HeLoX, Correlli, [CH:FR]Djea, LordShigi, LuKsA, BloodMaster, [H]265