Valaki ezt a Jármû lehívót áttudja írni hogy ha kiszállok másik kocsit hívok elõ akkor eltûnjön amit elõsszõr hívtam elõ
Valaki ezt a Jármû lehívót áttudja írni hogy ha kiszállok másik kocsit hívok elõ akkor eltûnjön amit elõsszõr hívtam elõ
/*
Simple Vehicle Spawner by Jochemd. Feel free to modify it to your wishes as long you don\'t claim it as your own.
Questions? Send me a PM via the SA:MP forum or contact me at www.blueshadows.co.cc --> forum.
Regards, Jochemd */
#include <a_samp>
#define DIALOG_VEHICLE 2
#define DIALOG_VEHICLE_FASTCARS 3
#define DIALOG_VEHICLE_BOATS 4
#define DIALOG_VEHICLE_BIKES 5
#define DIALOG_VEHICLE_PLANES 6
#define DIALOG_VEHICLE_HELICOPTERS 7
#define DIALOG_VEHICLE_SPECIAL 8
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, \"\")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
public OnFilterScriptInit()
{
print(\"\\n---------------------------\");
print(\" Vehicle spawner by HardStyle\");
print(\"---------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
print(\"\\n---------------------------\");
print(\" Vehicle spawner by HardStyle\");
print(\"---------------------------\\n\");
return 1;
}
main()
{
}
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(v,1,cmdtext);
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new Float:vX, Float:vY, Float:vZ;
if(dialogid == DIALOG_VEHICLE && response)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid,DIALOG_VEHICLE_FASTCARS,DIALOG_STYLE_LIST,\".:: Jármû spawn menü - Gyors jármûvek\",\"Alpha\\nBanshee\\nBlista Compact\\nBuffalo\\nBullet\\nCheetah\\nClub\\nEuros\\nHotring Racer\\nInfernus\\nJester\\nPhoenix\\nSabre\\nSuper-GT\\nTurismo\\nUranus\\nZR-350\",\"Ez kell!\",\"Vissza\");
}
case 1:
{
ShowPlayerDialog(playerid,DIALOG_VEHICLE_BOATS,DIALOG_STYLE_LIST,\".:: Jármû spawn menü - Hajók\",\"Coastguard\\nDinghy\\nJetmax\\nLaunch\\nMarquis\\nPredator\\nReefer\\nSpeedo\\nSquallo\\nTropic\",\"Ez kell!\",\"Vissza\");
}
case 2:
{
ShowPlayerDialog(playerid,DIALOG_VEHICLE_BIKES,DIALOG_STYLE_LIST,\".:: Jármû spawn menü - Motorok\",\"Bike\\nBMX\\nMountain Bike\\nFaggio\\nPizza-boy\\nBF-400\\nNRG-500\\nPCJ-600\\nHPV-1000\\nFreeway\\nWayfarer\\nSanchez\\nQuad\\nFCR-900\",\"Ez kell!\",\"Vissza\");
}
case 3:
{
ShowPlayerDialog(playerid,DIALOG_VEHICLE_PLANES,DIALOG_STYLE_LIST,\".:: Jármû spawn menü Repülõk\",\"Andromada\\nAT-400\\nBeagle\\nCropduster\\nDodo\\nHydra\\nNevada\\nRustler\\nShamal\\nSkimmer\\nStuntplane\",\"Ez kell!\",\"Vissza\");
}
case 4:
{
ShowPlayerDialog(playerid,DIALOG_VEHICLE_HELICOPTERS,DIALOG_STYLE_LIST,\".:: Jármû spawn menü - Helikopterek\",\"Cargobob\\nHunter\\nLeviathan\\nMaverick\\nNews Maverick\\nPolice Maverick\\nRaindance\\nSeasparrow\\nSparrow\",\"Ez kell!\",\"Visssza\");
}
case 5:
{
ShowPlayerDialog(playerid,DIALOG_VEHICLE_SPECIAL,DIALOG_STYLE_LIST,\".:: Jármû spawn menü - Különleges\",\"Dumper\\nRhino\\nStretch\\nHotknife\\nBaggage\\nDozer\\nTow Truck\\nVortex Hovercraft\\nMower\\nKart\",\"Ez kell!\",\"vissza\");
}
}
return 1;
}
if(dialogid == DIALOG_VEHICLE_FASTCARS && response)
{
GetPlayerPos(playerid,vX,vY,vZ);
switch(listitem)
{
case 0:
{
CreateVehicle(602,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Alpha\'!\");
}
case 1:
{
CreateVehicle(429,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Banshee\'!\");
}
case 2:
{
CreateVehicle(496,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Blista Compact\'!\");
}
case 3:
{
CreateVehicle(402,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Buffalo\'!\");
}
case 4:
{
CreateVehicle(541,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Bullet\'!\");
}
case 5:
{
CreateVehicle(415,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Cheetah\'!\");
}
case 6:
{
CreateVehicle(589,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Club\'!\");
}
case 7:
{
CreateVehicle(587,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Euros\'!\");
}
case 8:
{
CreateVehicle(494,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Hotring Racer\'!\");
}
case 9:
{
CreateVehicle(411,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Infernus\'!\");
}
case 10:
{
CreateVehicle(559,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Jester\'!\");
}
case 11:
{
CreateVehicle(603,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Phoenix\'!\");
}
case 12:
{
CreateVehicle(475,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Sabre\'!\");
}
case 13:
{
CreateVehicle(506,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Super-GT\'!\");
}
case 14:
{
CreateVehicle(451,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Turismo\'!\");
}
case 15:
{
CreateVehicle(558,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Uranus\'!\");
}
case 16:
{
CreateVehicle(477,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'ZR-350\'!\");
}
case 17:
{
ShowPlayerDialog(playerid,DIALOG_VEHICLE,DIALOG_STYLE_LIST,\".:: Jármû Spawn Menü - Index\",\"Gyors jármûvek\\nBoats\\nBikes\\nPlanes\\nHelicopters\\nSpecial\",\"Nyit\",\"Zár\");
}
}
return 1;
}
if(dialogid == DIALOG_VEHICLE_BOATS && response)
{
GetPlayerPos(playerid,vX,vY,vZ);
switch(listitem)
{
case 0:
{
CreateVehicle(472,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Coastguard\'!\");
}
case 1:
{
CreateVehicle(473,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Dinghy\'!\");
}
case 2:
{
CreateVehicle(493,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Jetmax\'!\");
}
case 3:
{
CreateVehicle(595,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Launch\'!\");
}
case 4:
{
CreateVehicle(484,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Marquis\'!\");
}
case 5:
{
CreateVehicle(430,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Predator\'!\");
}
case 6:
{
CreateVehicle(453,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Reefer\'!\");
}
case 7:
{
CreateVehicle(452,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Speeder\'!\");
}
case 8:
{
CreateVehicle(446,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Squallo\'!\");
}
case 9:
{
CreateVehicle(454,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Tropic\'!\");
}
case 10:
{
ShowPlayerDialog(playerid,DIALOG_VEHICLE,DIALOG_STYLE_LIST,\".:: Jármû Spawn Menü - Index\",\"Gyors jármûvek\\nBoats\\nBikes\\nPlanes\\nHelicopters\\nSpecial\",\"Nyit\",\"Zár\");
}
}
return 1;
}
if(dialogid == DIALOG_VEHICLE_BIKES && response)
{
GetPlayerPos(playerid,vX,vY,vZ);
switch(listitem)
{
case 0:
{
CreateVehicle(509,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Bike\'!\");
}
case 1:
{
CreateVehicle(481,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'BMX\'!\");
}
case 2:
{
CreateVehicle(510,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Mountain Bike\'!\");
}
case 3:
{
CreateVehicle(462,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Faggio\'!\");
}
case 4:
{
CreateVehicle(448,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Pizzaboy\'!\");
}
case 5:
{
CreateVehicle(581,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'BF-400\'!\");
}
case 6:
{
CreateVehicle(522,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'NRG-500\'!\");
}
case 7:
{
CreateVehicle(461,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'PCJ-600\'!\");
}
case 8:
{
CreateVehicle(523,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'HPV-1000\'!\");
}
case 9:
{
CreateVehicle(463,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Freeway\'!\");
}
case 10:
{
CreateVehicle(586,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Wayfarer\'!\");
}
case 11:
{
CreateVehicle(468,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Sanchez\'!\");
}
case 12:
{
CreateVehicle(471,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Quad\'!\");
}
case 13:
{
CreateVehicle(521,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'FCR-900\'!\");
}
case 14:
{
ShowPlayerDialog(playerid,DIALOG_VEHICLE,DIALOG_STYLE_LIST,\".:: Jármû Spawn Menü - Index\",\"Gyors jármûvek\\nBoats\\nBikes\\nPlanes\\nHelicopters\\nSpecial\",\"Nyit\",\"Zár\");
}
}
return 1;
}
if(dialogid == DIALOG_VEHICLE_PLANES && response)
{
GetPlayerPos(playerid,vX,vY,vZ);
switch(listitem)
{
case 0:
{
CreateVehicle(592,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Andromada\'!\");
}
case 1:
{
CreateVehicle(577,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'AT-400\'!\");
}
case 2:
{
CreateVehicle(511,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Beagle\'!\");
}
case 3:
{
CreateVehicle(512,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Cropduster\'!\");
}
case 4:
{
CreateVehicle(593,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Dodo\'!\");
}
case 5:
{
CreateVehicle(520,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Hydra\'!\");
}
case 6:
{
CreateVehicle(553,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Nevada\'!\");
}
case 7:
{
CreateVehicle(476,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Rustler\'!\");
}
case 8:
{
CreateVehicle(519,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Shamal\'!\");
}
case 9:
{
CreateVehicle(460,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Skimmer\'!\");
}
case 10:
{
CreateVehicle(513,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Stuntplane\'!\");
}
case 11:
{
ShowPlayerDialog(playerid,DIALOG_VEHICLE,DIALOG_STYLE_LIST,\".:: Jármû Spawn Menü - Index\",\"Gyors jármûvek\\nBoats\\nBikes\\nPlanes\\nHelicopters\\nSpecial\",\"Nyit\",\"Zár\");
}
}
return 1;
}
if(dialogid == DIALOG_VEHICLE_HELICOPTERS && response)
{
GetPlayerPos(playerid,vX,vY,vZ);
switch(listitem)
{
case 0:
{
CreateVehicle(548,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Cargobob\'!\");
}
case 1:
{
CreateVehicle(425,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Hunter\'!\");
}
case 2:
{
CreateVehicle(417,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Leviathan\'!\");
}
case 3:
{
CreateVehicle(487,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Maverick\'!\");
}
case 4:
{
CreateVehicle(488,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'News Maverick\'!\");
}
case 5:
{
CreateVehicle(497,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Police Maverick\'!\");
}
case 6:
{
CreateVehicle(563,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Raindance\'!\");
}
case 7:
{
CreateVehicle(447,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Seasparrow\'!\");
}
case 8:
{
CreateVehicle(469,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Sparrow\'!\");
}
}
return 1;
}
if(dialogid == DIALOG_VEHICLE_SPECIAL && response)
{
GetPlayerPos(playerid,vX,vY,vZ);
switch(listitem)
{
case 0:
{
CreateVehicle(406,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Dumper\'!\");
}
case 1:
{
CreateVehicle(456,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Rhino\'!\");
}
case 2:
{
CreateVehicle(409,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Stretch\'!\");
}
case 3:
{
CreateVehicle(434,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Hotknife\'!\");
}
case 4:
{
CreateVehicle(485,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Baggage\'!\");
}
case 5:
{
CreateVehicle(486,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Dozer\'!\");
}
case 6:
{
CreateVehicle(525,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Tow Truck\'!\");
}
case 7:
{
CreateVehicle(447,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Vortex\'!\");
}
case 8:
{
CreateVehicle(469,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Mower\'!\");
}
case 9:
{
CreateVehicle(571,vX,vY,vZ,0,-1,-1,0);
SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Kart\'!\");
}
}
return 1;
}
return 1;
}
dcmd_v(playerid,params[])
{
#pragma unused params
ShowPlayerDialog(playerid,DIALOG_VEHICLE,DIALOG_STYLE_LIST,\".:: Jármû Spawn Menü - Index\",\"Gyors jármûvek\\nBoats\\nBikes\\nPlanes\\nHelicopters\\nSpecial\",\"Nyit\",\"Zár\");
SendClientMessage(playerid,0xB4B4B4FF,\".:: Jármû spawn menü megynitása - a tab!\");
return 1;
}