/gotobsn geht nicht

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
  • huhu,


    Ich habe den Befehl umgebaut, dass das Car mitgenommen wird, aber jtz geht der Command nicht, aber es kommt nix von Unknown Command



    if(!strcmp(cmdtext, "/gotobsn", true))
    {
    if(isPlayerAnAdmin(playerid,3))
    {
    if(!IsPlayerInAnyVehicle(playerid))
    {
    SetPlayerPos(playerid, 1212.9077, -884.9197, 42.9153);
    SetPlayerFacingAngle(playerid, 0.0);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SendClientMessage(playerid, 0x8E4FFBBD, "**Du hast dich zum BSN teleportiert.**");
    }
    else
    {
    new veh = GetPlayerVehicleID(playerid);
    SetVehiclePos(veh, 1212.9077, -884.9197, 42.9153);
    SetVehicleZAngle(veh, 0.0);
    LinkVehicleToInterior(veh, 0);
    SetVehicleVirtualWorld(veh, 0);
    PutPlayerInVehicle(playerid, veh, 0);
    }
    return 1;
    }
    SendClientMessage(playerid,0xAA00FF00AA,"Du bist kein Admin oder hast nicht den nötigen Rank.");
    return 1;
    }

  • if(strcmp(cmdtext, "/gotobsn", true))
    {
    if(isPlayerAnAdmin(playerid,3))
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    SetPlayerPos(playerid, 1212.9077, -884.9197, 42.9153);
    SetPlayerFacingAngle(playerid, 0.0);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SendClientMessage(playerid, 0x8E4FFBBD, "**Du hast dich zum BSN teleportiert.**");
    }
    else
    {
    new veh = GetPlayerVehicleID(playerid);
    SetVehiclePos(veh, 1212.9077, -884.9197, 42.9153);
    SetVehicleZAngle(veh, 0.0);
    LinkVehicleToInterior(veh, 0);
    SetVehicleVirtualWorld(veh, 0);
    PutPlayerInVehicle(playerid, veh, 0);
    }
    return 1;
    }
    SendClientMessage(playerid,0xAA00FF00AA,"Du bist kein Admin oder hast nicht den nötigen Rank.");
    return 1;
    }


    Vielleicht gehts so


  • if(strcmp(cmdtext, "/gotobsn", true))
    {
    if(isPlayerAnAdmin(playerid,3))
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    SetPlayerPos(playerid, 1212.9077, -884.9197, 42.9153);
    SetPlayerFacingAngle(playerid, 0.0);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SendClientMessage(playerid, 0x8E4FFBBD, "**Du hast dich zum BSN teleportiert.**");
    new veh = GetPlayerVehicleID(playerid);
    SetVehiclePos(veh, 1212.9077, -884.9197, 42.9153);
    SetVehicleZAngle(veh, 0.0);
    LinkVehicleToInterior(veh, 0);
    SetVehicleVirtualWorld(veh, 0);
    PutPlayerInVehicle(playerid, veh, 0);
    }
    else
    {
    SetPlayerPos(playerid, 1212.9077, -884.9197, 42.9153);
    SetPlayerFacingAngle(playerid, 0.0);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SendClientMessage(playerid, 0x8E4FFBBD, "**Du hast dich zum BSN teleportiert.**");
    }
    return 1;
    }
    SendClientMessage(playerid,0xAA00FF00AA,"Du bist kein Admin oder hast nicht den nötigen Rank.");
    return 1;
    }



    MFG

  • if(!strcmp(cmdtext, "/gotobsn", true))
    {
    if(isPlayerAnAdmin(playerid,3))
    {
    if(!IsPlayerInAnyVehicle(playerid))
    {
    SetPlayerPos(playerid, 1212.9077, -884.9197, 42.9153);
    SetPlayerFacingAngle(playerid, 0.0);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SendClientMessage(playerid, 0x8E4FFBBD, "**Du hast dich zum BSN teleportiert.**");
    }
    else
    {
    new veh = GetPlayerVehicleID(playerid);
    SetVehiclePos(veh, 1212.9077, -884.9197, 42.9153);
    SetVehicleZAngle(veh, 0.0);
    LinkVehicleToInterior(veh, 0);
    SetVehicleVirtualWorld(veh, 0);
    PutPlayerInVehicle(playerid, veh, 0);
    }
    return 1;
    }
    else
    {
    SendClientMessage(playerid,0xAA00FF00AA,"Du bist kein Admin oder hast nicht den nötigen Rank.");
    }
    return 1;
    }


    Teste das mal bitte.


    mfg traxx

  • Versuch es mal so

    if(strcmp(cmdtext, "/gotobsn", true)){
    if(!isPlayerAnAdmin(playerid,3))return SendClientMessage(playerid,0xAA00FF00AA,"Du bist kein Admin oder hast nicht den nötigen Rank.");
    if(!IsPlayerInAnyVehicle(playerid)){
    SetPlayerPos(playerid, 1212.9077, -884.9197, 42.9153);
    SetPlayerFacingAngle(playerid, 0.0);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SendClientMessage(playerid, 0x8E4FFBBD, "**Du hast dich zum BSN teleportiert.**");
    }else{
    new veh = GetPlayerVehicleID(playerid);
    SetVehiclePos(veh, 1212.9077, -884.9197, 42.9153);
    SetPlayerPos(playerid, 1212.9077, -884.9197, 42.9153);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetVehicleZAngle(veh, 0.0);
    LinkVehicleToInterior(veh, 0);
    SetVehicleVirtualWorld(veh, 0);
    PutPlayerInVehicle(playerid, veh, 0);
    }
    return 1;
    }

  • if(!strcmp(cmdtext, "/gotobsn", true)){
    if(!isPlayerAnAdmin(playerid,3))return SendClientMessage(playerid,0xAA00FF00AA,"Du bist kein Admin oder hast nicht den nötigen Rank.");
    if(!IsPlayerInAnyVehicle(playerid)){
    SetPlayerPos(playerid, 1212.9077, -884.9197, 42.9153);
    SetPlayerFacingAngle(playerid, 0.0);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SendClientMessage(playerid, 0x8E4FFBBD, "**Du hast dich zum BSN teleportiert.**");
    }else{
    new veh = GetPlayerVehicleID(playerid);
    SetVehiclePos(veh, 1212.9077, -884.9197, 42.9153);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetVehicleZAngle(veh, 0.0);
    LinkVehicleToInterior(veh, 0);
    SetVehicleVirtualWorld(veh, 0);
    PutPlayerInVehicle(playerid, veh, 0);
    }
    return 1;
    }

  • if(strcmp(cmdtext,"/gotobsn",true) == 0)
    {
    if(isPlayerAnAdmin(playerid,3))
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    SetPlayerPos(playerid, 1212.9077, -884.9197, 42.9153);
    SetPlayerFacingAngle(playerid, 0.0);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SendClientMessage(playerid, 0x8E4FFBBD, "**Du hast dich zum BSN teleportiert.**");
    new veh = GetPlayerVehicleID(playerid);
    SetVehiclePos(veh, 1212.9077, -884.9197, 42.9153);
    SetVehicleZAngle(veh, 0.0);
    LinkVehicleToInterior(veh, 0);
    SetVehicleVirtualWorld(veh, 0);
    PutPlayerInVehicle(playerid, veh, 0);
    }
    else
    {
    SetPlayerPos(playerid, 1212.9077, -884.9197, 42.9153);
    SetPlayerFacingAngle(playerid, 0.0);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SendClientMessage(playerid, 0x8E4FFBBD, "**Du hast dich zum BSN teleportiert.**");
    }
    return 1;
    }
    SendClientMessage(playerid,0xAA00FF00AA,"Du bist kein Admin oder hast nicht den nötigen Rank.");
    return 1;
    }

    MFG

  • So, habe es selber hinbekommen, mit eueren Tipps



    if(strcmp(cmdtext,"/gotobsn", true)==0)
    {
    if(!isPlayerAnAdmin(playerid,3))return SendClientMessage(playerid,0xAA00FF00AA,"Du bist kein Admin oder hast nicht den nötigen Rank.");
    if(!IsPlayerInAnyVehicle(playerid))
    {
    SetPlayerPos(playerid, 1212.9077, -884.9197, 42.9153);
    SetPlayerFacingAngle(playerid, 0.0);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SendClientMessage(playerid, 0x8E4FFBBD, "**Du hast dich zum BSN teleportiert.**");
    }
    else
    {
    new veh = GetPlayerVehicleID(playerid);
    SetVehiclePos(veh, 1212.9077, -884.9197, 42.9153);
    SetPlayerPos(playerid, 1212.9077, -884.9197, 42.9153);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetVehicleZAngle(veh, 0.0);
    LinkVehicleToInterior(veh, 0);
    SetVehicleVirtualWorld(veh, 0);
    PutPlayerInVehicle(playerid, veh, 0);
    }
    return 1;
    }