hallo,
Habe einen Garagensystem drin.
Habe die autos in der Garage drinnen als festen spawn, jedoch wenn ich rein gehe sind die autos unsichtbar
Wie kriege ich die Sichtbar=?
Die sind in einem Anderen interrior.
hier meine Scriptschnipsel
Code
enum fstruk11{model,Float:fxa,Float:fya,Float:fza,Float:faa,farb1,farb2,v_id};
new const terror[][fstruk11] = {
{560,1306.9783,-9.4030,1000.7388,90.4559,17,1},
{560,1306.7805,-15.1523,1000.7384,92.4679,17,1},
{560,1305.6508,-24.3782,1000.7381,89.0915,17,1},
{560,1251.6385,-11.4265,1000.7397,269.4483,17,1},
{560,1251.6013,-17.8180,1000.7391,266.5587,17,1},
{522,1294.1805,-49.5802,1000.5998,10.4534,3,8},
{522,1292.0823,-49.9206,1000.5968,359.0596,3,8},
{522,1307.6049,-0.5544,1000.6021,91.2238,3,8},
{487,-890.7286,2708.4033,42.9001,319.2615,3,29}
};
if(IsPlayerInRangeOfPoint(i,4.5,1547.2417,30.1713,24.1406)&&IsPlayerInAnyVehicle(i))
{
if(IsPlayerInFrakt(i,10))
{
SetVehiclePos(GetPlayerVehicleID(i),1302.519897,-1.787510,1001.028259);
SetVehicleZAngle(GetPlayerVehicleID(i),181.7814);
LinkVehicleToInterior(vehicleid,18);
SetPlayerInterior(playerid,18);
SetCameraBehindPlayer(i);
}
else SendClientMessage(playerid,COLOR_RED,"Du bist nicht in der Fraktion der Terroristen");
}
if(IsPlayerInRangeOfPoint(i,4.5,1292.5251,6.6843,1001.0078)&&IsPlayerInAnyVehicle(i))
{
if(IsPlayerInFrakt(i,10))
{
SetVehiclePos(GetPlayerVehicleID(i),1552.4235,46.1681,24.7083);
SetVehicleZAngle(GetPlayerVehicleID(i),90.9076);
LinkVehicleToInterior(vehicleid,0);
SetPlayerInterior(playerid,0);
SetCameraBehindPlayer(i);
}
}
if(pickupid == garageexit)
{
SetPlayerPos(playerid,1552.4235,46.1681,24.7083);
SetPlayerFacingAngle(GetPlayerVehicleID(playerid),90.9076);
SetCameraBehindPlayer(playerid);
LinkVehicleToInterior(vehicleid,0);
SetPlayerInterior(playerid,0);
}
if(pickupid == garage)
{
SetPlayerPos(playerid,1302.519897,-1.787510,1001.028259);
SetPlayerFacingAngle(GetPlayerVehicleID(playerid),181.7814);
SetCameraBehindPlayer(playerid);
LinkVehicleToInterior(vehicleid,18);
SetPlayerInterior(playerid,18);
return 1;
}
Alles anzeigen