Beiträge von sLy

    Mh , vielleicht SetVehicleParamsForPlayer , mit ner for Schleife , die abfragt , ob der Spieler Ballas (Beispiel) ist , wenn ja , wird nichts gemacht , wenn nein , wird Ballascar für jeden Spieler auf Türen zu gesetzt =D


    Edit:


    Schleife ist eigentlich garnicht nötig , OnPlayerConnect oder OnPlayerSpawn sollte reichen =3

    if(dialogid == DIALOG_UEBERWEISUNG)
    {
    if(response == 0)return 1;
    if(response == 1)
    {
    ueberweisid[playerid]=inputtext;
    if(IsPlayerConnected(ueberweisid[playerid]))
    {
    ShowPlayerDialog(playerid,DIALOG_UEBERWEISUNG2,DIALOG_STYLE_INPUT,"Überweisung","Wieviel möchtest du überweisen?","Überweisen","Abbrechen");
    }
    else
    {
    ShowPlayerDialog(playerid,DIALOG_UEBERWEISUNG,DIALOG_STYLE_INPUT,"Überweisen","Trage die ID des Spielers ein.","Weiter","Abbrechen");
    }
    }
    }


    Ungefähr so

    Du machst eine neue Variable für jeden Spieler , also [MAX_PLAYERS] , und setzt die von playerid auf pID


    zB.



    new überweisid[MAX_PLAYERS];


    //in dem Dialog


    überweisid[playerid]=pID;


    //Und dann wo der andere Spieler geld bekommen soll
    SetPVarInt(überweisid[playerid],"Bankkonto",Geld); //Anpassen =3

    Hey.


    Hatte die Nacht bisschen LW und habe mich an nen kleinen SWAT Interior gesetzt =3


    Wird später noch etwas ausgebaut :p


    [video]

    Externer Inhalt www.youtube.com
    Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.
    Durch die Aktivierung der externen Inhalte erklären Sie sich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt.
    [/video]

    Hey ^^


    Danke schonmal


    Ich lasse es testen mit SendClientMessage, wird natürlich noch geändert ^^


    Nur ist es egal welche Taste ich drücke, es wirdi mmer 49 gesendet!


    Spoiler anzeigen

    public OnPlayerClickTextDraw(playerid, Text:clickedid)
    {
    if(clickedid == Num1Text)
    {
    if(strlen(swatpw)!=6)
    {
    strcat(swatpw, "1");
    new string[256];
    format(string,sizeof(string),"Nummer: %i",swatpw);
    SendClientMessage(playerid,Gruen,string);
    }
    else
    {
    SendClientMessage(playerid,Rot,"Wähle 'Bestätigen' !");
    }
    }
    else if(clickedid == Num2Text)
    {
    if(strlen(swatpw)!=6)
    {
    strcat(swatpw, "2");
    new string[256];
    format(string,sizeof(string),"Nummer: %i",swatpw);
    SendClientMessage(playerid,Gruen,string);
    }
    else
    {
    SendClientMessage(playerid,Rot,"Wähle 'Bestätigen' !");
    }
    }
    else if(clickedid == Num3Text)
    {
    if(strlen(swatpw)!=6)
    {
    strcat(swatpw, "3");
    new string[256];
    format(string,sizeof(string),"Nummer: %i",swatpw);
    SendClientMessage(playerid,Gruen,string);
    }
    else
    {
    SendClientMessage(playerid,Rot,"Wähle 'Bestätigen' !");
    }
    }
    else if(clickedid == Num4Text)
    {
    if(strlen(swatpw)!=6)
    {
    strcat(swatpw, "4");
    new string[256];
    format(string,sizeof(string),"Nummer: %i",swatpw);
    SendClientMessage(playerid,Gruen,string);
    }
    else
    {
    SendClientMessage(playerid,Rot,"Wähle 'Bestätigen' !");
    }
    }
    else if(clickedid == Num5Text)
    {
    if(strlen(swatpw)!=6)
    {
    strcat(swatpw, "5");
    new string[256];
    format(string,sizeof(string),"Nummer: %i",swatpw);
    SendClientMessage(playerid,Gruen,string);
    }
    else
    {
    SendClientMessage(playerid,Rot,"Wähle 'Bestätigen' !");
    }
    }
    else if(clickedid == Num6Text)
    {
    if(strlen(swatpw)!=6)
    {
    strcat(swatpw, "6");
    new string[256];
    format(string,sizeof(string),"Nummer: %i",swatpw);
    SendClientMessage(playerid,Gruen,string);
    }
    else
    {
    SendClientMessage(playerid,Rot,"Wähle 'Bestätigen' !");
    }
    }
    else if(clickedid == Num7Text)
    {
    if(strlen(swatpw)!=6)
    {
    strcat(swatpw, "7");
    new string[256];
    format(string,sizeof(string),"Nummer: %i",swatpw);
    SendClientMessage(playerid,Gruen,string);
    }
    else
    {
    SendClientMessage(playerid,Rot,"Wähle 'Bestätigen' !");
    }
    }
    else if(clickedid == Num8Text)
    {
    if(strlen(swatpw)!=6)
    {
    strcat(swatpw, "8");
    new string[256];
    format(string,sizeof(string),"Nummer: %i",swatpw);
    SendClientMessage(playerid,Gruen,string);
    }
    else
    {
    SendClientMessage(playerid,Rot,"Wähle 'Bestätigen' !");
    }
    }
    else if(clickedid == Num9Text)
    {
    if(strlen(swatpw)!=6)
    {
    strcat(swatpw, "9");
    new string[256];
    format(string,sizeof(string),"Nummer: %i",swatpw);
    SendClientMessage(playerid,Gruen,string);
    }
    else
    {
    SendClientMessage(playerid,Rot,"Wähle 'Bestätigen' !");
    }
    }
    else if(clickedid == Num0Text)
    {
    if(strlen(swatpw)!=6)
    {
    strcat(swatpw, "0");
    new string[256];
    format(string,sizeof(string),"Nummer: %i",swatpw);
    SendClientMessage(playerid,Gruen,string);
    }
    else
    {
    SendClientMessage(playerid,Rot,"Wähle 'Bestätigen' !");
    }
    }
    else if(clickedid == NumBesText)
    {
    TextDrawHideForPlayer(playerid,NumBox);
    TextDrawHideForPlayer(playerid,Num1Box);
    TextDrawHideForPlayer(playerid,Num2Box);
    TextDrawHideForPlayer(playerid,Num3Box);
    TextDrawHideForPlayer(playerid,Num4Box);
    TextDrawHideForPlayer(playerid,Num5Box);
    TextDrawHideForPlayer(playerid,Num6Box);
    TextDrawHideForPlayer(playerid,Num7Box);
    TextDrawHideForPlayer(playerid,Num8Box);
    TextDrawHideForPlayer(playerid,Num9Box);
    TextDrawHideForPlayer(playerid,Num0Box);
    TextDrawHideForPlayer(playerid,NumBesBox);
    TextDrawHideForPlayer(playerid,NumHeadText);
    TextDrawHideForPlayer(playerid,Num1Text);
    TextDrawHideForPlayer(playerid,Num2Text);
    TextDrawHideForPlayer(playerid,Num3Text);
    TextDrawHideForPlayer(playerid,Num4Text);
    TextDrawHideForPlayer(playerid,Num5Text);
    TextDrawHideForPlayer(playerid,Num6Text);
    TextDrawHideForPlayer(playerid,Num7Text);
    TextDrawHideForPlayer(playerid,Num8Text);
    TextDrawHideForPlayer(playerid,Num9Text);
    TextDrawHideForPlayer(playerid,Num0Text);
    TextDrawHideForPlayer(playerid,NumBesText);
    CancelSelectTextDraw(playerid);
    }
    return 1;
    }

    Hey.


    Ich versuche gerade etwas mit anklickbaren Textdraws zu machen , sowas wie ein Handy.


    Wenn ich nun auf die '1' drücke , ist der string 1, wenn ich nun 2 drücke , möchte ich , dass der string 12 ist!


    Ich bin bei meiner Suche nur auf Strins gestoßen , aber da muss man ja den Platz angeben , wo der string 'hingemacht' werden soll !

    Ich schätze bei seinem SetPVarInt.


    Mach entweder unter dem new Float:gehalt und über SetPVarInt ein
    floatround(gehalt);
    oder ändere das SetPVarInt zu nem SetPVarFloat ^^

    setz die schleife doch mal über die objekte, vielleicht klappt es dann. ich hab das nicht so gemacht, deswegen kann ich nur vermuten.


    Brauche ich nicht testen , wird nicht gehen , weil die Variable swatwand dann ja 0 Beträgt , die Objekte müssen ja auch erst zugeordnet werden :/
    Trotzdem danke ^^

    Hey.


    Irgendwie wollen meine Wände keine andere Textur bekommen :/


    swatwand[0]=CreateObject(19456,119.69999695,1400.40002441,849.40002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (1)
    swatwand[1]=CreateObject(19456,116.69999695,1395.59997559,849.40002441,0.00000000,0.00000000,90.00000000); //object(cs_detrok03) (2)
    swatwand[2]=CreateObject(19456,116.40000153,1400.40002441,852.90002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (3)
    swatwand[3]=CreateObject(19456,119.69999695,1400.40002441,852.90002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (4)
    swatwand[4]=CreateObject(19456,116.39941406,1400.39941406,849.40002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (5)
    swatwand[5]=CreateObject(19456,116.69999695,1395.59997559,852.90002441,0.00000000,0.00000000,90.00000000); //object(cs_detrok03) (6)
    swatwand[6]=CreateObject(19456,119.69999695,1410.00000000,852.90002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (7)
    swatwand[7]=CreateObject(19456,119.69921875,1400.39941406,849.40002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (8)
    swatwand[8]=CreateObject(19456,116.39941406,1410.00000000,849.40002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (9)
    swatwand[9]=CreateObject(19456,119.69921875,1410.00000000,849.40002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (10)
    swatwand[10]=CreateObject(19456,116.39941406,1410.00000000,852.90002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (11)
    swatwand[11]=CreateObject(19456,116.40000153,1419.59997559,849.40002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (12)
    swatwand[12]=CreateObject(19456,119.69999695,1419.59997559,849.40002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (13)
    swatwand[13]=CreateObject(19456,119.69999695,1419.59997559,852.90002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (14)
    swatwand[14]=CreateObject(19456,116.39941406,1419.59960938,852.90002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (15)
    swatwand[15]=CreateObject(19456,116.40000153,1429.09997559,849.40002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (16)
    swatwand[16]=CreateObject(19456,124.43000031,1434.09997559,849.40002441,0.00000000,0.00000000,90.00000000); //object(cs_detrok03) (17)
    swatwand[17]=CreateObject(19456,116.40000153,1429.09997559,852.90002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (18)
    swatwand[18]=CreateObject(19456,119.69999695,1429.19995117,852.90002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (19)
    swatwand[19]=CreateObject(19456,119.69921875,1429.21972656,849.40002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (20)
    swatwand[20]=CreateObject(19456,111.69999695,1433.90002441,849.40002441,0.00000000,0.00000000,90.00000000); //object(cs_detrok03) (21)
    swatwand[21]=CreateObject(19456,125.59999847,1418.80004883,845.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (25)
    swatwand[22]=CreateObject(19456,130.30000305,1414.00000000,845.00000000,0.00000000,0.00000000,90.00000000); //object(cs_detrok03) (26)
    swatwand[23]=CreateObject(19456,136.39999390,1433.00000000,845.00000000,0.00000000,0.00000000,90.00000000); //object(cs_detrok03) (27)
    swatwand[24]=CreateObject(19456,124.50000000,1433.00000000,848.20001221,0.00000000,0.00000000,90.00000000); //object(cs_detrok03) (28)
    swatwand[25]=CreateObject(19456,127.50000000,1433.09997559,848.20001221,0.00000000,0.00000000,90.00000000); //object(cs_detrok03) (29)
    swatwand[26]=CreateObject(19456,138.69999695,1418.80004883,845.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (30)
    swatwand[27]=CreateObject(19456,125.59960938,1428.39941406,845.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (31)
    swatwand[28]=CreateObject(19456,138.69921875,1428.39941406,845.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (32)
    swatwand[29]=CreateObject(19456,139.89999390,1414.00000000,845.00000000,0.00000000,0.00000000,90.00000000); //object(cs_detrok03) (33)
    for(new w=0;w<sizeof swatwand;w++)
    {
    SetObjectMaterial(swatwand[w], 4, 3051, "lift_drx", "liftdoorsac256", 0);
    // î hab 0-4 probiert!
    }