Abend,
wenn ich mit einem Befehl Vehicle´s spawne, wie kann ich das machen das die Vehicles auch im Interior spawnen ?
lg
Abend,
wenn ich mit einem Befehl Vehicle´s spawne, wie kann ich das machen das die Vehicles auch im Interior spawnen ?
lg
LinkVehicleToInterior(GetPlayerVehicleID(playerid),GetPlayerInterior(playerid));
oke danke...und wenn ich einen Port befehl habe wenn ich den anmache, Wie kann ich das definieren das der ausliest in welchen Interior ich bin und die Spieler die sich porten auch in das Interior setzt?
lg
//Edit:
So richtig?
if(strcmp(cmd, "/raceturismo", true) == 0)
{
AddStaticVehicleEx(451,-1426.61169434,-136.10253906,1044.86535645,246.00000000,-1,-1,15);
AddStaticVehicleEx(451,-1423.48571777,-130.45347595,1044.78588867,246.00000000,-1,-1,15);
AddStaticVehicleEx(451,-1431.95068359,-127.84904480,1045.26086426,258.00000000,-1,-1,15);
AddStaticVehicleEx(451,-1434.06872559,-133.59983826,1045.31311035,264.00000000,-1,-1,15);
AddStaticVehicleEx(451,-1439.43884277,-126.82081604,1045.61669922,264.00000000,-1,-1,15);
AddStaticVehicleEx(451,-1440.75927734,-132.91067505,1045.66760254,264.00000000,-1,-1,15);
AddStaticVehicleEx(451,-1447.68420410,-126.87873840,1045.95336914,274.00000000,-1,-1,15);
AddStaticVehicleEx(451,-1448.02319336,-132.63307190,1045.98730469,276.00000000,-1,-1,15);
AddStaticVehicleEx(451,-1455.11267090,-134.15586853,1046.30847168,282.00000000,-1,-1,15);
AddStaticVehicleEx(451,-1455.37963867,-128.58251953,1046.28234863,280.00000000,-1,-1,15);
AddStaticVehicleEx(451,-1463.24487305,-136.14373779,1046.67614746,284.00000000,-1,-1,15);
AddStaticVehicleEx(451,-1463.86254883,-130.33573914,1046.64208984,284.00000000,-1,-1,15);
LinkVehicleToInterior(GetPlayerVehicleID(playerid),GetPlayerInterior(playerid));
}
Nein...
Du musst dich wenn in das Auto immer porten lassen und dann das LinkVehicle. Oder du gibts jedem Car ne ID und tragst sie dann dort ein.
Ja und das geht wie?
if(strcmp(cmd, "/raceturismo", true) == 0)
{
new Cars[12];
Cars[0] = AddStaticVehicleEx(451,-1426.61169434,-136.10253906,1044.86535645,246.00000000,-1,-1,15);
Cars[1] = AddStaticVehicleEx(451,-1423.48571777,-130.45347595,1044.78588867,246.00000000,-1,-1,15);
Cars[2] = AddStaticVehicleEx(451,-1431.95068359,-127.84904480,1045.26086426,258.00000000,-1,-1,15);
Cars[3] = AddStaticVehicleEx(451,-1434.06872559,-133.59983826,1045.31311035,264.00000000,-1,-1,15);
Cars[4] = AddStaticVehicleEx(451,-1439.43884277,-126.82081604,1045.61669922,264.00000000,-1,-1,15);
Cars[5] = AddStaticVehicleEx(451,-1440.75927734,-132.91067505,1045.66760254,264.00000000,-1,-1,15);
Cars[6] = AddStaticVehicleEx(451,-1447.68420410,-126.87873840,1045.95336914,274.00000000,-1,-1,15);
Cars[7] = AddStaticVehicleEx(451,-1448.02319336,-132.63307190,1045.98730469,276.00000000,-1,-1,15);
Cars[8] = AddStaticVehicleEx(451,-1455.11267090,-134.15586853,1046.30847168,282.00000000,-1,-1,15);
Cars[9] = AddStaticVehicleEx(451,-1455.37963867,-128.58251953,1046.28234863,280.00000000,-1,-1,15);
Cars[10] = AddStaticVehicleEx(451,-1463.24487305,-136.14373779,1046.67614746,284.00000000,-1,-1,15);
Cars[11] = AddStaticVehicleEx(451,-1463.86254883,-130.33573914,1046.64208984,284.00000000,-1,-1,15);
for(new yaz = 0;yaz < sizeof(Cars);yaz++);
{
LinkVehicleToInterior(yaz,GetPlayerInterior(playerid));
}
}
Sollte so gehen
Hab das jetzt so aber es funktioniert immernoch nicht
if(strcmp(cmd, "/raceturismo", true) == 0)
{
new Cars[12];
Cars[0] = AddStaticVehicleEx(451,-1426.61169434,-136.10253906,1044.86535645,246.00000000,-1,-1,15);
Cars[1] = AddStaticVehicleEx(451,-1423.48571777,-130.45347595,1044.78588867,246.00000000,-1,-1,15);
Cars[2] = AddStaticVehicleEx(451,-1431.95068359,-127.84904480,1045.26086426,258.00000000,-1,-1,15);
Cars[3] = AddStaticVehicleEx(451,-1434.06872559,-133.59983826,1045.31311035,264.00000000,-1,-1,15);
Cars[4] = AddStaticVehicleEx(451,-1439.43884277,-126.82081604,1045.61669922,264.00000000,-1,-1,15);
Cars[5] = AddStaticVehicleEx(451,-1440.75927734,-132.91067505,1045.66760254,264.00000000,-1,-1,15);
Cars[6] = AddStaticVehicleEx(451,-1447.68420410,-126.87873840,1045.95336914,274.00000000,-1,-1,15);
Cars[7] = AddStaticVehicleEx(451,-1448.02319336,-132.63307190,1045.98730469,276.00000000,-1,-1,15);
Cars[8] = AddStaticVehicleEx(451,-1455.11267090,-134.15586853,1046.30847168,282.00000000,-1,-1,15);
Cars[9] = AddStaticVehicleEx(451,-1455.37963867,-128.58251953,1046.28234863,280.00000000,-1,-1,15);
Cars[10] = AddStaticVehicleEx(451,-1463.24487305,-136.14373779,1046.67614746,284.00000000,-1,-1,15);
Cars[11] = AddStaticVehicleEx(451,-1463.86254883,-130.33573914,1046.64208984,284.00000000,-1,-1,15);
for(new yaz = 0;yaz < sizeof(Cars);yaz++)
{
LinkVehicleToInterior(yaz,7);
}
}
AddStaticVehicle funktioniert nur in OnGameModeInit. Versuch mal statt dessen CreateVehicle
Nein, auch mit CreateVehicle funktioniert es auch nicht
Und wenn ich das so mache
if(strcmp(cmd, "/raceturismo", true) == 0)
{
if(PLayerInfo[playerid][pAdmin] >= 1337)
{
new Cars[12];
Cars[0] = CreateVehicle(451,-1426.61169434,-136.10253906,1044.86535645,246.00000000,-1,-1,15);
Cars[1] = CreateVehicle(451,-1423.48571777,-130.45347595,1044.78588867,246.00000000,-1,-1,15);
Cars[2] = CreateVehicle(451,-1431.95068359,-127.84904480,1045.26086426,258.00000000,-1,-1,15);
Cars[3] = CreateVehicle(451,-1434.06872559,-133.59983826,1045.31311035,264.00000000,-1,-1,15);
Cars[4] = CreateVehicle(451,-1439.43884277,-126.82081604,1045.61669922,264.00000000,-1,-1,15);
Cars[5] = CreateVehicle(451,-1440.75927734,-132.91067505,1045.66760254,264.00000000,-1,-1,15);
Cars[6] = CreateVehicle(451,-1447.68420410,-126.87873840,1045.95336914,274.00000000,-1,-1,15);
Cars[7] = CreateVehicle(451,-1448.02319336,-132.63307190,1045.98730469,276.00000000,-1,-1,15);
Cars[8] = CreateVehicle(451,-1455.11267090,-134.15586853,1046.30847168,282.00000000,-1,-1,15);
Cars[9] = CreateVehicle(451,-1455.37963867,-128.58251953,1046.28234863,280.00000000,-1,-1,15);
Cars[10] = CreateVehicle(451,-1463.24487305,-136.14373779,1046.67614746,284.00000000,-1,-1,15);
Cars[11] = CreateVehicle(451,-1463.86254883,-130.33573914,1046.64208984,284.00000000,-1,-1,15);
for(new yaz = 0;yaz < sizeof(Cars);yaz++)
}
{
LinkVehicleToInterior(yaz,7);
}
}
Dann zeigt er mir Errors an, aber lasse ich es weg zeigt er mir keine an o.ô woran liegt das?
if(PLayerInfo
sicher dass es nicht PlayerInfo heißt?
^ja sorry aber trdem zeigt er mir errors an beim compilen