Beiträge von GhosT_GT

    Ich würde gerne /startlesson mit Geld machen , also damit man
    /startlesson (id) (betrag)
    ^
    -
    -
    genau so


    if(strcmp(cmd, "/startlesson", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_WHITE, "Benutze: /startlesson [playerid/PartOfName]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    if(IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    format(string, sizeof(string), "* You've started %s's Lesson.",giveplayer);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* Instructor %s has started your Lesson.",sendername);
    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
    TakingLesson[giveplayerid] = 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Der Player ist offline !");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist kein Lehrer !");
    return 1;
    }
    }
    return 1;
    }

    Deine Vorschläge : Die interessieren mich überhaupt nicht .
    Achso .. wtf sollte eig. nicht für mein Name sein sondern für dein dummes geschwätz.
    Aber naja ich möchte mein Niveau nicht so runter setzten wie deines.!
    MfG

    okay alles gut aber noch eine frage habe ich ^^ danke erstmal das du mir weiter hilfst aber hier :


    (9385) : error 004: function "CreateVehicleForServer" is not implemented

    achso ne ich bekomme error weil ich das noch ni cht definiert habe.. wie mache ich dies ?


    (9384) : error 017: undefined symbol "CreateVehicleForServer"


    das ist die zeile
    fsCars[0] = CreateVehicleForServer(487,-2027.7196,-111.2363,39.0985,5.0025,1,1,600); //

    fsCars[0] = AddStaticVehicle(487,-2027.7196,-111.2363,39.0985,5.0025,1,1,600); //
    fsCars[1] = AddStaticVehicle(560,-2064.3904,-83.9506,34.8699,0.7831,1,1,600); //
    fsCars[2] = AddStaticVehicle(560,-2068.4004,-83.9618,34.8742,0.8567,1,1,600); //
    fsCars[3] = AddStaticVehicle(560,-2072.7258,-84.0083,34.8691,0.0568,1,1,600); //
    fsCars[4] = AddStaticVehicle(560,-2077.0510,-84.0153,34.8695,359.7835,1,1,600); //
    fsCars[5] = AddStaticVehicle(405,-2080.9822,-84.2342,35.0391,0.9982,1,1,600); //
    fsCars[6] = AddStaticVehicle(405,-2085.3892,-83.9527,35.0393,1.2645,1,1,600); //
    fsCars[7] = AddStaticVehicle(405,-2089.4353,-84.2617,35.0391,0.6078,1,1,600); //
    fsCars[8] = AddStaticVehicle(405,-2093.7131,-84.1595,35.0956,359.5796,1,1,600); //
    fsCars[9] = AddStaticVehicle(521,-2093.7769,-101.0666,34.7345,270.1075,1,1,600); //
    fsCars[10] = AddStaticVehicle(461,-2093.3687,-98.8547,34.7485,266.8549,1,1,600); //
    fsCars[11] = AddStaticVehicle(581,-2092.6753,-97.2982,34.7605,271.2275,1,1,600); //
    fsCars[12] = AddStaticVehicle(514,-2023.0475,-94.5940,35.7504,90.0886,1,1,600); //
    fsCars[13] = AddStaticVehicle(452,-1757.3842,-195.8041,-0.5298,181.7123,1,1,600); //
    fsCars[14] = AddStaticVehicle(452,-1762.1937,-195.9790,-0.2899,181.6277,1,1,600); //
    fsCars[16] = AddStaticVehicle(593,325.1767,2537.9663,17.2671,179.3862,1,1,600); //
    fsCars[17] = AddStaticVehicle(593,290.6677,2540.4951,17.2812,180.2924,1,1,600); //
    fsCars[18] = AddStaticVehicle(514,-2023.0011,-89.6413,35.9079,90.2796,1,1,600); //
    fsCars[19] = AddStaticVehicle(450,-1732.7373,-92.8904,4.1964,146.6553,1,1,600); //
    fsCars[20] = AddStaticVehicle(450,-1749.1136,-88.9948,4.1765,195.4723,1,1,600); //


    Hab ich aber alles Warnings

    Mein Problem ist das die Fahrschulcars auf der Straße stehen wenn
    eun Fahrlehrer aus dem Gebäude rausgeht.
    Alle Fahrlehrer Spawnen in der Hütte aber wenn sie rausgehen sind alle autos, LKWs etc. auf der Straße wieso?


    //Fahrschule
    new fsCars[21];


    new fsenter;
    new fsexit;
    new fsenter1;
    new fsenter2;


    //Fahrschule
    forward IsAFS(playerid);
    forward IsAFSCar(carid);


    //Fahrschule
    public IsAFS(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==11)
    {
    return 1;
    }
    else if(leader==11)
    {
    return 1;
    }
    else if(TakingLesson[playerid] == 1)
    {
    return 1;
    }
    }
    return 0;
    }
    public IsAFSCar(carid)
    {
    for(new i = 0; i < sizeof(fsCars); i++)
    {
    if(carid == fsCars[i])
    {
    return 1;
    }
    }
    return 0;
    }


    if(pickupid == fsenter)
    {
    SetPlayerPos(playerid,-2029.798339,-106.675910,1035.171875);
    SetPlayerVirtualWorld(playerid, 2);
    SetPlayerInterior(playerid, 3);
    }
    if(pickupid == fsexit)
    {
    SetPlayerPos(playerid,-2027.6202,-98.5120,35.1641);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    }
    if(pickupid == fsenter1)
    {
    SetPlayerPos(playerid,-2029.8390,-124.0219,35.2103);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    }
    if(pickupid == fsenter2)
    {
    SetPlayerPos(playerid,-2029.1348,-117.1901,1035.1719);
    SetPlayerVirtualWorld(playerid, 2);
    SetPlayerInterior(playerid, 3);
    }


    fsenter = CreatePickup(1318,1,-2026.7104,-102.0641,35.1641,-1); //Fsenter
    fsexit = CreatePickup(1318,1,-2026.9424,-103.6040,1035.1826,-1); //Fsexit
    fsenter1 = CreatePickup(1318,1,-2029.8849,-119.6186,1035.1719,-1); //fsenter1
    fsenter2 = CreatePickup(1318,1,-2029.7388,-120.8581,35.2103,-1); //fsenter2


    //-------------------------------------[FS Cars]-----------------------------------------------------------
    fsCars[0] = CreateVehicle(487,-2027.7196,-111.2363,39.0985,5.0025,1,1,600); //
    fsCars[1] = CreateVehicle(560,-2064.3904,-83.9506,34.8699,0.7831,1,1,600); //
    fsCars[2] = CreateVehicle(560,-2068.4004,-83.9618,34.8742,0.8567,1,1,600); //
    fsCars[3] = CreateVehicle(560,-2072.7258,-84.0083,34.8691,0.0568,1,1,600); //
    fsCars[4] = CreateVehicle(560,-2077.0510,-84.0153,34.8695,359.7835,1,1,600); //
    fsCars[5] = CreateVehicle(405,-2080.9822,-84.2342,35.0391,0.9982,1,1,600); //
    fsCars[6] = CreateVehicle(405,-2085.3892,-83.9527,35.0393,1.2645,1,1,600); //
    fsCars[7] = CreateVehicle(405,-2089.4353,-84.2617,35.0391,0.6078,1,1,600); //
    fsCars[8] = CreateVehicle(405,-2093.7131,-84.1595,35.0956,359.5796,1,1,600); //
    fsCars[9] = CreateVehicle(521,-2093.7769,-101.0666,34.7345,270.1075,1,1,600); //
    fsCars[10] = CreateVehicle(461,-2093.3687,-98.8547,34.7485,266.8549,1,1,600); //
    fsCars[11] = CreateVehicle(581,-2092.6753,-97.2982,34.7605,271.2275,1,1,600); //
    fsCars[12] = CreateVehicle(514,-2023.0475,-94.5940,35.7504,90.0886,1,1,600); //
    fsCars[13] = CreateVehicle(452,-1757.3842,-195.8041,-0.5298,181.7123,1,1,600); //
    fsCars[14] = CreateVehicle(452,-1762.1937,-195.9790,-0.2899,181.6277,1,1,600); //
    fsCars[16] = CreateVehicle(593,325.1767,2537.9663,17.2671,179.3862,1,1,600); //
    fsCars[17] = CreateVehicle(593,290.6677,2540.4951,17.2812,180.2924,1,1,600); //
    fsCars[18] = CreateVehicle(514,-2023.0011,-89.6413,35.9079,90.2796,1,1,600); //
    fsCars[19] = CreateVehicle(450,-1732.7373,-92.8904,4.1964,146.6553,1,1,600); //
    fsCars[20] = CreateVehicle(450,-1749.1136,-88.9948,4.1765,195.4723,1,1,600); //


    if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)// Fahrschule
    {
    SetPlayerPos(playerid, -2017.8889,-105.2508,35.0212);
    SetPlayerFacingAngle(playerid, 183.1620);
    SetPlayerVirtualWorld(playerid, 2);
    SetPlayerInterior(playerid, 3);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }



    Danke im Vorraus





    Wieder mal ich ^^
    Habe mal eine frage unzwar habe ich errors bei /gov wenn ich ARMY einfügen möchte.


    ...GhosT.pwn(14664) : error 029: invalid expression, assumed zero
    ...GhosT.pwn(14664) : warning 215: expression has no effect
    ...GhosT.pwn(14664) : error 001: expected token: ";", but found ")"
    ...GhosT.pwn(14664) : error 029: invalid expression, assumed zero


    Die Zeile ist diese


    if(gTeam[playerid] != 2) || gTeam[playerid] != 3)


    Und die Funktion dies ^^


    if(strcmp(cmd, "/gov", true) == 0 || strcmp(cmd, "/reg", true) == 0)
    {
    new rankname[64];
    if(IsPlayerConnected(playerid))
    {
    if(gTeam[playerid] != 2) || gTeam[playerid] != 3)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist kein Beamter !");
    return 1;
    }
    if(PlayerInfo[playerid][pRank] < 6)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du brauchst Rang 6 !");
    return 1;
    }
    GetPlayerName(playerid, sendername, sizeof(sendername));
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
    idx++;
    }
    new offset = idx;
    new result[64];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
    result[idx - offset] = cmdtext[idx];
    idx++;
    }
    result[idx - offset] = EOS;
    if(!strlen(result))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /gov [text]");
    return 1;
    }
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
    if(PlayerInfo[playerid][pRank] == 6) { rankname = "Polizeihauptkommissar"; }
    else if(PlayerInfo[playerid][pRank] == 7) { rankname = "Erster Polizeihauptkommissar"; }
    else if(PlayerInfo[playerid][pRank] == 8) { rankname = "Polizeirat"; }
    else if(PlayerInfo[playerid][pRank] == 9) { rankname = "Polizeioberrat"; }
    else if(PlayerInfo[playerid][pRank] == 10) { rankname = "Polizeidirektor"; }
    else if(PlayerInfo[playerid][pRank] == 11) { rankname = "Leitender Polizeidirektor"; }
    else if(PlayerInfo[playerid][pRank] == 12) { rankname = "Polizeipräsident"; }
    else { rankname = "Polizeihauptkommissar"; }
    }
    if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)
    {
    if(PlayerInfo[playerid][pRank] == 6) { rankname = "Undercover Agent"; }
    else if(PlayerInfo[playerid][pRank] == 7) { rankname = "Assistant Special Agent"; }
    else if(PlayerInfo[playerid][pRank] == 8) { rankname = "S.W.A.T"; }
    else if(PlayerInfo[playerid][pRank] == 9) { rankname = "Specialist"; }
    else if(PlayerInfo[playerid][pRank] == 10) { rankname = "S.W.A.T Ausbilder"; }
    else if(PlayerInfo[playerid][pRank] == 11) { rankname = "Stellv. Department Direktor"; }
    else if(PlayerInfo[playerid][pRank] == 12) { rankname = "Department Director"; }
    else { rankname = "Undercover Agent"; }
    }
    if(PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3)
    {
    if(PlayerInfo[playerid][pRank] == 6) { rankname = "Staff Sergeant"; }
    else if(PlayerInfo[playerid][pRank] == 7) { rankname = "Sergeant first class"; }
    else if(PlayerInfo[playerid][pRank] == 8) { rankname = "Master sergeant"; }
    else if(PlayerInfo[playerid][pRank] == 9) { rankname = "Sergeant major"; }
    else if(PlayerInfo[playerid][pRank] == 10) { rankname = "first sergeant"; }
    else if(PlayerInfo[playerid][pRank] == 11) { rankname = "Command sgt Major"; }
    else if(PlayerInfo[playerid][pRank] == 12) { rankname = "Segeant Major of the Army"; }
    else { rankname = "Staff Sergeant"; }
    }


    SendClientMessageToAll(COLOR_WHITE, "....:::: Regierungs-Nachricht ::::....");
    format(string, sizeof(string), "%s %s: %s", rankname,sendername, result);
    SendClientMessageToAll(COLOR_DBLUE, string);
    }
    return 1;
    }


    Danke im Vorraus
    :thumbup:
    sry wegen soviele fragen ist nunmal notwendig

    Wie kann ich machen bzw. was muss ich machen das Army auch /wanted machen kann.
    /makeleader (id) 1 = cop
    /makeleader (id) 2 = FBI
    /makeleader (id) 3 = ARMY


    if(strcmp(cmd, "/wanted", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(gTeam[playerid] == 2 || IsACop(playerid))
    {
    new x;
    SendClientMessage(playerid, COLOR_GREEN, "____Wantedliste____");
    for(new i=0; i < MAX_PLAYERS; i++) {
    if(IsPlayerConnected(i))
    {
    if(WantedLevel[i] > 0)
    {
    GetPlayerName(i, giveplayer, sizeof(giveplayer));
    format(string, sizeof(string), "%s%s: %d", string,giveplayer,WantedLevel[i]);
    x++;
    if(x > 3) {
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    x = 0;
    format(string, sizeof(string), "");
    } else {
    format(string, sizeof(string), "%s, ", string);
    }
    }
    }
    }
    if(x <= 3 && x > 0) {
    string[strlen(string)-2] = '.';
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " You're not a Cop / FBI / National Guard !");
    }
    }//not connected
    return 1;
    }


    MfG
    Danke im Vorraus