Beiträge von Kin[G]BaLLeR

    HideMenuForPlayer vlt unter die ganzen





    case 0:
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    new State = GetPlayerState(playerid);
    if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
    {
    return SetVehiclePos(vehicleid,859.2399,-2742.3735,12.2578),
    GameTextForPlayer(playerid, "~w~Willkommen im Stuntplatz", 5000, 5);
    }
    SetPlayerPos(playerid,859.2399,-2742.3735,12.2578);
    GameTextForPlayer(playerid, "~w~Willkommen im Stuntplatz", 5000, 5);
    new string2[120];
    new sendername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string2, sizeof(string2), "**Der Spieler %s hat sich zum Stuntplatz teleportiert! (/tele)**", sendername);
    SendClientMessageToAll(0xFFFF00AA, string2);
    HideMenuForPlayer(Teleport,playerid);
    }



    so vlt?


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    //----------------------------------------------------------------------------------------------- REGISTER SYSTEM ANFANG------------------
    new cmd[256];
    new idx;
    cmd = strtok(cmdtext, idx);
    new tmp[256];
    new playername[MAX_PLAYER_NAME];
    if (strcmp(cmd, "/login", true) ==0 )
    {
    if(IsPlayerConnected(playerid))
    {
    new tmppass[64];
    if(gPlayerLogged[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist bereits eingeloggt.");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GREY, " Benutze: /login [password]");
    return 1;
    }
    strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
    Encrypt(tmppass);
    OnPlayerLogin(playerid,tmppass);
    }
    return 1;
    }

    if (strcmp(cmd, "/register", true)==0)
    {
    new string[265];
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GREY, "Benutze: /register [password]");
    return 1;
    }
    if (gPlayerAccount[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_GREY, "Der Name ist bereits registriert");
    return 1;
    }
    strmid(PlayerInfo[playerid][pPassword], tmp, 0, strlen(cmdtext), 255);
    Encrypt(PlayerInfo[playerid][pPassword]);
    GetPlayerName(playerid, playername, sizeof(playername));
    format(string, sizeof(string), "PRT-GAMEMODE-USERS/%s.ini", playername);
    new File: file = fopen(string, io_read);
    if (file)
    {
    SendClientMessage(playerid, COLOR_GREY, "Der Name ist bereits registriert");
    fclose(file);
    return 1;
    }
    new File:hFile;
    hFile = fopen(string, io_append);
    new var[32];//
    format(var, 32, "%s\n", PlayerInfo[playerid][pPassword]);fwrite(hFile, var);
    format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
    format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
    PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
    format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
    fclose(hFile);
    SendClientMessage(playerid, COLOR_WHITE, "Erfolgreich registriert!");
    SendClientMessage(playerid, COLOR_WHITE, "Gebe nächstes mal /login <password> zum einloggen ein.");
    OnPlayerLogin(playerid,PlayerInfo[playerid][pPassword]);
    return 1;
    }

    if (strcmp(cmd, "/stats", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (gPlayerLogged[playerid] != 0)
    {
    ShowStats(playerid,playerid);
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Du bist nicht eingeloggt !");
    }
    }
    return 1;
    }
    //-------------commmands------------------------------------------------------------------------- REGISTER SYSTEM ENDE--------------------
    if(strcmp("/commands",cmdtext,true) == 0)
    {
    SendClientMessage(playerid,0x00FF00FF,"___________Alle Commands___________");
    SendClientMessage(playerid,0x00FF00FF,"Zum Registrieren /register , Zum Einloggen /login ,Für Afk /afk - /back .");
    SendClientMessage(playerid,0x00FF00FF,"Um einen Job anzunehmen /job[NR], Um DEN Job zu kündigen * /job kündigen *. ");
    }
    if(gTeam[playerid] == TEAM_POLICE)
    {
    SendClientMessage(playerid,0x00FF00FF,"___________Cop Commands___________");
    SendClientMessage(playerid,0x00FF00FF,"LSPD GATE Öffnen /pdopen, Um einen Wanted zu geben /su [ID]");
    SendClientMessage(playerid,0x00FF00FF,"Um zum LSPD zu kommen /copbase ");
    }
    if(gTeam[playerid] == TEAM_MAFIA)
    {
    SendClientMessage(playerid,0x00FF00FF,"___________Mafia Commands___________");
    SendClientMessage(playerid,0x00FF00FF,"Um zum Mafia HQ zu kommen /Mafia");
    }
    if(gTeam[playerid] == TEAM_TAXI)
    {
    SendClientMessage(playerid,0x00FF00FF,"___________Taxi Fahrer Commands___________");
    SendClientMessage(playerid,0x00FF00FF,"Um zum Taxi HQ zu kommen /Taxi");
    }
    return 1;
    }
    //-----------------------------------------NORMALE COMMANDS DER JEDER SUFÜHREN KANN-----------------------------------
    new pname[MAX_PLAYER_NAME];
    new string[100];
    new ziel = strval(strget(cmdtext,1));
    if (strcmp("/afk", cmdtext, true) == 0)
    {
    TogglePlayerControllable(playerid, false);
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "%s ist AFK! (/afk)", pname);
    SendClientMessageToAll(0xff3333ff, string);
    return 1;
    }

    #include <a_samp>
    #include <a_vehicles>



    new Checkpoint[MAX_PLAYERS];
    new mission[MAX_PLAYERS];
    #define COLOR_LIGHTGREEN 0x86FF59FF
    #define COLOR_RED 0xFF0000FF
    #define COLOR_GREEN 0x00CA00FF


    forward missionfailed(playerid);


    public OnFilterScriptInit()
    {
    //Message in server window
    print(" |________________________________|");
    print(" |____FilterScript Müllabfuhr ____|");
    print(" |____Scripted by AlexandA________|");

    // Trashcars:


    AddStaticVehicle(408,-557.6525,-496.0215,25.8682,359.8282,1,1);
    AddStaticVehicle(408,-529.8904,-496.0005,25.8726,359.8877,1,1);
    AddStaticVehicle(408,-520.3101,-495.8940,25.8795,359.9233,1,1);
    AddStaticVehicle(408,-535.8450,-502.6665,26.0667,358.0911,1,1);
    return 1;
    }



    public OnFilterScriptExit()
    {
    return 1;
    }


    public OnGameModeExit() {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid) {
    return 1;
    }


    public OnPlayerRequestSpawn(playerid) {
    return 1;
    }


    public OnPlayerConnect(playerid) {
    SendClientMessage(playerid, COLOR_RED, "Dieser Server nutzt eine Müllabfuhr, tippe in einem Müllauto /starten !");
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason) {
    return 1;
    }


    public OnPlayerSpawn(playerid) {
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, 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[]) {
    new cmd[256];
    new vehicleid = GetPlayerVehicleID(playerid);
    new model = GetVehicleModel(vehicleid);
    if (strcmp("/starten", cmd, true, 5) == 0) {
    if(mission[playerid] == 0)
    {
    if(model == 408)
    {
    SendClientMessage(playerid, COLOR_LIGHTGREEN, "Muellabfuhr gestartet, fahre nun zu den einzelnen Haeusern!");
    SetPlayerCheckpoint(playerid, -74.2252,-1128.7936,1.6359, 5.0);
    Checkpoint[playerid] = 1;
    mission[playerid] =1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "Du bist nicht im Muellwagen!");
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "Es laeuft schon eine Mission!");
    }
    return 1;
    }

    if (strcmp("/deponie", cmd, true, 5) ==0)
    {
    if(IsPlayerAdmin(playerid))
    {
    SetPlayerPos(playerid, -546.9002,-488.6077,25.2961);
    return 1;
    }
    }
    return 0;
    }


    public OnPlayerInfoChange(playerid) {
    return 1;
    }


    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) {
    return 1;
    }


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


    public OnPlayerExitVehicle(playerid, vehicleid) {
    new model = GetVehicleModel(vehicleid);
    if(model == 408)
    {
    if (mission[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_RED, "* Du hast 15 Sekunden um zurueck in das Muellauto zu steigen !");
    SetTimerEx("missionfailed", 15000, 0,"i",playerid);
    }
    return 1;
    }
    return 1;
    }


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


    public OnPlayerEnterCheckpoint(playerid) {
    new trinkgeld = random(85); // Betrag für das Trinkgeld, lässt sich beliebig ändern! ( Zufalls Betrag )
    new string[256];
    if(Checkpoint[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_RED, "Muell aufgeladen, weiter!");
    GivePlayerMoney(playerid, trinkgeld);
    format(string, sizeof(string), "** Du hast %d$ Trinkgeld bekommen!",trinkgeld);
    SendClientMessage(playerid, COLOR_GREEN, string);
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, -89.2432,-1189.7782,2.3241, 5.0);
    Checkpoint[playerid] = 2;
    }
    else if(Checkpoint[playerid] == 2)
    {
    SendClientMessage(playerid, COLOR_RED, "Muell aufgeladen, weiter!");
    GivePlayerMoney(playerid, trinkgeld);
    format(string, sizeof(string), "** Du hast %d$ Trinkgeld bekommen!",trinkgeld);
    SendClientMessage(playerid, COLOR_GREEN, string);
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, -63.3734,-1588.5732,3.1782, 5.0);
    Checkpoint[playerid] = 3;
    }
    else if(Checkpoint[playerid] == 3)
    {
    SendClientMessage(playerid, COLOR_RED, "Muell aufgeladen, weiter!");
    GivePlayerMoney(playerid, trinkgeld);
    format(string, sizeof(string), "** Du hast %d$ Trinkgeld bekommen!",trinkgeld);
    SendClientMessage(playerid, COLOR_GREEN, string);
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, 220.8943,-1393.5308,52.1264, 5.0);
    Checkpoint[playerid] = 4;
    }
    else if(Checkpoint[playerid] == 4)
    {
    SendClientMessage(playerid, COLOR_RED, "Muell aufgeladen, weiter!");
    GivePlayerMoney(playerid, trinkgeld);
    format(string, sizeof(string), "** Du hast %d$ Trinkgeld bekommen!",trinkgeld);
    SendClientMessage(playerid, COLOR_GREEN, string);
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, 169.0361,-1356.8065,69.8208, 5.0);
    Checkpoint[playerid] = 5;
    }
    else if(Checkpoint[playerid] == 5)
    {
    SendClientMessage(playerid, COLOR_RED, "Muell aufgeladen, weiter!");
    GivePlayerMoney(playerid, trinkgeld);
    format(string, sizeof(string), "** Du hast %d$ Trinkgeld bekommen!",trinkgeld);
    SendClientMessage(playerid, COLOR_GREEN, string);
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, 263.5524,-1341.0842,53.7643, 5.0);
    Checkpoint[playerid] = 6;
    }
    else if(Checkpoint[playerid] == 6)
    {
    SendClientMessage(playerid, COLOR_RED, "Muell aufgeladen, weiter!");
    GivePlayerMoney(playerid, trinkgeld);
    format(string, sizeof(string), "** Du hast %d$ Trinkgeld bekommen!",trinkgeld);
    SendClientMessage(playerid, COLOR_GREEN, string);
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, 871.9646,-864.5255,77.2742, 5.0);
    Checkpoint[playerid] = 7;
    }
    else if(Checkpoint[playerid] == 7)
    {
    SendClientMessage(playerid, COLOR_RED, "Muell aufgeladen, weiter!");
    GivePlayerMoney(playerid, trinkgeld);
    format(string, sizeof(string), "** Du hast %d$ Trinkgeld bekommen!",trinkgeld);
    SendClientMessage(playerid, COLOR_GREEN, string);
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, 935.7687,-835.7352,94.4455, 5.0);
    Checkpoint[playerid] = 8;
    }
    else if(Checkpoint[playerid] == 8)
    {
    SendClientMessage(playerid, COLOR_RED, "Muell aufgeladen, weiter!");
    GivePlayerMoney(playerid, trinkgeld);
    format(string, sizeof(string), "** Du hast %d$ Trinkgeld bekommen!",trinkgeld);
    SendClientMessage(playerid, COLOR_GREEN, string);
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, 1496.5879,-698.0237,94.5207, 5.0);
    Checkpoint[playerid] = 9;
    }
    else if(Checkpoint[playerid] == 9)
    {
    SendClientMessage(playerid, COLOR_RED, "Muell aufgeladen, weiter!");
    GivePlayerMoney(playerid, trinkgeld);
    format(string, sizeof(string), "** Du hast %d$ Trinkgeld bekommen!",trinkgeld);
    SendClientMessage(playerid, COLOR_GREEN, string);
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, 1001.1724,-935.0218,41.9509, 5.0);
    Checkpoint[playerid] = 10;
    }
    else if(Checkpoint[playerid] == 10)
    {
    SendClientMessage(playerid, COLOR_RED, "Das war der letzte fahre nun zurück!");
    GivePlayerMoney(playerid, trinkgeld);
    format(string, sizeof(string), "** Du hast %d$ Trinkgeld bekommen!",trinkgeld);
    SendClientMessage(playerid, COLOR_GREEN, string);
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, -546.9002,-488.6077,25.2961, 5.0);
    Checkpoint[playerid] = 11;
    }
    else if(Checkpoint[playerid] == 11)
    {
    SendClientMessage(playerid, COLOR_RED, "Herzlichen Glueckwunsch, und danke das du hilfst die Stadt sauber zu halten!");
    DisablePlayerCheckpoint(playerid);
    GivePlayerMoney(playerid, 1975);
    SendClientMessage(playerid, COLOR_RED, "Du bekommst einen kleinen Bonus von 1.975$");
    mission[playerid] = 0;
    }
    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;
    }


    public missionfailed(playerid)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    new model = GetVehicleModel(vehicleid);
    if(model == 408)
    { }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "Muellmission gescheitert!");
    DisablePlayerCheckpoint(playerid);
    mission[playerid] = 0;
    }
    return 1;
    }



    Das is von AlexandA oda so kannst ja als Vorlage nehmen

    Hmm ich finde es nicht so schön du kannst bestimmt noch mehr


    Die Navi ist sehr einfach gemacht und die Weißen Striche passen gar nicht
    Header ist auch nicht gerade der Ideereichste.
    Und der Content genau so .


    Ich würde mich freuen wenn du ein bisschen mehr effekte reinbringst.
    Sonst bekommst du von mir 3,5/10


    Aber wie gesagt das ist nur meine Kritik manchen gefällt es aber mir nicht wirklich.

    Habe das Script von Oktabius aus dem Anfänger Script in meins eingefügt und angepasst jedoch bekomme ich nun immer ein Warning habe schon einiges ausprobiert.



    Hier der Error:



    C:\Users\-----------------\Desktop\Spiele\--------------\gamemodes\---------------.pwn(304) : warning 203: symbol is never used: "pInfo"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Warning.



    enum Info
    {
    passwort[128],
    };
    //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    new pInfo[MAX_PLAYERS][Info];

    Hallöchen ich habe eine bitte ich will einen Server machen aber ich kapiert das ned mit Register System ich will ein normales Auslese verfahren wie in Wiki haben.
    Ich bitte an alle netten Scripter der gerade Zeit und Lust hat kann mir jemand eins kurz schreiben es wäre schön wenn es


    /register <passwort>


    /login <passwort>


    /pwändern <newpw>


    das /pwändern ist nicht unbedingt nur wenn du es kannst.


    Es soll das Passwort die Kills und die Deaths speichern.


    Wenn jemand so nett ist und es mir macht wird auch in Credits erwähnt.


    Ich wäre dem sehr Dankbar denn ich helfe auch Leuten so gut ich kann also hoffe ich auch das mir jemand hilft.


    Wenns geht eins schreiben kein fertig Link schicken weil ich die meisten schon probier hab aber sie mir ned passen.




    Mit freundlichen Grüßen
    WhiteJoker alias WaldI










    Beispiel:



    if (strcmp(cmdtext, "/save", true)==0)
    {



    new File:pos=fopen("name.txt", io_append);
    format(string, 256, "AddPlayerClass(0, %f, %f, %f, %f, 0,0,0,0,0,0);", X, Y, Z,Rotation);
    fwrite(pos, string);
    fclose(pos);

    return 1;
    }

    for(new i = 0; i < SLOTS; i++)
    {
    new rand = random(sizeof(checkpoints));
    SetRaceCheckpoint(i,2,checkpoints[rand][0],checkpoints[rand][1],checkpoints[rand][2], 0, 0, 0, 10);
    }




    vlt so