Server bleibt hängen

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
  • Hallo,
    Weiss jemand warum mein Server bei der Skinauswahl hängen bleibt?
    Ich kann keine Figuren auswählen nur schreiben nonst nichts.


    Gruß Thomas




    #include <a_samp>


    // This is a comment
    // uncomment the line below if you want to write a filterscript
    //#define FILTERSCRIPT


    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n----------------------------------");
    print(" GTA:SA[FUN]Mode");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {
    // Don't use these lines if it's a filterscript
    SetGameModeText("GTA:SA[FUN]Mode");
    // Player Class's
    AddPlayerClass(50,304.0916,2491.2686,16.4844,78.8187,0,0,0,0,0,0);
    AddPlayerClass(249,304.0916,2491.2686,16.4844,78.8187,0,0,0,0,0,0);
    AddPlayerClass(274,304.0916,2491.2686,16.4844,78.8187,0,0,0,0,0,0);
    AddPlayerClass(275,304.0916,2491.2686,16.4844,78.8187,0,0,0,0,0,0);
    AddPlayerClass(277,304.0916,2491.2686,16.4844,78.8187,0,0,0,0,0,0);
    AddPlayerClass(279,304.0916,2491.2686,16.4844,78.8187,0,0,0,0,0,0);
    AddPlayerClass(281,304.0916,2491.2686,16.4844,78.8187,0,0,0,0,0,0);
    AddPlayerClass(283,304.0916,2491.2686,16.4844,78.8187,0,0,0,0,0,0);



    }


    public OnGameModeExit()
    { print("Bye");
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {


    SetPlayerInterior(playerid,14);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
    }


    public OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerConnect(playerid)
    { new jstr[256];
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,playername,sizeof(playername));
    format(jstr, sizeof(jstr), "%s ist dem Spiel beigetreten", playername);
    SendClientMessageToAll(0xC0C0C0AA, jstr);
    SendClientMessage(playerid, 0xA52A2A, "Willkommen auf dem Server. Befehle und Waffen mit /freeweaponsmenu oder /themenu.");
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    { new string2[128];
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string2, sizeof(string2), "%s hat den Server verlassen", pname);
    SendClientMessageToAll(0xC0C0C0AA, string2);
    return 1;


    }


    public OnPlayerSpawn(playerid)
    {
    GivePlayerMoney(0, 50000);
    GivePlayerWeapon(0, 31, 500);
    GivePlayerWeapon(0, 16, 20); //Frag Granade
    GivePlayerWeapon(0, 4, 1); //Knife
    GivePlayerWeapon(0, 30, 500); //AK
    SetPlayerInterior(playerid, 0 );


    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason)
    {
    if(killerid==INVALID_PLAYER_ID) {
    SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
    }
    else {
    SendDeathMessage(killerid,playerid,reason);
    }



    return 1;


    }


    public OnVehicleSpawn(vehicleid)
    {
    return 1;
    }


    public OnVehicleDeath(vehicleid, killerid)
    {
    return 1;
    }


    public OnPlayerText(playerid, text[])
    {
    return 1;
    }


    public OnPlayerPrivmsg(playerid, recieverid, text[])
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
    // Do something here
    return 1;
    }
    return 0;
    }


    public OnPlayerInfoChange(playerid)
    {
    return 1;
    }


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    return 1;
    }


    public OnPlayerExitVehicle(playerid, vehicleid)
    {
    return 1;
    }


    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    return 1;
    }


    public OnPlayerEnterCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerEnterRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnRconCommand(cmd[])
    {
    return 1;
    }


    public OnObjectMoved(objectid)
    {
    return 1;
    }


    public OnPlayerObjectMoved(playerid, objectid)
    {
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    return 1;
    }


    public OnPlayerSelectedMenuRow(playerid, row)
    {
    return 1;
    }


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }

    Einmal editiert, zuletzt von Goldkiller ()