17.06.2016, 21:27
PHP код:
if(dialogid == CAR_TESTC) //Low Vehicles\nMedium Vehicle\nSport Vehicles\nBike\nAir vehicles\nSpecial Vehicles
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid,CAR_TESTC2,DIALOG_STYLE_LIST,"Test masini","Bravura\nLandstalker\nPerenniel\nBobcat\nRegina\nBurrito\nIntruder","Testeaza","Inchide");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid,CAR_TESTC3,DIALOG_STYLE_LIST,"Test masini","Admiral\nSabre\nSandking\nSavana\nPremier\nSlamvan\nBlade\nHustler\nMerit\nWindsor\nTahoma\nHuntley","Testeaza","Inchide");
}
if(listitem == 2)
{
ShowPlayerDialog(playerid,CAR_TESTC4,DIALOG_STYLE_LIST,"Test masini","Infernus\nBanshee\nTurismo\nZr-350\nComet\nBullet\nSultan\nCheetach\nElegy\nHotring\nBuffalo\nSuper GT\nJester\nFlash\nPhoenix","Testeaza","Inchide");
}
if(listitem == 3)
{
ShowPlayerDialog(playerid,CAR_TESTC5,DIALOG_STYLE_LIST,"Test masini","Bike","Testeaza","Inchide");
}
if(listitem == 4)
{
ShowPlayerDialog(playerid,CAR_TESTC6,DIALOG_STYLE_LIST,"Test masini","Special Vehicles","Testeaza","Inchide");
}
}
}
if(dialogid == CAR_TESTC2)
{
if(response)
{
if(listitem == 0)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(401,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 1)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(400,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 2)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(404,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 3)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(422,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 4)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(479,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 5)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(482,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 6)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(546,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
}
if(dialogid == CAR_TESTC3) // Admiral\nSabre\nSandking\nSavana\nPremier\nSlamvan\nBlade\nHustler\nMerit\nWindsor\nTahoma\nHuntley
{
if(response)
{
if(listitem == 0)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(445,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 1)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(475,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 2)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(495,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 3)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(567,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 4)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(426,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 5)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(535,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 6)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(536,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 7)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(545,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 8)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(551,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 9)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(555,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 10)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(566,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 11)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(579,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
}
}
if(dialogid == CAR_TESTC4) // Infernus\nBanshee\nTurismo\nZr-350\nComet\nBullet\nSultan\nCheetach\nElegy\nHotring\nBuffalo\nSuper GT\nJester\nFlash\nPhoenix
{
if(response)
{
if(listitem == 0)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(411,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 1)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(429,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 2)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(451,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 3)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(477,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 4)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(480,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 5)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(541,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 6)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(560,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 7)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(515,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 8)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(562,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 9)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(502,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 10)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(402,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 11)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(506,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 12)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(559,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 13)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(565,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
if(listitem == 14)
{
new Tcar,Vw;
Vw = GetPlayerID(GetName(playerid)) +1 ;
Tcar = AddStaticVehicleEx(603,1789.6082,844.3866,10.6321,0,255,255,10);
SetVehicleVirtualWorld(Tcar,Vw);
SetPlayerVirtualWorld(playerid,Vw);
PutPlayerInVehicle(playerid, Tcar, 0);
TestingCar[playerid] = 1;
TestingCarID[playerid] = GetPlayerVehicleID(playerid) ;
SendClientMessage(playerid,COLOR_GREEN,"Pentru a iesi din test foloseste comanda /stoptest sau iesi din masina!");
}
}
}