CreateVehicleForServer(560,1009.6846,-1083.9655,23.5273,177.9657,36,36,0,13,1,3); // sultan3
CreateVehicleForServer(482,1044.5070,-1089.4393,23.9564,90.4715,36,36,0,13,1,1); // burito1
Was ist das ?
Mfg
CreateVehicleForServer(560,1009.6846,-1083.9655,23.5273,177.9657,36,36,0,13,1,3); // sultan3
CreateVehicleForServer(482,1044.5070,-1089.4393,23.9564,90.4715,36,36,0,13,1,1); // burito1
Was ist das ?
Mfg
Schau nach ob ihrgentwas Definiert ist wenn nicht / und du es nicht willst bzw brauchst nimms hald raus.?!
Damit erstellst du ein Auto.
Das ist der Syntax:
CreateVehicleForServer(modelid, Float:X, Float:Y, Float:Z, Float:R, color1, color2, interior, jobid, license, rank)
Und das public+forward:
forward CreateVehicleForServer(modelid, Float:X, Float:Y, Float:Z, Float:R, color1, color2, interior, jobid, license, rank);
public CreateVehicleForServer(modelid, Float:X, Float:Y, Float:Z, Float:R, color1, color2, interior, jobid, license, rank)
{
new v = CreateVehicle(modelid,Float:X,Float:Y,Float:Z,Float:R,color1,color2,-1);
spawncar_job[v] = jobid;
spawncar_license[v] = license;
spawncar_rank[v] = rank;
spawncar_interior[v] = interior;
spawncar_model[v] = modelid;
if(interior != 0)
{
LinkVehicleToInterior(v, interior);
}
NoFuel[v] = 0;
spawncar_maxgas[v] = GetVehicleTankInhalt(v);
spawncar_gas[v] = spawncar_maxgas[v];
spawncar_gastype[v] = GetPlayerVehicleTypeForFill(v);
spawncar_item_type[0][v] = 0;
spawncar_item_type[1][v] = 0;
spawncar_item_type[2][v] = 0;
spawncar_item_amount[0][v] = 0;
spawncar_item_amount[1][v] = 0;
spawncar_item_amount[2][v] = 0;
spawncar_item_id[0][v] = 0;
spawncar_item_id[1][v] = 0;
spawncar_item_id[2][v] = 0;
spawncar_towed[v] = 0;
return v;
}