Supveh ingame passiert nix

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
  • ocmd:supcar(playerid,params[])
    {
    if(!isPlayerAnAdmin(playerid,1))
    {
    new Float:x, Float:y, Float:z;
    new Text3D:supportveh[MAX_VEHICLES];
    new c1,c2,vid;
    if(sscanf(params,"iii",vid,c1,c2))return SendClientMessage(playerid,BLAU,"Benutzung: /supcar [CarID] [Farbe1] [Farbe2]");
    {
    if(vid<402||vid>603)return SendClientMessage(playerid,BLAU,"Ungültige Fahrzeug-ID.");
    {
    GetPlayerPos(playerid,x,y,z);
    new car;
    SetVehicleNumberPlate(car = CreateVehicle(vid,x,y,z,3,c1,c2,-1),"Supporter");
    PutPlayerInVehicle(playerid,car,0);
    SendClientMessage(playerid,BLAU,"Du hast dein Supporter-Car gespawnt.");
    supportveh[car] = Create3DTextLabel("Supportmobil",ROT,0.0,0.0,0.0,50.0,0,1);
    Attach3DTextLabelToVehicle(supportveh[car],car,0.0,0.0,2.0);
    return 1;
    }
    }
    }
    return 1;
    }



    bei mir passiert ingame da nix

  • Vielleicht mal das Car auch erstellen? xD


    car = AddStaticVehicleEx(vehid, X, Y, Z, Facing, Farbe1, Farbe2, -1);


    lg :thumbup:

    RTL - Das N steht für Niveau!
    MfG,
    StreetS


    Jegliche Freundesanfragen, die für mich keinen Sinn ergeben, werden professionell Ignoriert. (Gleiche mit Skype!)
    Wer es nicht kapiert wird in Breadfish & Skype blockiert.


    - Stolzer PAWN Scripter der Klasse Beherrscht

  • Versuche mal
    ocmd:supcar(playerid,params[])
    {
    if(!isPlayerAnAdmin(playerid,1))
    {
    new Float:x, Float:y, Float:z;
    new Text3D:supportveh[MAX_VEHICLES];
    new c1,c2,vid;
    if(sscanf(params,"iii",vid,c1,c2))return SendClientMessage(playerid,BLAU,"Benutzung: /supcar [CarID] [Farbe1] [Farbe2]");
    {
    if(vid<402||vid>603)return SendClientMessage(playerid,BLAU,"Ungültige Fahrzeug-ID.");
    {
    GetPlayerPos(playerid,x,y,z);
    new car = CreateVehicle(vid,x,y,z,3,c1,c2,-1)
    SetVehicleNumberPlate(car,"Supporter");
    SetVehicleToRespawn(car);
    SetVehiclePos(car, x, y, z);
    PutPlayerInVehicle(playerid,car,0);
    SendClientMessage(playerid,BLAU,"Du hast dein Supporter-Car gespawnt.");
    supportveh[car] = Create3DTextLabel("Supportmobil",ROT,0.0,0.0,0.0,50.0,0,1);
    Attach3DTextLabelToVehicle(supportveh[car],car,0.0,0.0,2.0);
    return 1;
    }
    }
    }
    return 1;
    }

  • geht beides net immer errors


    Ja.... die da wären?


    car = AddStaticVehicleEx(vehid, X, Y, Z, Facing, Farbe1, Farbe2, -1);


    AddStaticVehicleEx funktioniert nur in OnGameModeInit...

  • ocmd:supcar(playerid,params[])
    {
    if(!isPlayerAnAdmin(playerid,1))
    {
    new Float:x, Float:y, Float:z;
    new Text3D:supportveh[MAX_VEHICLES];
    new c1,c2,vid;
    if(sscanf(params, "i", vid, c1, c2)) return SendClientMessage(playerid, 0xFFFFFFF,"Benutze: /supcar [CarID] [Farbe1] [Farbe2]");
    {
    if(vid<402||vid>603)return SendClientMessage(playerid,BLAU,"Ungültige Fahrzeug-ID.");
    {
    GetPlayerPos(playerid,x,y,z);
    new car = CreateVehicle(vid,x,y,z,3,c1,c2,-1);
    SetVehicleNumberPlate(car,"Supporter");
    SetVehicleToRespawn(car);
    SetVehiclePos(car, x, y, z);
    PutPlayerInVehicle(playerid,car,0);
    SendClientMessage(playerid,BLAU,"Du hast dein Supporter-Car gespawnt.");
    supportveh[car] = Create3DTextLabel("Supportmobil",ROT,0.0,0.0,0.0,50.0,0,1);
    Attach3DTextLabelToVehicle(supportveh[car],car,0.0,0.0,2.0);
    return 1;
    }
    }
    }
    return 1;
    }

  • ocmd:supcar(playerid,params[])
    {
    if(!isPlayerAnAdmin(playerid,1))return SendClientMessage(playerid,deinefarbe,"Kein Admin o.O");
    new Float:Pos[3],Text3D:supportveh[MAX_VEHICLES],c1,c2,vid;
    if(sscanf(params, "iii", vid, c1, c2)) return SendClientMessage(playerid, 0xFFFFFFF,"Benutze: /supcar [CarID] [Farbe1] [Farbe2]");
    if(vid<400||vid>603)return SendClientMessage(playerid,BLAU,"Ungültige Fahrzeug-ID.");


    GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
    new car = CreateVehicle(vid,Pos[0],Pos[1],Pos[2],3,c1,c2,-1);
    SetVehicleNumberPlate(car,"Supporter");
    PutPlayerInVehicle(playerid,car,0);
    SendClientMessage(playerid,BLAU,"Du hast dein Supporter-Car gespawnt.");
    supportveh[car] = Create3DTextLabel("Supportmobil",ROT,0.0,0.0,0.0,50.0,0,1);
    Attach3DTextLabelToVehicle(supportveh[car],car,0.0,0.0,2.0);
    return 1;
    }


    kann mir bitte einer helfen

    Einmal editiert, zuletzt von [TGS]AlmaN () aus folgendem Grund: bitte helfen