SAMP03 Bot Scripting Probleme! Login und gleich left... Warum!?

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
  • Hallöchen!
    Zuerst habe ich das so gemacht, wie es hier beschrieben wurde!
    http://dein-board.com/index.php?page=Thread&postID=9226


    doch das hat nicht funzt!


    Nun habe ich das wie folgt: "Filterscript"


    new hubi;
    new lvcityfly;





    #pragma tabsize 0
    #include <a_samp>


    //-------------------------------------------------


    public OnGameModeInit()
    {
    ConnectNPC("hubi","hubi");
    hubi = CreateVehicle(487, 2000.0, 2000.0, 2000.0, 7.0, 0, 0, -1);


    ConnectNPC("lvcityfly","lvcityfly");
    lvcityfly = CreateVehicle(487, 2000.0, 2000.0, 2000.0, 7.0, 0, 0, -1);
    return 1;
    }






    public OnPlayerConnect(playerid)
    {
    if(IsPlayerNPC(playerid)) {
    new ip_addr_npc[64+1];
    new ip_addr_server[64+1];
    GetServerVarAsString("bind",ip_addr_server,64);
    GetPlayerIp(playerid,ip_addr_npc,64);


    if(!strlen(ip_addr_server)) {
    ip_addr_server = "127.0.0.1";
    }


    if(strcmp(ip_addr_npc,ip_addr_server,true) != 0) {
    // this bot is remote connecting
    printf("NPC: Got a remote NPC connecting from %s and I'm kicking it.",ip_addr_npc);
    Kick(playerid);
    return 0;
    }
    printf("NPC: Connection from %s is allowed.",ip_addr_npc);
    }


    return 1;
    }



    Dabei loggen die beiden sich zwar ein, aber auch gleich wieder aus!
    Wieso!?



    Was mache ich da verkehrt!?


    Kann mir da jemand helfen!?
    Ich glaube, da wird dann jedem geholfen...


    Übrigens!
    Ich kann auch jedem helfen... www.luimi.de


    Danke






    Diese Variante scheint mir sogar besser zu sein, doch die Bots loggen sich nach dem einloggen gleich wieder aus!? WIESO???


    /-------------------------------------------------
    //
    // NPC test
    //
    //-------------------------------------------------


    #pragma tabsize 0
    #include <a_samp>


    //-------------------------------------------------


    public OnFilterScriptInit()
    {
    ConnectNPC("hubi","hubi");
    ConnectNPC("lvcityfly","lvcityfly");


    // Testing
    //ConnectNPC("TestIdle","onfoot_test");
    //ConnectNPC("TaxiTest","mat_test");


    return 1;
    }


    //-------------------------------------------------
    // IMPORTANT: This restricts NPCs connecting from
    // an IP address outside this server. If you need
    // to connect NPCs externally you will need to modify
    // the code in this callback.


    public OnPlayerConnect(playerid)
    {
    if(IsPlayerNPC(playerid)) {
    new ip_addr_npc[64+1];
    new ip_addr_server[64+1];
    GetServerVarAsString("bind",ip_addr_server,64);
    GetPlayerIp(playerid,ip_addr_npc,64);


    if(!strlen(ip_addr_server)) {
    ip_addr_server = "127.0.0.1";
    }


    if(strcmp(ip_addr_npc,ip_addr_server,true) != 0) {
    // this bot is remote connecting
    printf("NPC: Got a remote NPC connecting from %s and I'm kicking it.",ip_addr_npc);
    Kick(playerid);
    return 0;
    }
    printf("NPC: Connection from %s is allowed.",ip_addr_npc);
    }


    return 1;
    }


    //-------------------------------------------------


    public OnPlayerRequestClass(playerid, classid)
    {
    if(!IsPlayerNPC(playerid)) return 0; // We only deal with NPC players in this script


    new playername[64];
    GetPlayerName(playerid,playername,64);


    if(!strcmp(playername,"hubi",true)) {
    SetSpawnInfo(playerid,0,0,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
    }
    else if(!strcmp(playername,"TrainDriverSF",true)) {
    SetSpawnInfo(playerid,0,0,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
    }



    return 1;
    }


    //-------------------------------------------------


    public OnPlayerSpawn(playerid)
    {
    if(!IsPlayerNPC(playerid)) return 1; // We only deal with NPC players in this script


    new playername[64];
    GetPlayerName(playerid,playername,64);


    if(!strcmp(playername,"hubi",true)) {
    PutPlayerInVehicle(playerid,1,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"lvcityfly",true)) {
    PutPlayerInVehicle(playerid,5,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    return 1;
    }










    Anmerkung:
    Ich nutze ein eigenes Gamemode, wobei ich die Recordings auch dort gemacht habe...





    Man sieht sich immer 2x im Leben!
    Wenn man schläft, schluckt mannicht! [medizinisch bewiesen]

    3 Mal editiert, zuletzt von Breinumer ()

  • Du musst das irgendwo in den Gamemode einbauen mit IsPlayerNPC oder so


    Probier den Bot mal mit Grandlarc aus, das müsste gehen ;)


    Also! LÄUFT!
    Für alle! Gamemode Grandlarc mit diesem Filterscript läuft..


    //-------------------------------------------------
    //
    // NPC test
    //
    //-------------------------------------------------


    #pragma tabsize 0
    #include <a_samp>
    #include <a_npc>
    //-------------------------------------------------


    public OnFilterScriptInit()
    {
    ConnectNPC("hubi","hubi");
    ConnectNPC("lvcityfly","lvcityfly");


    // Testing
    //ConnectNPC("TestIdle","onfoot_test");
    //ConnectNPC("TaxiTest","mat_test");


    return 1;
    }




    //-------------------------------------------------


    public OnPlayerRequestClass(playerid, classid)
    {
    if(!IsPlayerNPC(playerid)) return 0; // We only deal with NPC players in this script


    new playername[64];
    GetPlayerName(playerid,playername,64);


    if(!strcmp(playername,"hubi",true)) {
    SetSpawnInfo(playerid,0,0,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
    }
    else if(!strcmp(playername,"lvcityfly",true)) {
    SetSpawnInfo(playerid,0,0,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
    }



    return 1;
    }


    //-------------------------------------------------


    public OnPlayerSpawn(playerid)
    {
    if(!IsPlayerNPC(playerid)) return 1; // We only deal with NPC players in this script


    new playername[64];
    GetPlayerName(playerid,playername,64);


    if(!strcmp(playername,"hubi",true)) {
    PutPlayerInVehicle(playerid,1,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"lvcityfly",true)) {
    PutPlayerInVehicle(playerid,5,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    return 1;
    }







    DANKE!


    Aber wieso geht das jetzt mit Grandlarc!?
    Was ist im gamemode anderst!?



    ?( ?( ?(
    ERBITTE UM HILFE!
    Ich möchte mein GM nutzen!
    Was ist der Unterschied zwischen Grandlarc und meinem GM, daß das geht!?
    Boah! Ich bin am Verzweifeln!


    Alles geht, nur nicht auf meinem Script!
    ERBITTE DRINGEND UM HILFE! Danke 8)



    Man sieht sich immer 2x im Leben!
    Wenn man schläft, schluckt mannicht! [medizinisch bewiesen]

    2 Mal editiert, zuletzt von Breinumer ()

  • Benutze Bitte [PWN] für Codes.


    Filterscript:
    //-------------------------------------------------
    //
    // NPC test
    //
    //-------------------------------------------------


    #pragma tabsize 0
    #include <a_samp>
    #include <a_npc>
    //-------------------------------------------------


    public OnFilterScriptInit()
    {
    ConnectNPC("hubi","hubi");
    ConnectNPC("lvcityfly","lvcityfly");


    // Testing
    //ConnectNPC("TestIdle","onfoot_test");
    //ConnectNPC("TaxiTest","mat_test");


    return 1;
    }



    //-------------------------------------------------


    public OnPlayerRequestClass(playerid, classid)
    {
    if(!IsPlayerNPC(playerid)) return 0; // We only deal with NPC players in this script


    new playername[64];
    GetPlayerName(playerid,playername,64);


    if(!strcmp(playername,"hubi",true)) {
    SetSpawnInfo(playerid,0,0,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
    }
    else if(!strcmp(playername,"lvcityfly",true)) {
    SetSpawnInfo(playerid,0,0,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
    }



    return 1;
    }



    //-------------------------------------------------


    public OnPlayerSpawn(playerid)
    {
    if(!IsPlayerNPC(playerid)) return 1; // We only deal with NPC players in this script


    new playername[64];
    GetPlayerName(playerid,playername,64);


    if(!strcmp(playername,"hubi",true)) {
    PutPlayerInVehicle(playerid,1,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"lvcityfly",true)) {
    PutPlayerInVehicle(playerid,5,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    return 1;
    }




    NPC MODE SCRIPT:
    // Breinumers Helicopter NPC



    // name der recordeten datei (im beispiel war es CARBOT oder ZIVIBOT)
    #define RECORDING "hubi"
    // Record typ, 1 = in einen fahrzeug, 2 = zu fuß
    #define RECORDING_TYPE 1


    #include <a_npc>
    main(){}
    public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
    public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
    public OnNPCExitVehicle() StopRecordingPlayback();



    Bei Grandlarc klappts!
    Bei meinem Gamemod nicht!
    Wieso!?



    Man sieht sich immer 2x im Leben!
    Wenn man schläft, schluckt mannicht! [medizinisch bewiesen]

  • Filterscript:
    //-------------------------------------------------
    //
    // NPC test
    //
    //-------------------------------------------------


    #pragma tabsize 0
    #include <a_samp>
    #include <a_npc>
    //-------------------------------------------------


    public OnFilterScriptInit()
    {
    ConnectNPC("hubi","hubi");
    ConnectNPC("lvcityfly","lvcityfly");


    // Testing
    //ConnectNPC("TestIdle","onfoot_test");
    //ConnectNPC("TaxiTest","mat_test");


    return 1;
    }




    //-------------------------------------------------


    public OnPlayerRequestClass(playerid, classid)
    {
    if(!IsPlayerNPC(playerid)) return 0; // We only deal with NPC players in this script


    new playername[64];
    GetPlayerName(playerid,playername,64);


    if(!strcmp(playername,"hubi",true)) {
    SetSpawnInfo(playerid,0,0,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
    }
    else if(!strcmp(playername,"lvcityfly",true)) {
    SetSpawnInfo(playerid,0,0,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
    }



    return 1;
    }



    //-------------------------------------------------


    public OnPlayerSpawn(playerid)
    {
    if(!IsPlayerNPC(playerid)) return 1; // We only deal with NPC players in this script


    new playername[64];
    GetPlayerName(playerid,playername,64);


    if(!strcmp(playername,"hubi",true)) {
    PutPlayerInVehicle(playerid,1,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"lvcityfly",true)) {
    PutPlayerInVehicle(playerid,5,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    return 1;
    }





    NPC MODE SCRIPT:
    // Breinumers Helicopter NPC




    // name der recordeten datei (im beispiel war es CARBOT oder ZIVIBOT)
    #define RECORDING "hubi"
    // Record typ, 1 = in einen fahrzeug, 2 = zu fuß
    #define RECORDING_TYPE 1


    #include <a_npc>
    main(){}
    public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
    public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
    public OnNPCExitVehicle() StopRecordingPlayback();




    Bei Grandlarc klappts!
    Bei meinem Gamemod nicht!
    Wieso!?

    Meine Werke


    Minecraft Signatur Buggt



    Sowas wie 10/10 gibt es nicht. Ausser bei Satan

  • Hi! Nun funzt das fast alles!



    Alles klappt, nur das anstatt ein Hubschrauber, den 487er, EIN AUTO ALS VEHICLE BENUTZT wird!


    Nun meine Frage!?


    Wo sind die vorhandenen Vehicles verankert?
    Oder habe ich jetzt in den Scripts was übersehen!?


    PAWN des Filterscript:


    //
    // NPC initialisation for Grand Larceny
    //
    //-------------------------------------------------


    #pragma tabsize 0
    #include <a_samp>


    //-------------------------------------------------


    public OnFilterScriptInit()
    {
    ConnectNPC("TrainDriverLV","train_lv");
    ConnectNPC("TrainDriverLS","train_ls");
    ConnectNPC("TrainDriverSF","train_sf");


    ConnectNPC("PilotLV","at400_lv");
    ConnectNPC("PilotSF","at400_sf");
    ConnectNPC("PilotLS","at400_ls");


    ConnectNPC("hubi","hubi");
    ConnectNPC("lvcityfly","lvcityfly");


    // Testing
    //ConnectNPC("TestIdle","onfoot_test");
    //ConnectNPC("TaxiTest","mat_test");


    return 1;
    }


    //-------------------------------------------------
    // IMPORTANT: This restricts NPCs connecting from
    // an IP address outside this server. If you need
    // to connect NPCs externally you will need to modify
    // the code in this callback.


    public OnPlayerConnect(playerid)
    {
    if(IsPlayerNPC(playerid)) {
    new ip_addr_npc[64+1];
    new ip_addr_server[64+1];
    GetServerVarAsString("bind",ip_addr_server,64);
    GetPlayerIp(playerid,ip_addr_npc,64);


    if(!strlen(ip_addr_server)) {
    ip_addr_server = "127.0.0.1";
    }


    if(strcmp(ip_addr_npc,ip_addr_server,true) != 0) {
    // this bot is remote connecting
    printf("NPC: Got a remote NPC connecting from %s and I'm kicking it.",ip_addr_npc);
    Kick(playerid);
    return 0;
    }
    printf("NPC: Connection from %s is allowed.",ip_addr_npc);
    }


    return 1;
    }


    //-------------------------------------------------


    public OnPlayerRequestClass(playerid, classid)
    {
    if(!IsPlayerNPC(playerid)) return 0; // We only deal with NPC players in this script


    new playername[64];
    GetPlayerName(playerid,playername,64);


    if(!strcmp(playername,"TrainDriverLV",true)) {
    SetSpawnInfo(playerid,69,255,1462.0745,2630.8787,10.8203,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"TrainDriverSF",true)) {
    SetSpawnInfo(playerid,69,255,-1942.7950,168.4164,27.0006,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"TrainDriverLS",true)) {
    SetSpawnInfo(playerid,69,255,1700.7551,-1953.6531,14.8756,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"PilotLV",true)) {
    SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"PilotSF",true)) {
    SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"PilotLS",true)) {
    SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"TestIdleDriver",true)) {
    SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"TaxiTest",true)) {
    SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"hubi",true)) {
    SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"lvcityfly",true)) {
    SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    return 0;
    }


    //-------------------------------------------------


    public OnPlayerSpawn(playerid)
    {
    if(!IsPlayerNPC(playerid)) return 1; // We only deal with NPC players in this script


    new playername[64];
    GetPlayerName(playerid,playername,64);


    if(!strcmp(playername,"TrainDriverLV",true)) {
    PutPlayerInVehicle(playerid,1,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"TrainDriverSF",true)) {
    PutPlayerInVehicle(playerid,5,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"TrainDriverLS",true)) {
    PutPlayerInVehicle(playerid,9,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"PilotLV",true)) {
    PutPlayerInVehicle(playerid,13,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"PilotSF",true)) {
    PutPlayerInVehicle(playerid,14,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"PilotLS",true)) {
    PutPlayerInVehicle(playerid,15,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"TestIdleDriver",true)) {
    PutPlayerInVehicle(playerid,43,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"TaxiTest",true)) {
    PutPlayerInVehicle(playerid,968,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"hubi",true)) {
    PutPlayerInVehicle(playerid,968,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"lvcityfly",true)) {
    PutPlayerInVehicle(playerid,968,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    return 1;
    }


    //-------------------------------------------------
    // EOF




    Und der des einen Bots:


    //
    // A Driver NPC that goes around a path continuously
    // Kye 2009
    //


    #include <a_npc>


    #define NUM_PLAYBACK_FILES 1
    new gPlaybackFileCycle=0;


    //------------------------------------------


    main(){}


    //------------------------------------------


    NextPlayback()
    {
    // Reset the cycle count if we reach the max
    if(gPlaybackFileCycle==NUM_PLAYBACK_FILES) gPlaybackFileCycle = 0;


    if(gPlaybackFileCycle==0) {
    StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"lvcityfly");
    }



    gPlaybackFileCycle++;
    }



    //------------------------------------------


    public OnRecordingPlaybackEnd()
    {
    NextPlayback();
    }


    //------------------------------------------


    public OnNPCEnterVehicle(vehicleid, seatid)



    {
    NextPlayback();
    }


    //------------------------------------------


    public OnNPCExitVehicle()
    {
    StopRecordingPlayback();
    gPlaybackFileCycle = 0;
    }


    //------------------------------------




    Demnach ist alles IN ORDNUNG!
    Aber wo liegt der hund begraben, daß anstatt ein Auto eben ein Hubschrauiber fliegt!?


    Danke um Rückmeldung



    Man sieht sich immer 2x im Leben!
    Wenn man schläft, schluckt mannicht! [medizinisch bewiesen]

  • //
    // A Driver NPC that goes around a path continuously
    // Kye 2009
    //
    #include <a_npc>
    #define NUM_PLAYBACK_FILES 1
    new gPlaybackFileCycle=0;
    //------------------------------------------
    main(){}
    //------------------------------------------
    NextPlayback()
    {
    // Reset the cycle count if we reach the max
    if(gPlaybackFileCycle==NUM_PLAYBACK_FILES) gPlaybackFileCycle = 0;
    if(gPlaybackFileCycle==0) {
    StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"hubi");
    }


    gPlaybackFileCycle++;
    }

    //------------------------------------------
    public OnRecordingPlaybackEnd()
    {
    NextPlayback();
    }
    //------------------------------------------
    public OnNPCEnterVehicle(vehicleid, seatid)
    {
    NextPlayback();
    }
    //------------------------------------------
    public OnNPCExitVehicle()
    {
    StopRecordingPlayback();
    gPlaybackFileCycle = 0;
    }
    //------------------------------------------






    FILERSCRIPT:
    //-------------------------------------------------
    //
    // NPC initialisation for Grand Larceny
    //
    //-------------------------------------------------
    #pragma tabsize 0
    #include <a_samp>
    //-------------------------------------------------
    public OnFilterScriptInit()
    {
    ConnectNPC("TrainDriverLV","train_lv");
    ConnectNPC("TrainDriverLS","train_ls");
    ConnectNPC("TrainDriverSF","train_sf");

    ConnectNPC("PilotLV","at400_lv");
    ConnectNPC("PilotSF","at400_sf");
    ConnectNPC("PilotLS","at400_ls");
    ConnectNPC("hubi","hubi");
    ConnectNPC("lvcityfly","lvcityfly");
    // Testing
    //ConnectNPC("TestIdle","onfoot_test");
    //ConnectNPC("TaxiTest","mat_test");

    return 1;
    }
    //-------------------------------------------------
    // IMPORTANT: This restricts NPCs connecting from
    // an IP address outside this server. If you need
    // to connect NPCs externally you will need to modify
    // the code in this callback.
    public OnPlayerConnect(playerid)
    {
    if(IsPlayerNPC(playerid)) {
    new ip_addr_npc[64+1];
    new ip_addr_server[64+1];
    GetServerVarAsString("bind",ip_addr_server,64);
    GetPlayerIp(playerid,ip_addr_npc,64);

    if(!strlen(ip_addr_server)) {
    ip_addr_server = "127.0.0.1";
    }

    if(strcmp(ip_addr_npc,ip_addr_server,true) != 0) {
    // this bot is remote connecting
    printf("NPC: Got a remote NPC connecting from %s and I'm kicking it.",ip_addr_npc);
    Kick(playerid);
    return 0;
    }
    printf("NPC: Connection from %s is allowed.",ip_addr_npc);
    }

    return 1;
    }
    //-------------------------------------------------
    public OnPlayerRequestClass(playerid, classid)
    {
    if(!IsPlayerNPC(playerid)) return 0; // We only deal with NPC players in this script

    new playername[64];
    GetPlayerName(playerid,playername,64);
    if(!strcmp(playername,"TrainDriverLV",true)) {
    SetSpawnInfo(playerid,69,255,1462.0745,2630.8787,10.8203,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"TrainDriverSF",true)) {
    SetSpawnInfo(playerid,69,255,-1942.7950,168.4164,27.0006,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"TrainDriverLS",true)) {
    SetSpawnInfo(playerid,69,255,1700.7551,-1953.6531,14.8756,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"PilotLV",true)) {
    SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"PilotSF",true)) {
    SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"PilotLS",true)) {
    SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"TestIdleDriver",true)) {
    SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"TaxiTest",true)) {
    SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"hubi",true)) {
    SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"lvcityfly",true)) {
    SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    return 0;
    }
    //-------------------------------------------------
    public OnPlayerSpawn(playerid)
    {
    if(!IsPlayerNPC(playerid)) return 1; // We only deal with NPC players in this script
    new playername[64];
    GetPlayerName(playerid,playername,64);
    if(!strcmp(playername,"TrainDriverLV",true)) {
    PutPlayerInVehicle(playerid,1,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"TrainDriverSF",true)) {
    PutPlayerInVehicle(playerid,5,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"TrainDriverLS",true)) {
    PutPlayerInVehicle(playerid,9,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"PilotLV",true)) {
    PutPlayerInVehicle(playerid,13,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"PilotSF",true)) {
    PutPlayerInVehicle(playerid,14,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"PilotLS",true)) {
    PutPlayerInVehicle(playerid,15,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"TestIdleDriver",true)) {
    PutPlayerInVehicle(playerid,43,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"TaxiTest",true)) {
    PutPlayerInVehicle(playerid,968,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"hubi",true)) {
    PutPlayerInVehicle(playerid,14,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"lvcityfly",true)) {
    PutPlayerInVehicle(playerid,14,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    return 1;
    }
    //-------------------------------------------------
    // EOF





    Man sieht sich immer 2x im Leben!
    Wenn man schläft, schluckt mannicht! [medizinisch bewiesen]