VehicleSpawn Interior

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Abend,


    wenn ich mit einem Befehl Vehicle´s spawne, wie kann ich das machen das die Vehicles auch im Interior spawnen ?


    lg

  • 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));
    }

    Einmal editiert, zuletzt von [Script]Lan ()

  • 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

    mfg RedDragon 8)


    Was ist GFKD?


    Ein revolutionärer Clan, dessen Eröffnung kurz bevorsteht.
    Mehr Informationen folgen bald.

  • 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?

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen