WIe kann MAN RC`s fahren?

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
  • Ich komme irgend wie durcheinander. WIe muss der Befehl aussehen?
    Noch eine Kleine Hilfe bitte;
    if (strcmp(cmdtext, "/getin", true) == 0)
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "RC Panzer Test");
    PutPlayerInVehicle(playerid,vehicleid, 0);
    return 1;
    }
    if (strcmp(cmdtext, "/getout", true) == 0)
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "RC Panzer Test beendet");
    RemovePlayerFromVehicle(playerid)
    return 1;
    }


    SO?

  • Machs doch so


    new rcvehicle[MAX_PLAYERS];
    if (strcmp(cmdtext, "/getin", true) == 0)
    {
    new Float:px,Float:py,Float:pz;
    GetPlayerPos(playerid,px,py,pz);
    rcvehicle[playerid] = CreateVehicle(441,px,py,pz,-1,-1,-1);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "RC Racer Test");
    PutPlayerInVehicle(playerid,rcvehicle[playerid], 0);
    return 1;
    }
    if (strcmp(cmdtext, "/getout", true) == 0)
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "RC Racer Test beendet");
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(rcvehicle[playerid]);
    return 1;
    }


    @dit


    Erster :D

  • new rccar[MAX_PLAYERS];
    new Float:cx, Float:cy, Float:cz;
    if (strcmp(cmdtext, "/getin", true) == 0)
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "RC Panzer Test");
    GetPlayerPos(playerid, cx,cy,cz);
    rccar[playerid] = CreateVehicle(deine vehicle id, cx,cy,cz,-1,-1,-1);
    PutPlayerInVehicle(playerid,rccar[playerid], 0);
    return 1;
    }


    if (strcmp(cmdtext, "/getout", true) == 0)
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "RC Panzer Test beendet");
    DestroyVehicle(rccar[playerid]);
    SetPlayerPos(playerid, cx,cy,cz);
    return 1;
    }

    hunt.png

    Einmal editiert, zuletzt von Fischer ()

  • Error posten


    @dit


    Weiß warscheinlich wo der Fehler liegt. Die Rotation


    machs so


    new rcvehicle[MAX_PLAYERS]; Ganz oben ins Script


    dann unter OnPlayerCommand


    if (strcmp(cmdtext, "/getin", true) == 0)
    {
    new Float:px,Float:py,Float:pz,Float:prot;
    GetPlayerPos(playerid,px,py,pz);
    GetPlayerFacingAngle(playerid,prot);
    rcvehicle[playerid] = CreateVehicle(441,px,py,pz,prot,-1,-1,-1);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "RC Racer Test");
    PutPlayerInVehicle(playerid,rcvehicle[playerid], 0);
    return 1;
    }
    if (strcmp(cmdtext, "/getout", true) == 0)
    {
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "RC Racer Test beendet");
    RemovePlayerFromVehicle(playerid);
    DestroyVehicle(rcvehicle[playerid]);
    return 1;
    }