stock CreateFCar(playerid,schein)
{
new vehicleid, Float:Position[4], rand = random(3);
if(schein == 1)//Autoschein
{
if(rand == 0)
{
Position[0] = 705.6071;
Position[1] = -645.9608;
Position[2] = 16.1204;
Position[3] = 88.7824;
}
else if(rand == 1)
{
Position[0] = 705.4693;
Position[1] = -643.3859;
Position[2] = 16.1204;
Position[3] = 89.3793;
}
else if(rand == 2)
{
Position[0] = 705.5233;
Position[1] = -640.2294;
Position[2] = 16.1204;
Position[3] = 89.6191;
}
vehicleid = CreateVehicle(401,Position[0],Position[1],Position[2],Position[3],1,1,-1);
FahrzeugInfo[vehicleid][fModelID] = 401;
SetVehicleHealth(vehicleid,3000);
FahrzeugInfo[vehicleid][fLabel] = Create3DTextLabel("{FF0000}* Achtung Fahrschule *", 0x008080FF, 0.0, 0.0, 0.0, 15.0, 0, 1);
Attach3DTextLabelToVehicle(FahrzeugInfo[vehicleid][fLabel],vehicleid, 0.0, 0.0, 1.2);
SetPlayerCheckpoint(playerid,Position[0],Position[1],Position[2],4.0);
}
else if(schein == 2)//Flugschein
{
if(rand == 0)
{
Position[0] = 978.7614;
Position[1] = -1377.6647;
Position[2] = 21.8329;
Position[3] = 269.9409;
}
else if(rand == 1)
{
Position[0] = 980.8425;
Position[1] = -1359.5309;
Position[2] = 21.8329;
Position[3] = 269.8376;
}
else if(rand == 2)
{
Position[0] = 980.8580;
Position[1] = -1344.3140;
Position[2] = 21.8336;
Position[3] = 268.9448;
}
vehicleid = CreateVehicle(487,Position[0],Position[1],Position[2],Position[3],1,1,-1);
FahrzeugInfo[vehicleid][fModelID] = 487;
SetVehicleHealth(vehicleid,3000);
FahrzeugInfo[vehicleid][fLabel] = Create3DTextLabel("{FF0000}* Achtung Fahrschule *", 0x008080FF, 0.0, 0.0, 0.0, 15.0, 0, 1);
Attach3DTextLabelToVehicle(FahrzeugInfo[vehicleid][fLabel],vehicleid, 0.0, 0.0, 1.2);
SetPlayerCheckpoint(playerid,Position[0],Position[1],Position[2],4.0);
}
else if(schein == 3)//LKWschein
{
if(rand == 0)
{
Position[0] = 953.4742;
Position[1] = -1329.7324;
Position[2] = 14.3993;
Position[3] = 270.1272;
}
else if(rand == 1)
{
Position[0] = 986.0818;
Position[1] = -1329.8043;
Position[2] = 14.4118;
Position[3] = 269.8145;
}
else if(rand == 2)
{
Position[0] = 1033.3359;
Position[1] = -1329.8627;
Position[2] = 14.4101;
Position[3] = 269.3374;
}
vehicleid = CreateVehicle(515,Position[0],Position[1],Position[2],Position[3],1,1,-1);
FahrzeugInfo[vehicleid][fModelID] = 515;
FahrzeugInfo[vehicleid][fLabel] = Create3DTextLabel("{FF0000}* Achtung Fahrschule *", 0x008080FF, 0.0, 0.0, 0.0, 15.0, 0, 1);
Attach3DTextLabelToVehicle(FahrzeugInfo[vehicleid][fLabel],vehicleid, 0.0, 0.0, 1.2);
SetPlayerCheckpoint(playerid,Position[0],Position[1],Position[2],4.0);
}
else if(schein == 4)//Bikeschein
{
if(rand == 0)
{
Position[0] = 1020.5880;
Position[1] = -1316.3042;
Position[2] = 12.9426;
Position[3] = 90.1790;
}
else if(rand == 1)
{
Position[0] = 998.9742;
Position[1] = -1316.3723;
Position[2] = 12.9530;
Position[3] = 90.1789;
}
else if(rand == 2)
{
Position[0] = 973.7923;
Position[1] = -1316.4506;
Position[2] = 12.9265;
Position[3] = 90.1789;
}
vehicleid = CreateVehicle(461,Position[0],Position[1],Position[2],Position[3],1,1,-1);
FahrzeugInfo[vehicleid][fModelID] = 461;
FahrzeugInfo[vehicleid][fLabel] = Create3DTextLabel("{FF0000}* Achtung Fahrschule *", 0x008080FF, 0.0, 0.0, 0.0, 15.0, 0, 1);
Attach3DTextLabelToVehicle(FahrzeugInfo[vehicleid][fLabel],vehicleid, 0.0, 0.0, 1.2);
SetPlayerCheckpoint(playerid,Position[0],Position[1],Position[2],4.0);
}
FahrzeugInfo[vehicleid][fTank] = VehicleData[FahrzeugInfo[vehicleid][fModelID]-400][vehLiter];
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, false, false, false, true, false, false, false);
PutPlayerInVehicle(playerid,vehicleid,0);
FahrzeugInfo[vehicleid][fDatabaseID] = 0; FahrzeugInfo[vehicleid][fErstellt] = true;
FahrzeugInfo[vehicleid][fPosition][0] = Position[0]; FahrzeugInfo[vehicleid][fPosition][1] = Position[1]; FahrzeugInfo[vehicleid][fPosition][2] = Position[2]; FahrzeugInfo[vehicleid][fPosition][3] = Position[3]; FahrzeugInfo[vehicleid][fColor][1] = 1;
format(FahrzeugInfo[vehicleid][fKennzeichen], 0, "Fahrschule"); FahrzeugInfo[vehicleid][fAbgeschleppt] = 0; FahrzeugInfo[vehicleid][fParkkralle] = 0; FahrzeugInfo[vehicleid][fKilometer] = 0; FahrzeugInfo[vehicleid][fColor][0] = 1; FahrzeugInfo[vehicleid][fPaintjob] = 3;
FahrzeugInfo[vehicleid][fTank] = VehicleData[GetVehicleModel(vehicleid)-400][vehLiter]; FahrzeugInfo[vehicleid][fRang] = 0; FahrzeugInfo[vehicleid][fFraktion] = 0; FahrzeugInfo[vehicleid][fAutohaus] = 0; FahrzeugInfo[vehicleid][fNebenjob] = 0; FahrzeugInfo[vehicleid][fFahrschule] = 1;
FahrzeugInfo[vehicleid][fSupmobil] = 0; FahrzeugInfo[vehicleid][fZivibike] = 0;
FahrzeugInfo[vehicleid][fPreis] = 0; FahrzeugInfo[vehicleid][fBesitzer] = 0; format(FahrzeugInfo[vehicleid][fBesitzer], 0, ""); FahrzeugInfo[vehicleid][fBesitzerID] = 0; FahrzeugInfo[vehicleid][fTuning][0] = 0; FahrzeugInfo[vehicleid][fTuning][1] = 0; FahrzeugInfo[vehicleid][fTuning][2] = 0;
FahrzeugInfo[vehicleid][fTuning][3] = 0; FahrzeugInfo[vehicleid][fTuning][4] = 0; FahrzeugInfo[vehicleid][fTuning][5] = 0; FahrzeugInfo[vehicleid][fTuning][6] = 0; FahrzeugInfo[vehicleid][fTuning][7] = 0;
FahrzeugInfo[vehicleid][fTuning][8] = 0; FahrzeugInfo[vehicleid][fTuning][9] = 0; FahrzeugInfo[vehicleid][fTuning][10] = 0; FahrzeugInfo[vehicleid][fTuning][11] = 0; FahrzeugInfo[vehicleid][fTuning][12] = 0; FahrzeugInfo[vehicleid][fTuning][13] = 0; FahrzeugInfo[vehicleid][fJobEXP] = 0;
SetVehicleNumberPlate(vehicleid,"Fahrschule");
FahrschulCar[vehicleid] = playerid;
SetPVarInt(playerid,"FahrschulCar",vehicleid);
Motor[vehicleid] = false;
Licht[vehicleid] = false;
DOOR[vehicleid] = true;
Motorhaube[vehicleid] = false;
Kofferraum[vehicleid] = false;
return 1;
}
Alles anzeigen