Beiträge von Crank

    #include <a_samp>


    #define FARBE_ROT 0xAA3333AA


    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" CS Mos by Henning");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n----------------------------------");
    print(" CS Mod by Henning");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {
    // Player Klassen
    SetGameModeText("CS Mod");
    AddPlayerClass(285,2776.2981,-2379.0464,16.2244,88.4118,16,3,4,1,22,22); // CT
    AddPlayerClass(258,2536.9382,-2535.7244,13.6250,268.8935,16,3,4,1,22,22); // T

    //Fahrzeuge
    AddStaticVehicle(601,2777.9729,-2433.9578,13.3965,90.1596,1,1); // swat1
    AddStaticVehicle(601,2778.0356,-2440.1118,13.3948,89.0403,1,1); // swat2
    AddStaticVehicle(528,2758.8315,-2375.5103,13.6769,178.3527,0,0); // FBI
    AddStaticVehicle(497,2774.9885,-2390.8638,19.0606,180.1215,0,1); // PHeli
    AddStaticVehicle(489,2461.5103,-2603.9871,13.8049,268.1043,14,123); // truck 1
    AddStaticVehicle(489,2461.1106,-2609.5408,13.8053,269.1462,120,123); // truck 2
    AddStaticVehicle(489,2461.2163,-2614.3079,13.8056,269.2205,120,123); // truck 3
    AddStaticVehicle(489,2460.8347,-2619.9602,13.8066,268.4834,14,123); // truck 4
    AddStaticVehicle(469,2509.0422,-2629.3987,14.2617,0.0056,1,3); // sparrow
    return 1;
    }


    public OnPlayerRequestSpawn(playerid)
    {
    SetPlayerPos(playerid, 2715.2871,-2486.3831,29.1932);
    SetPlayerCameraPos(playerid, 2715.2393,-2492.1199,29.1932);
    SetPlayerCameraLookAt(playerid, 2715.2871,-2486.3831,29.1932);
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    SetPlayerHealth(playerid, 25);
    SetPlayerArmour(playerid, 25);
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])


    if (strcmp("/Waffen", cmdtext, true) == 0)
    SendClientMessage(playerid, FARBE_ROT, "Du kannst mit dem Befehl /waffename flogende Waffen kaufen.");
    SendClientMessage(playerid, FARBE_ROT, "3 Granaten 500$, 5 Molotov 500$, 100 S. Pistole 550$,");
    SendClientMessage(playerid, FARBE_ROT, "150 S. MP5 700$, 80 S. M4 800$, 45 S. Desert 600$, 15 S. Sniper 6000$.");
    return 1;
    }



    if (strcmp("/granaten", cmdtext, true) == 0)
    SendClientMessage(playerid, FARBE_ROT, "Du hast 3 Granaten für 500$ gekauft.");
    GivePlayerWeapon(playerid, 16, 3);
    GivePlayerMoney(playerid, -500);
    return 1;
    }




    if (strcmp("/Molotov", cmdtext, true) == 0)
    SendClientMessage(playerid, FARBE_ROT, "Du hast 5 Molotov für 500$ gekauft.");
    GivePlayerWeapon(playerid, 18, 5);
    GivePlayerMoney(playerid, -500);
    return 1;
    }



    if (strcmp("/Pistole", cmdtext, true) == 0)
    SendClientMessage(playerid, FARBE_ROT, "Du hast 100 Schuss für 550$ gekauft.");
    GivePlayerWeapon(playerid, 22, 100);
    GivePlayerMoney(playerid, -550);
    return 1;
    }



    if (strcmp("/MP5", cmdtext, true) == 0)
    SendClientMessage(playerid, FARBE_ROT, "Du hast 150 Schuss MP5 für 700$ gekauft.");
    GivePlayerWeapon(playerid, 29, 150);
    GivePlayerMoney(playerid, -700);
    return 1;
    }




    if (strcmp("/M4", cmdtext, true) == 0)
    SendClientMessage(playerid, FARBE_ROT, "Du hast 80 Schuss M4 für 800$ gekauft.");
    GivePlayerWeapon(playerid, 31, 80);
    GivePlayerMoney(playerid, -800);
    return 1;
    }



    if (strcmp("/Desert", cmdtext, true) == 0)
    SendClientMessage(playerid, FARBE_ROT, "Du hast 45 Schuss Desert Eagle für 600$ gekauft.");
    GivePlayerWeapon(playerid, 24, 45);
    GivePlayerMoney(playerid, -600);
    return 1;
    }


    if (strcmp("/Desert", cmdtext, true) == 0)
    SendClientMessage(playerid, FARBE_ROT, "Du hast 15 Schuss Sniper für 6000$ gekauft.");
    GivePlayerWeapon(playerid, 34, 15);
    GivePlayerMoney(playerid, -6000);
    return 1;
    }

    Danke für antwort aber dann erhalte ich den bericht:
    C:\Dokumente und Einstellungen\Henning\Desktop\Pawno\Untitled.pwn(76) : error 010: invalid function or declaration
    C:\Dokumente und Einstellungen\Henning\Desktop\Pawno\Untitled.pwn(80) : error 010: invalid function or declaration
    C:\Dokumente und Einstellungen\Henning\Desktop\Pawno\Untitled.pwn(85) : error 010: invalid function or declaration
    C:\Dokumente und Einstellungen\Henning\Desktop\Pawno\Untitled.pwn(89) : error 010: invalid function or declaration
    C:\Dokumente und Einstellungen\Henning\Desktop\Pawno\Untitled.pwn(93) : error 010: invalid function or declaration
    C:\Dokumente und Einstellungen\Henning\Desktop\Pawno\Untitled.pwn(97) : error 010: invalid function or declaration
    C:\Dokumente und Einstellungen\Henning\Desktop\Pawno\Untitled.pwn(101) : error 010: invalid function or declaration
    C:\Dokumente und Einstellungen\Henning\Desktop\Pawno\Untitled.pwn(105) : error 010: invalid function or declaration
    C:\Dokumente und Einstellungen\Henning\Desktop\Pawno\Untitled.pwn(110) : error 010: invalid function or declaration
    C:\Dokumente und Einstellungen\Henning\Desktop\Pawno\Untitled.pwn(114) : error 010: invalid function or declaration
    C:\Dokumente und Einstellungen\Henning\Desktop\Pawno\Untitled.pwn(118) : error 010: invalid function or declaration
    C:\Dokumente und Einstellungen\Henning\Desktop\Pawno\Untitled.pwn(122) : error 010: invalid function or declaration
    C:\Dokumente und Einstellungen\Henning\Desktop\Pawno\Untitled.pwn(125) : error 010: invalid function or declaration
    C:\Dokumente und Einstellungen\Henning\Desktop\Pawno\Untitled.pwn(129) : error 010: invalid function or declaration
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    14 Errors.
    Zeig doch ma an meinen script wie du das genau meinst:
    #include <a_samp>


    #define FARBE_ROT 0xAA3333AA


    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" CS Mos by Henning");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n----------------------------------");
    print(" CS Mod by Henning");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {
    // Player Klassen
    SetGameModeText("CS Mod");
    AddPlayerClass(285,2776.2981,-2379.0464,16.2244,88.4118,16,3,4,1,22,22); // CT
    AddPlayerClass(258,2536.9382,-2535.7244,13.6250,268.8935,16,3,4,1,22,22); // T

    //Fahrzeuge
    AddStaticVehicle(601,2777.9729,-2433.9578,13.3965,90.1596,1,1); // swat1
    AddStaticVehicle(601,2778.0356,-2440.1118,13.3948,89.0403,1,1); // swat2
    AddStaticVehicle(528,2758.8315,-2375.5103,13.6769,178.3527,0,0); // FBI
    AddStaticVehicle(497,2774.9885,-2390.8638,19.0606,180.1215,0,1); // PHeli
    AddStaticVehicle(489,2461.5103,-2603.9871,13.8049,268.1043,14,123); // truck 1
    AddStaticVehicle(489,2461.1106,-2609.5408,13.8053,269.1462,120,123); // truck 2
    AddStaticVehicle(489,2461.2163,-2614.3079,13.8056,269.2205,120,123); // truck 3
    AddStaticVehicle(489,2460.8347,-2619.9602,13.8066,268.4834,14,123); // truck 4
    AddStaticVehicle(469,2509.0422,-2629.3987,14.2617,0.0056,1,3); // sparrow
    return 1;
    }


    public OnPlayerRequestSpawn(playerid)
    {
    SetPlayerPos(playerid, 2715.2871,-2486.3831,29.1932);
    SetPlayerCameraPos(playerid, 2715.2393,-2492.1199,29.1932);
    SetPlayerCameraLookAt(playerid, 2715.2871,-2486.3831,29.1932);
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    SetPlayerHealth(playerid, 25);
    SetPlayerArmour(playerid, 25);
    return 1;
    }

    Ich habe einige cmd erstelt jedoch weiß ich nicht wie ich mehrere cmd`s einfüge vieleicht kan mir jemand helfen.
    {
    if (strcmp("/Waffen", cmdtext, true) == 0)
    SendClientMessage(playerid, FARBE_ROT, "Du kannst mit dem Befehl /waffename flogende Waffen kaufen.");
    SendClientMessage(playerid, FARBE_ROT, "3 Granaten 500$, 5 Molotov 500$, 100 S. Pistole 550$,");
    SendClientMessage(playerid, FARBE_ROT, "150 S. MP5 700$, 80 S. M4 800$, 45 S. Desert 600$, 15 S. Sniper 6000$.");
    return 1;
    }



    {
    if (strcmp("/granaten", cmdtext, true) == 0)
    SendClientMessage(playerid, FARBE_ROT, "Du hast 3 Granaten für 500$ gekauft.");
    GivePlayerWeapon(playerid, 16, 3);
    GivePlayerMoney(playerid, -500);
    return 1;
    }




    {
    if (strcmp("/Molotov", cmdtext, true) == 0)
    SendClientMessage(playerid, FARBE_ROT, "Du hast 5 Molotov für 500$ gekauft.");
    GivePlayerWeapon(playerid, 18, 5);
    GivePlayerMoney(playerid, -500);
    return 1;
    }



    {
    if (strcmp("/Pistole", cmdtext, true) == 0)
    SendClientMessage(playerid, FARBE_ROT, "Du hast 100 Schuss für 550$ gekauft.");
    GivePlayerWeapon(playerid, 22, 100);
    GivePlayerMoney(playerid, -550);
    return 1;
    }



    {
    if (strcmp("/MP5", cmdtext, true) == 0)
    SendClientMessage(playerid, FARBE_ROT, "Du hast 150 Schuss MP5 für 700$ gekauft.");
    GivePlayerWeapon(playerid, 29, 150);
    GivePlayerMoney(playerid, -700);
    return 1;
    }




    {
    if (strcmp("/M4", cmdtext, true) == 0)
    SendClientMessage(playerid, FARBE_ROT, "Du hast 80 Schuss M4 für 800$ gekauft.");
    GivePlayerWeapon(playerid, 31, 80);
    GivePlayerMoney(playerid, -800);
    return 1;
    }



    {
    if (strcmp("/Desert", cmdtext, true) == 0)
    SendClientMessage(playerid, FARBE_ROT, "Du hast 45 Schuss Desert Eagle für 600$ gekauft.");
    GivePlayerWeapon(playerid, 24, 45);
    GivePlayerMoney(playerid, -600);
    return 1;
    }



    {
    if (strcmp("/Desert", cmdtext, true) == 0)
    SendClientMessage(playerid, FARBE_ROT, "Du hast 15 Schuss Sniper für 6000$ gekauft.");
    GivePlayerWeapon(playerid, 34, 15);
    GivePlayerMoney(playerid, -6000);
    return 1;
    }