Szerző Téma: Kód átírás  (Megtekintve 525 alkalommal)

Nem elérhető stamp

Kód átírás
« Dátum: 2013. március 28. - 18:03:03 »
0 Show voters
Hali valaki ezt át tudja írni h ne /jarmu kelljen beírni hanem /v-t
 
/*
Jármû Lekérõ By: SpeAroX V1.1
A filterscript /jarmu parancsal használható!
Ha a szervereden kavarodás lenne dialogok között akkor a dialog id-t cseréld egy nem használt id-re! (11. Sor)
A Megadott dialog id tõl számítva a script még +13 dialogot foglal el. Tehát összesen 14 dialog lesz foglalt
Példa: ha a jarmudialog 1 akkor a foglalt dialogok 1-13
*/
#include <a_samp>
#define jarmudialog 1
new jarmu[MAX_PLAYERS];
public OnFilterScriptInit()
{
print(\"\\n----------------------------------\");
print(\"      Jármû Lekérõ By: SpeAroX      \");
print(\"----------------------------------\\n\");
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(vehicleid == jarmu[playerid])
{
       DestroyVehicle(jarmu[playerid]);
}
    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp(\"/jarmu\", cmdtext, true, 10) == 0)
   {
              ShowPlayerDialog(playerid, jarmudialog, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Légi Jármûvek\\nVízi Jármûvek\\nSzárazföldi Jármûvek\\nEgyéb Jármûvek\",\"Választ\", \"Kilép\");
               return 1;
   }
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == jarmudialog)
{
if(!response)
{
   return 1;
}
if(listitem == 0)
   {
          ShowPlayerDialog(playerid, jarmudialog+1, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Andromada\\nAT-400\\nBeagle\\nCropduster\\nDodo\\nHydra\\nNevada\\nRustler\\nShamal\\nSkimmer\\nStuntplane\\nCargobob\\nHunter\\nLeviathan\\nMaverick\\nNews Maverick\\nPolice Maverick\\nRaindance\\nSeasparrow\\nSparrow\",\"Választ\", \"Kilép\");
   }
if(listitem == 1)
           {
                  ShowPlayerDialog(playerid, jarmudialog+2, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Coastguard\\nDinghy\\nJetmax\\nLaunch\\nMarquis\\nPredator\\nReefer\\nSpeeder\\nSquallo\\nTropic\",\"Választ\", \"Kilép\");
           }
if(listitem == 2)
            {
                    ShowPlayerDialog(playerid, jarmudialog+3, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Motorok\\nCabrio\\nIpari\\nLowriders\\nOff Road\\nSzolgálati\\nSzalon\\nSport\\nKombik\",\"Választ\", \"Kilép\");
            }
if(listitem == 3)
            {
                    ShowPlayerDialog(playerid, jarmudialog+13, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Dumper\\nStretch\\nMr Whoopee\\nSecuricar\\nHotknife\\nRC Bandit\\nRomero\\nTram\\nCaddy\\nRC Baron\\nRC Raider\\nCamper\\nBaggage\\nDozer\\nRC Goblin\\nJourney\\nTowtruck\\nForklift\\nCombine Harvester\\nBrownstreak (Train)\\nFreight (Train)\\nVortex\\nHustler\\nRC Tiger\\nKart\\nMower\\nSweeper\\nTug\\nHotdog\",\"Választ\", \"Kilép\");
            }
}
if(dialogid == jarmudialog+1)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(592, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(577, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(511, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(512, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(593, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 5)
   {
         jarmu[playerid] = CreateVehicle(520, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 6)
   {
         jarmu[playerid] = CreateVehicle(553, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 7)
   {
         jarmu[playerid] = CreateVehicle(476, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 8)
   {
         jarmu[playerid] = CreateVehicle(519, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 9)
   {
         jarmu[playerid] = CreateVehicle(460, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 10)
   {
         jarmu[playerid] = CreateVehicle(513, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 11)
   {
         jarmu[playerid] = CreateVehicle(548, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 12)
   {
         jarmu[playerid] = CreateVehicle(425, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 13)
   {
         jarmu[playerid] = CreateVehicle(417, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 14)
   {
         jarmu[playerid] = CreateVehicle(487, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 15)
   {
         jarmu[playerid] = CreateVehicle(488, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 16)
   {
         jarmu[playerid] = CreateVehicle(497, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 17)
   {
         jarmu[playerid] = CreateVehicle(563, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 18)
   {
         jarmu[playerid] = CreateVehicle(447, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 19)
   {
         jarmu[playerid] = CreateVehicle(469, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+2)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(472, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(473, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(493, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(595, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(484, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 5)
   {
         jarmu[playerid] = CreateVehicle(430, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 6)
   {
         jarmu[playerid] = CreateVehicle(453, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 7)
   {
         jarmu[playerid] = CreateVehicle(452, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 8)
   {
         jarmu[playerid] = CreateVehicle(446, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 9)
   {
         jarmu[playerid] = CreateVehicle(454, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+3)
{
if(!response)
{
   return 1;
}
if(listitem == 0)
   {
                    ShowPlayerDialog(playerid, jarmudialog+4, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Bike\\nBMX\\nMountain Bike\\nFaggio\\nPizzaboy\\nBF-400\\nNRG-500\\nPCJ-600\\nFCR-900\\nCop Bike (HPV-1000)\\nFreeway\\nWayfarer\\nSanchez\\nQuad\",\"Választ\", \"Kilép\");
   }
if(listitem == 1)
           {
                    ShowPlayerDialog(playerid, jarmudialog+5, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Comet\\nFeltzer\\nStallion\\nWindsor\",\"Választ\", \"Kilép\");
           }
if(listitem == 2)
            {
                    ShowPlayerDialog(playerid, jarmudialog+6, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Benson\\nBobcat\\nBurrito\\nBoxville\\nBoxburg\\nCement Truck\\nDFT-30\\nFlatbed\\nLinerunner\\nMule\\nNewsvan\\nPacker\\nPetrol Tanker\\nPicador\\nPony\\nRoadtrain\\nRumpo\\nSadler\\nSadler Shit\\nTopfun\\nTractor\\nTrashmaster\\nUtility Van\\nWalton\\nYankee\\nYosemite\",\"Választ\", \"Kilép\");
            }
if(listitem == 3)
            {
                    ShowPlayerDialog(playerid, jarmudialog+7, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Blade\\nBroadway\\nRemington\\nSavanna\\nSlamvan\\nTahoma\\nTornado\\nVoodoo\",\"Választ\", \"Kilép\");
            }
if(listitem == 4)
            {
                    ShowPlayerDialog(playerid, jarmudialog+8, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Bandito\\nBF Injection\\nDune\\nHuntley\\nLandstalker\\nMesa\\nMonster\\nMonster A\\nMonster B\\nPatriot\\nRancher\\nSandking\",\"Választ\", \"Kilép\");
            }
if(listitem == 5)
            {
                    ShowPlayerDialog(playerid, jarmudialog+9, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Ambulance\\nBarracks\\nBus\\nCabbie\\nCoach\\nCop Bike (HPV-1000)\\nEnforcer\\nFBI Rancher\\nFBI Truck\\nFiretruck\\nFiretruck LA\\nPolice Car (LSPD)\\nPolice Car (LVPD)\\nPolice Car (SFPD)\\nRanger\\nRhino\\nS.W.A.T.\\nTaxi\",\"Választ\", \"Kilép\");
            }
if(listitem == 6)
            {
                    ShowPlayerDialog(playerid, jarmudialog+10, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Admiral\\nBloodring Banger\\nBravura\\nBuccaneer\\nCadrona\\nClover\\nElegant\\nElegy\\nEmperor\\nEsperanto\\nFortune\\nGlendale Shit\\nGlendale\\nGreenwood\\nHermes\\nIntruder\\nMajestic\\nManana\\nMerit\\nNebula\\nOceanic\\nPremier\\nPrevion\\nPrimo\\nSentinel\\nStafford\\nSultan\\nSunrise\\nTampa\\nVincent\\nVirgo\\nWillard\\nWashington\",\"Választ\", \"Kilép\");
            }
if(listitem == 7)
            {
                    ShowPlayerDialog(playerid, jarmudialog+11, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Alpha\\nBanshee\\nBlista Compact\\nBuffalo\\nBullet\\nCheetah\\nClub\\nEuros\\nFlash\\nHotring Racer 1\\nHotring Racer 2\\nHotring Racer 3\\nInfernus\\nJester\\nPhoenix\\nSabre\\nSuper GT\\nTurismo\\nUranus\\nZR-350\",\"Választ\", \"Kilép\");
            }
if(listitem == 8)
            {
                    ShowPlayerDialog(playerid, jarmudialog+12, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Moonbeam\\nPerenniel\\nRegina\\nSolair\\nStratum\",\"Választ\", \"Kilép\");
            }
}
if(dialogid == jarmudialog+4)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(509, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(481, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(510, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(462, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(448, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 5)
   {
         jarmu[playerid] = CreateVehicle(581, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 6)
   {
         jarmu[playerid] = CreateVehicle(522, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 7)
   {
         jarmu[playerid] = CreateVehicle(461, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 8)
   {
         jarmu[playerid] = CreateVehicle(521, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 9)
   {
         jarmu[playerid] = CreateVehicle(523, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 10)
   {
         jarmu[playerid] = CreateVehicle(463, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 11)
   {
         jarmu[playerid] = CreateVehicle(586, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 12)
   {
         jarmu[playerid] = CreateVehicle(468, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 13)
   {
         jarmu[playerid] = CreateVehicle(471, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+5)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(480, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(533, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(439, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(555, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+6)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(499, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(422, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(482, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(498, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(609, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 5)
   {
         jarmu[playerid] = CreateVehicle(524, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 6)
   {
         jarmu[playerid] = CreateVehicle(578, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 7)
   {
         jarmu[playerid] = CreateVehicle(455, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 8)
   {
         jarmu[playerid] = CreateVehicle(403, X,Y,Z, 0.0, 1, 1, 6000);
            }
if(listitem == 9)
   {
         jarmu[playerid] = CreateVehicle(414, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 10)
   {
         jarmu[playerid] = CreateVehicle(582, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 11)
   {
         jarmu[playerid] = CreateVehicle(443, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 12)
   {
         jarmu[playerid] = CreateVehicle(514, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 13)
   {
         jarmu[playerid] = CreateVehicle(600, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 14)
   {
         jarmu[playerid] = CreateVehicle(413, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 15)
   {
         jarmu[playerid] = CreateVehicle(515, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 16)
   {
         jarmu[playerid] = CreateVehicle(440, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 17)
   {
         jarmu[playerid] = CreateVehicle(543, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 18)
   {
         jarmu[playerid] = CreateVehicle(605, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 19)
   {
         jarmu[playerid] = CreateVehicle(459, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 20)
   {
         jarmu[playerid] = CreateVehicle(531, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 21)
   {
         jarmu[playerid] = CreateVehicle(408, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 22)
   {
         jarmu[playerid] = CreateVehicle(552, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 23)
   {
         jarmu[playerid] = CreateVehicle(478, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 24)
   {
         jarmu[playerid] = CreateVehicle(456, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 25)
   {
         jarmu[playerid] = CreateVehicle(554, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+7)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(536, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(575, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(534, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(567, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(535, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 5)
   {
         jarmu[playerid] = CreateVehicle(566, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 6)
   {
         jarmu[playerid] = CreateVehicle(576, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 7)
   {
         jarmu[playerid] = CreateVehicle(412, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+8)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(568, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(424, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(573, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(579, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(400, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 5)
   {
         jarmu[playerid] = CreateVehicle(500, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 6)
   {
         jarmu[playerid] = CreateVehicle(444, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 7)
   {
         jarmu[playerid] = CreateVehicle(556, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 8)
   {
         jarmu[playerid] = CreateVehicle(557, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 9)
   {
         jarmu[playerid] = CreateVehicle(470, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 10)
   {
         jarmu[playerid] = CreateVehicle(489, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 11)
   {
         jarmu[playerid] = CreateVehicle(495, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+9)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(416, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(433, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(431, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(438, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(437, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 5)
   {
         jarmu[playerid] = CreateVehicle(523, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 6)
   {
         jarmu[playerid] = CreateVehicle(427, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 7)
   {
         jarmu[playerid] = CreateVehicle(490, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 8)
   {
         jarmu[playerid] = CreateVehicle(528, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 9)
   {
         jarmu[playerid] = CreateVehicle(407, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 10)
   {
         jarmu[playerid] = CreateVehicle(544, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 11)
   {
         jarmu[playerid] = CreateVehicle(596, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 12)
   {
         jarmu[playerid] = CreateVehicle(598, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 13)
   {
         jarmu[playerid] = CreateVehicle(597, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 14)
   {
         jarmu[playerid] = CreateVehicle(599, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 15)
   {
         jarmu[playerid] = CreateVehicle(432, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 16)
   {
         jarmu[playerid] = CreateVehicle(601, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 17)
   {
         jarmu[playerid] = CreateVehicle(420, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+10)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(445, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(504, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(401, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(518, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(527, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 5)
   {
         jarmu[playerid] = CreateVehicle(542, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 6)
   {
         jarmu[playerid] = CreateVehicle(507, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 7)
   {
         jarmu[playerid] = CreateVehicle(562, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 8)
   {
         jarmu[playerid] = CreateVehicle(585, X,Y,Z, 0.0, 1, 1, 6000);
            }
if(listitem == 9)
   {
         jarmu[playerid] = CreateVehicle(419, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 10)
   {
         jarmu[playerid] = CreateVehicle(526, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 11)
   {
         jarmu[playerid] = CreateVehicle(604, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 12)
   {
         jarmu[playerid] = CreateVehicle(466, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 13)
   {
         jarmu[playerid] = CreateVehicle(492, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 14)
   {
         jarmu[playerid] = CreateVehicle(474, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 15)
   {
         jarmu[playerid] = CreateVehicle(546, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 16)
   {
         jarmu[playerid] = CreateVehicle(517, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 17)
   {
         jarmu[playerid] = CreateVehicle(410, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 18)
   {
         jarmu[playerid] = CreateVehicle(551, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 19)
   {
         jarmu[playerid] = CreateVehicle(516, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 20)
   {
         jarmu[playerid] = CreateVehicle(467, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 21)
   {
         jarmu[playerid] = CreateVehicle(426, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 22)
   {
         jarmu[playerid] = CreateVehicle(436, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 23)
   {
         jarmu[playerid] = CreateVehicle(547, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 24)
   {
         jarmu[playerid] = CreateVehicle(405, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 25)
   {
         jarmu[playerid] = CreateVehicle(580, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 26)
   {
         jarmu[playerid] = CreateVehicle(560, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 27)
   {
         jarmu[playerid] = CreateVehicle(550, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 28)
   {
         jarmu[playerid] = CreateVehicle(549, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 29)
   {
         jarmu[playerid] = CreateVehicle(540, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 30)
   {
         jarmu[playerid] = CreateVehicle(491, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 31)
   {
         jarmu[playerid] = CreateVehicle(529, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 32)
   {
         jarmu[playerid] = CreateVehicle(421, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+11)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
    {
         jarmu[playerid] = CreateVehicle(602, X,Y,Z, 0.0, 1, 1, 6000);
    }
if(listitem == 1)
    {
         jarmu[playerid] = CreateVehicle(429, X,Y,Z, 0.0, 1, 1, 6000);
    }
if(listitem == 2)
    {
         jarmu[playerid] = CreateVehicle(496, X,Y,Z, 0.0, 1, 1, 6000);
    }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(402, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(541, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 5)
   {
         jarmu[playerid] = CreateVehicle(415, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 6)
   {
         jarmu[playerid] = CreateVehicle(589, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 7)
   {
         jarmu[playerid] = CreateVehicle(587, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 8)
   {
         jarmu[playerid] = CreateVehicle(565, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 9)
   {
         jarmu[playerid] = CreateVehicle(494, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 10)
   {
         jarmu[playerid] = CreateVehicle(502, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 11)
   {
         jarmu[playerid] = CreateVehicle(503, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 12)
   {
         jarmu[playerid] = CreateVehicle(411, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 13)
   {
         jarmu[playerid] = CreateVehicle(559, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 14)
   {
         jarmu[playerid] = CreateVehicle(603, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 15)
   {
         jarmu[playerid] = CreateVehicle(475, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 16)
   {
         jarmu[playerid] = CreateVehicle(506, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 17)
   {
         jarmu[playerid] = CreateVehicle(451, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 18)
   {
         jarmu[playerid] = CreateVehicle(558, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 19)
   {
         jarmu[playerid] = CreateVehicle(477, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+12)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(418, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(404, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(479, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(458, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(561, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+13)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(406, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(409, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(423, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(428, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(434, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 5)
   {
         jarmu[playerid] = CreateVehicle(441, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 6)
   {
         jarmu[playerid] = CreateVehicle(442, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 7)
   {
         jarmu[playerid] = CreateVehicle(449, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 8)
   {
         jarmu[playerid] = CreateVehicle(457, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 9)
   {
         jarmu[playerid] = CreateVehicle(464, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 10)
   {
         jarmu[playerid] = CreateVehicle(465, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 11)
   {
         jarmu[playerid] = CreateVehicle(483, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 12)
   {
         jarmu[playerid] = CreateVehicle(485, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 13)
   {
         jarmu[playerid] = CreateVehicle(486, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 14)
   {
         jarmu[playerid] = CreateVehicle(501, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 15)
   {
         jarmu[playerid] = CreateVehicle(508, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 16)
   {
         jarmu[playerid] = CreateVehicle(525, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 17)
   {
         jarmu[playerid] = CreateVehicle(530, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 18)
   {
         jarmu[playerid] = CreateVehicle(532, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 19)
   {
         jarmu[playerid] = CreateVehicle(537, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 20)
   {
         jarmu[playerid] = CreateVehicle(538, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 21)
   {
         jarmu[playerid] = CreateVehicle(539, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 22)
   {
         jarmu[playerid] = CreateVehicle(545, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 23)
   {
         jarmu[playerid] = CreateVehicle(564, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 24)
   {
         jarmu[playerid] = CreateVehicle(571, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 25)
   {
         jarmu[playerid] = CreateVehicle(572, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 26)
   {
         jarmu[playerid] = CreateVehicle(574, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 27)
   {
         jarmu[playerid] = CreateVehicle(583, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 28)
   {
         jarmu[playerid] = CreateVehicle(588, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
    return 0;
}
« Utoljára szerkesztve: 2013. március 28. - 18:15:04 írta stamp »

Kód átírás
« Válasz #1 Dátum: 2013. március 28. - 18:24:44 »
0 Show voters
Keresd meg ez a sort
public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp(\"/jarmu\", cmdtext, true, 10) == 0)
                        {
                        ShowPlayerDialog(playerid, jarmudialog, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Légi Jármûvek\\nVízi Jármûvek\\nSzárazföldi Jármûvek\\nEgyéb Jármûvek\",\"Választ\", \"Kilép\");
                return 1;
                        }
                return 0;
}

 
És írd át erre
 
public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp(\"/v\", cmdtext, true, 10) == 0)
                        {
                        ShowPlayerDialog(playerid, jarmudialog, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Légi Jármûvek\\nVízi Jármûvek\\nSzárazföldi Jármûvek\\nEgyéb Jármûvek\",\"Választ\", \"Kilép\");
                return 1;
                        }
                return 0;
}

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal