Beiträge von Kania

    Hallo asus,



    1. versuch das mal so :D
    for(new j = 0; j < sizeof (Buycars); j++)
    {
    kaufauto[j] = CreateVehicle(Buycars[j][modelid],Buycars[j][posx],Buycars[j][posy],Buycars[j][posz],Buycars[j][posa],-1,-1,-1);
    }





    2.
    Hast du das Auch unter OnPlayerStateChange
    rein gepackt



    [list=1][*]if(newstate == PLAYER_STATE_DRIVER)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    for(new i = 0; i < sizeof Buycars; i++)
    {
    if(vehicleid == kaufauto[i])
    {
    new str[150],string[50];
    format(string,sizeof(string),"%s",Autohaus[i][Name]);
    format(str,sizeof(str),"{FFFFFF}Möchten Sie dieses Fahrzeugkaufen?\n\nName: {00FF00}%s\n{FFFFFF}Preis: {00FF00}%d", Buycars[i][Name], Buycars[i][Preis]);
    TogglePlayerControllable(playerid,0);
    return ShowPlayerDialog(playerid,Dialog_Buycar,DIALOG_STYLE_MSGBOX,string,str,"Kaufen","Abbrechen");
    }
    }
    }



    MFG

    also ein timer



    new adds = 1;SetTimerEx("Countdown", 1000, 0, "ii", playerid, 60);




    dann ein plugin




    forward Countdown(playerid, moneyt);
    public Countdown(playerid, moneyt)
    {
    if(moneyt> 0)
    { SetTimerEx("Countdown", 1000, 0, "ii", playerid, (moneyt-1));
    }
    else
    {
    if(moneyt== 0)
    {
    adds = 0;
    }
    }
    }



    der befehl




    if(strcmp(cmd, "/givemoney", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if ((!adds))
    {
    format(string, sizeof(string), "Bitte Versuch es wieder in %d sekunden ", (Countdown));
    SendClientMessage(playerid, COLOR_GRAD2, string);
    return 1;


    } if(Spieler[playerid][Level] < 2)
    {
    SendClientMessage(playerid, COLOR_RED, "Du musst level 2 sein.");
    return 1;
    }
    GivePlayerMoney(playerid, 500);

    return 1;
    }










    Würde das so gehen ?

    Guten Tag alle zusammen,


    Ich hab so ein befehl gemacht /givemoney


    /givemoney

    if(strcmp(cmd, "/givemoney", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(Spieler[playerid][Level] < 2)
    {
    SendClientMessage(playerid, COLOR_RED, "Du musst level 2 sein.");
    return 1;
    } GivePlayerMoney(playerid, 500);

    return 1;
    }



    und will jetzt machen das der 1 minute warten muss wie geht das
    und ihn ne nachricht gesendet wird
    Du musst noch %i sekunden warten
    oder so

    ich scripte nicht mit PVar SRY ich will nur das da so steht


    Bitte Versuch es wieder in 60 sekunden einer Werbung zu schreiben!
    Bitte Versuch es wieder in 59 sekunden einer Werbung zu schreiben!
    Bitte Versuch es wieder in 30 sekunden einer Werbung zu schreiben!
    Bitte Versuch es wieder in 15 sekunden einer Werbung zu schreiben!


    immer wenn der /werbung eingibt soll ihn die zeit runter gezählt werden


    und so

    also soll ich das so machen ??


    if ((!adds)) {
    format(string, sizeof(string), "Bitte Versuch es wieder in %d sekunden einer Werbung zu schreiben!", );
    SendClientMessage(playerid, COLOR_GRAD2, string); return 1;
    } SetTimer("adtimer", 1000 * 60, 1);






    oder wie meinst das könnest du es mit zeigen ?

    warum geht der timer nicht ???


    new addtimer = 60000;




    if ((!adds))
    {
    format(string, sizeof(string), "Bitte Versuch es wieder in %d sekunden einer Werbung zu schreiben!", (addtimer/1000));
    SendClientMessage(playerid, COLOR_GRAD2, string);
    return 1;
    }



    er soll immer 1sekunde runter gehen wenn er bei 0 ankommt kann der spieler wieder werbung machen aber wenn ich jetzt auf mein server
    das ein gebe" /werbung LOL " dann sickt er das ann alle spieler und wenn ich das wieder eingebe ohne 60sek. zu warten geht das immer noch
    aber ich will das er immer nach 1 min wider werbung machen soll und wie gesagt es geht nicht :/


    HILFT MIR BITTE


    MFG

    SORRY WEGEN DOPPEL POST
    Hallo,


    Ich habe mal ein skin shop erstellt, mit /clothes so und wenn ich /clothes eingebe kann ich eigentlich mit
    shift skins aussuchen, aber wenn shift drücke wird mir einfach kein skin angezeit da ist nur mein statdert skin.


    Bitte um HILFE :(


    Hier das mit shift:

    if(newkeys == KEY_JUMP)
    {
    if(ChooseSkin[playerid] == 1)
    {
    new Skin = GetPlayerSkin(playerid);
    //Männlichs
    if(Spieler[playerid][Team] == 0)
    {
    if(Skin == ChooseableSkins[0])
    {
    SetPlayerSkin(playerid, ChooseableSkins[1]);
    }
    else if(Skin == ChooseableSkins[1])
    {
    SetPlayerSkin(playerid, ChooseableSkins[2]);
    }
    else if(Skin == ChooseableSkins[2])
    {
    SetPlayerSkin(playerid, ChooseableSkins[3]);
    }
    else if(Skin == ChooseableSkins[3])
    {
    SetPlayerSkin(playerid, ChooseableSkins[4]);
    }
    else if(Skin == ChooseableSkins[4])
    {
    SetPlayerSkin(playerid, ChooseableSkins[5]);
    }
    else if(Skin == ChooseableSkins[5])
    {
    SetPlayerSkin(playerid, ChooseableSkins[6]);
    }
    else if(Skin == ChooseableSkins[6])
    {
    SetPlayerSkin(playerid, ChooseableSkins[7]);
    }
    else if(Skin == ChooseableSkins[7])
    {
    SetPlayerSkin(playerid, ChooseableSkins[8]);
    }
    else if(Skin == ChooseableSkins[8])
    {
    SetPlayerSkin(playerid, ChooseableSkins[9]);
    }
    else if(Skin == ChooseableSkins[9])
    {
    SetPlayerSkin(playerid, ChooseableSkins[10]);
    }
    else if(Skin == ChooseableSkins[10])
    {
    SetPlayerSkin(playerid, ChooseableSkins[11]);
    }
    else if(Skin == ChooseableSkins[11])
    {
    SetPlayerSkin(playerid, ChooseableSkins[12]);
    }
    else if(Skin == ChooseableSkins[12])
    {
    SetPlayerSkin(playerid, ChooseableSkins[13]);
    }
    else if(Skin == ChooseableSkins[13])
    {
    SetPlayerSkin(playerid, ChooseableSkins[14]);
    }
    else if(Skin == ChooseableSkins[14])
    {
    SetPlayerSkin(playerid, ChooseableSkins[0]);
    }
    //Weiblich
    else if(Skin == ChooseableSkinsWoman[0])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[1]);
    }
    else if(Skin == ChooseableSkinsWoman[1])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[2]);
    }
    else if(Skin == ChooseableSkinsWoman[2])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[3]);
    }
    else if(Skin == ChooseableSkinsWoman[3])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[4]);
    }
    else if(Skin == ChooseableSkinsWoman[4])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[5]);
    }
    else if(Skin == ChooseableSkinsWoman[5])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[6]);
    }
    else if(Skin == ChooseableSkinsWoman[6])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[7]);
    }
    else if(Skin == ChooseableSkinsWoman[7])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[8]);
    }
    else if(Skin == ChooseableSkinsWoman[8])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[9]);
    }
    else if(Skin == ChooseableSkinsWoman[9])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[10]);
    }
    else if(Skin == ChooseableSkinsWoman[10])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[11]);
    }
    else if(Skin == ChooseableSkinsWoman[11])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[12]);
    }
    else if(Skin == ChooseableSkinsWoman[12])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[13]);
    }
    else if(Skin == ChooseableSkinsWoman[13])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[0]);
    }
    }
    }
    }




    Hier noch ein Plugin:

    public ChoseSkin(playerid)
    {
    TogglePlayerControllable(playerid,0);
    ChooseSkin[playerid] = 1;
    SetPlayerFacingAngle(playerid, 1.8513);
    SetPlayerCameraPos(playerid, 164.4374,-80.8010,1002.93);
    SetPlayerCameraLookAt(playerid, 161.3135,-84.4192,1001.8047);
    SetPlayerInterior(playerid,18);
    SetPlayerVirtualWorld(playerid,playerid);
    ClearChatbox(playerid,8);
    SendClientMessage(playerid, COLOR_WEISS, "Du kannst dein Skin mit der {40A5FE}Shift {FFFFFF}Taste wechseln.");
    SendClientMessage(playerid, COLOR_WEISS, "Mit der {40A5FE}Enter {FFFFFF}Taste wählst du den Skin aus.");
    if(Spieler[playerid][Team] == 0)
    {
    if(Spieler[playerid][Geschlecht] == 1)
    {
    SetPlayerSkin(playerid, ChooseableSkins[0]);
    }
    else if(Spieler[playerid][Geschlecht] == 2)
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[0]);
    }
    }
    return 1;
    }





    MFG
    Kania :>

    if(newkeys == KEY_JUMP)
    {
    if(ChooseSkin[playerid] == 1)
    {
    new Skin = GetPlayerSkin(playerid);
    //Männlichs
    if(Spieler[playerid][Team] == 0)
    {
    if(Skin == ChooseableSkins[0])
    {
    SetPlayerSkin(playerid, ChooseableSkins[1]);
    }
    else if(Skin == ChooseableSkins[1])
    {
    SetPlayerSkin(playerid, ChooseableSkins[2]);
    }
    else if(Skin == ChooseableSkins[2])
    {
    SetPlayerSkin(playerid, ChooseableSkins[3]);
    }
    else if(Skin == ChooseableSkins[3])
    {
    SetPlayerSkin(playerid, ChooseableSkins[4]);
    }
    else if(Skin == ChooseableSkins[4])
    {
    SetPlayerSkin(playerid, ChooseableSkins[5]);
    }
    else if(Skin == ChooseableSkins[5])
    {
    SetPlayerSkin(playerid, ChooseableSkins[6]);
    }
    else if(Skin == ChooseableSkins[6])
    {
    SetPlayerSkin(playerid, ChooseableSkins[7]);
    }
    else if(Skin == ChooseableSkins[7])
    {
    SetPlayerSkin(playerid, ChooseableSkins[8]);
    }
    else if(Skin == ChooseableSkins[8])
    {
    SetPlayerSkin(playerid, ChooseableSkins[9]);
    }
    else if(Skin == ChooseableSkins[9])
    {
    SetPlayerSkin(playerid, ChooseableSkins[10]);
    }
    else if(Skin == ChooseableSkins[10])
    {
    SetPlayerSkin(playerid, ChooseableSkins[11]);
    }
    else if(Skin == ChooseableSkins[11])
    {
    SetPlayerSkin(playerid, ChooseableSkins[12]);
    }
    else if(Skin == ChooseableSkins[12])
    {
    SetPlayerSkin(playerid, ChooseableSkins[13]);
    }
    else if(Skin == ChooseableSkins[13])
    {
    SetPlayerSkin(playerid, ChooseableSkins[14]);
    }
    else if(Skin == ChooseableSkins[14])
    {
    SetPlayerSkin(playerid, ChooseableSkins[0]);
    }
    //Weiblich
    else if(Skin == ChooseableSkinsWoman[0])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[1]);
    }
    else if(Skin == ChooseableSkinsWoman[1])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[2]);
    }
    else if(Skin == ChooseableSkinsWoman[2])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[3]);
    }
    else if(Skin == ChooseableSkinsWoman[3])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[4]);
    }
    else if(Skin == ChooseableSkinsWoman[4])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[5]);
    }
    else if(Skin == ChooseableSkinsWoman[5])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[6]);
    }
    else if(Skin == ChooseableSkinsWoman[6])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[7]);
    }
    else if(Skin == ChooseableSkinsWoman[7])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[8]);
    }
    else if(Skin == ChooseableSkinsWoman[8])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[9]);
    }
    else if(Skin == ChooseableSkinsWoman[9])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[10]);
    }
    else if(Skin == ChooseableSkinsWoman[10])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[11]);
    }
    else if(Skin == ChooseableSkinsWoman[11])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[12]);
    }
    else if(Skin == ChooseableSkinsWoman[12])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[13]);
    }
    else if(Skin == ChooseableSkinsWoman[13])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[0]);
    }
    }
    }
    }


    Hallo com,



    Ich hab mal ein skinshop erstellt und wenn ich jetzt in binco rein gehe und /clothes schreibe zeit er ihn denn spieler an und mann kann mir shift eig. die skin wechseln. Aber es funk. einfach nicht bei mir warum ??


    hier ist das mit den shift:



    if(newkeys == KEY_JUMP)
    {
    if(ChooseSkin[playerid] == 1)
    {
    new Skin = GetPlayerSkin(playerid);
    //Männlichs
    if(Spieler[playerid][Team] == 0)
    {
    if(Skin == ChooseableSkins[0])
    {
    SetPlayerSkin(playerid, ChooseableSkins[1]);
    }
    else if(Skin == ChooseableSkins[1])
    {
    SetPlayerSkin(playerid, ChooseableSkins[2]);
    }
    else if(Skin == ChooseableSkins[2])
    {
    SetPlayerSkin(playerid, ChooseableSkins[3]);
    }
    else if(Skin == ChooseableSkins[3])
    {
    SetPlayerSkin(playerid, ChooseableSkins[4]);
    }
    else if(Skin == ChooseableSkins[4])
    {
    SetPlayerSkin(playerid, ChooseableSkins[5]);
    }
    else if(Skin == ChooseableSkins[5])
    {
    SetPlayerSkin(playerid, ChooseableSkins[6]);
    }
    else if(Skin == ChooseableSkins[6])
    {
    SetPlayerSkin(playerid, ChooseableSkins[7]);
    }
    else if(Skin == ChooseableSkins[7])
    {
    SetPlayerSkin(playerid, ChooseableSkins[8]);
    }
    else if(Skin == ChooseableSkins[8])
    {
    SetPlayerSkin(playerid, ChooseableSkins[9]);
    }
    else if(Skin == ChooseableSkins[9])
    {
    SetPlayerSkin(playerid, ChooseableSkins[10]);
    }
    else if(Skin == ChooseableSkins[10])
    {
    SetPlayerSkin(playerid, ChooseableSkins[11]);
    }
    else if(Skin == ChooseableSkins[11])
    {
    SetPlayerSkin(playerid, ChooseableSkins[12]);
    }
    else if(Skin == ChooseableSkins[12])
    {
    SetPlayerSkin(playerid, ChooseableSkins[13]);
    }
    else if(Skin == ChooseableSkins[13])
    {
    SetPlayerSkin(playerid, ChooseableSkins[14]);
    }
    else if(Skin == ChooseableSkins[14])
    {
    SetPlayerSkin(playerid, ChooseableSkins[0]);
    }
    //Weiblich
    else if(Skin == ChooseableSkinsWoman[0])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[1]);
    }
    else if(Skin == ChooseableSkinsWoman[1])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[2]);
    }
    else if(Skin == ChooseableSkinsWoman[2])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[3]);
    }
    else if(Skin == ChooseableSkinsWoman[3])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[4]);
    }
    else if(Skin == ChooseableSkinsWoman[4])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[5]);
    }
    else if(Skin == ChooseableSkinsWoman[5])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[6]);
    }
    else if(Skin == ChooseableSkinsWoman[6])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[7]);
    }
    else if(Skin == ChooseableSkinsWoman[7])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[8]);
    }
    else if(Skin == ChooseableSkinsWoman[8])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[9]);
    }
    else if(Skin == ChooseableSkinsWoman[9])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[10]);
    }
    else if(Skin == ChooseableSkinsWoman[10])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[11]);
    }
    else if(Skin == ChooseableSkinsWoman[11])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[12]);
    }
    else if(Skin == ChooseableSkinsWoman[12])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[13]);
    }
    else if(Skin == ChooseableSkinsWoman[13])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[0]);
    }
    }
    }
    }



    MFG

    Versuch mal



    new PolizeiK = 0;


    Dann unter gamemodein


    if(!fexist("Kassen/Polizei.txt"))
    {
    new pfad[44];
    format(pfad,sizeof(pfad),"Kassen/Polizei.txt");
    dini_Create(pfad);
    dini_IntSet(pfad,"Kassenstand",0);
    }
    else
    {
    KassenLaden();
    }

    Hallo com,


    ich hab ein payday fehler
    1. Wenn der spieler kein job hat "HJob" == 0 soll der Geld bekommen das funkt nicht
    2. Wenn Ich payday bekomme und 10000$ auf bank hab geht das geld weg und wird auf 0 gesetzt
    3. Wie mach ich das er das einfach + bekommt
    4. Wenn ich was falsches gemacht wer nett wenn ihr es sagt




    • public PaydayCheck(playerid)
      {
      if(IsPlayerConnected(playerid))
      {
      new account,interest;
      new rent = 0;
      new string[128];
      new ebill = (Spieler[playerid][Bank]/10000)*(Spieler[playerid][Level]);
      ConsumingMoney[playerid] = 1;
      if(Spieler[playerid][Bank] > 0)
      {
      Spieler[playerid][Bank] -= ebill;
      }
      else
      {
      ebill = 12;
      }
      new tmpintrate;
      interest = (Spieler[playerid][Bank]/1000)*(tmpintrate);
      Spieler[playerid][Exp]++;
      Spieler[playerid][Bank] = account+interest;
      Spieler[playerid][Bank] =- Tax;
      Spieler[playerid][Bank] =- rent;
      Spieler[playerid][PayDayGeld] += Spieler[playerid][Bank];
      Spieler[playerid][PayDayGeld] = 0;
      Spieler[playerid][Spielzeit] += 1;
      SendClientMessage(playerid, COLOR_YELLOW, "|================|Gehalts-Check|================|");
      format(string, sizeof(string), "Lohn: $%d Miete: -$%d Lohnsteuer: -$%d", Spieler[playerid][PayDayGeld], rent, Tax);
      SendClientMessage(playerid, COLOR_GRAD1, string);
      if(Spieler[playerid][Bizkey] != 255)
      {
      SendClientMessage(playerid, COLOR_GRAD1,"Stromrechnung: -$120");
      Spieler[playerid][Bank] =- 120;
      StaatsGeld +=120;
      }
      {
      format(string, sizeof(string), "Steuerklasse: $%d [0.%d Prozent]", interest,tmpintrate);
      SendClientMessage(playerid, COLOR_GRAD2, string);
      SendClientMessage(playerid, COLOR_YELLOW, "|==================||============||===============|");
      format(string, sizeof(string), "~g~Zahltag~y~!!!");
      GameTextForPlayer(playerid, string, 5000, 1);
      format(string, sizeof(string), "Neuer Konto stand: $%d", Spieler[playerid][Bank]);
      SendClientMessage(playerid, COLOR_GRAD1, string);
      StaatsGeld +=Tax;
      }
      for(new i = 0; i < MAX_PLAYERS; i++)
      {
      if(Spieler[i][Exp] >= 4+(GetPlayerScore(playerid)*4))
      {
      SetPlayerScore(i, GetPlayerScore(playerid)+1);
      Spieler[i][Level]++;
      Spieler[i][Exp] = 0;
      GameTextForPlayer(i,"~g~Level UP",3000,1);
      }
      }
      if(Spieler[playerid][HJob] == 0)
      {
      Spieler[playerid][PayDayGeld] +=550;
      }
      if(Spieler[playerid][HJob] == 1)
      {
      Spieler[playerid][PayDayGeld] +=150;
      }
      return 1;
      }
      return 1;
      }


    MFG

    Meine Warnings



    S:\Server\gamemodes\Script.pwn(13653) : warning 208: function with tag result used before definition, forcing reparse
    S:\Server\gamemodes\Script.pwn(13660) : warning 208: function with tag result used before definition, forcing reparse
    S:\Server\gamemodes\Script.pwn(13667) : warning 208: function with tag result used before definition, forcing reparse
    S:\Server\gamemodes\Script.pwn(13583) : warning 219: local variable "GetX" shadows a variable at a preceding level
    S:\Server\gamemodes\Script.pwn(13583) : warning 219: local variable "GetY" shadows a variable at a preceding level
    S:\Server\gamemodes\Script.pwn(13583) : warning 219: local variable "GetZ" shadows a variable at a preceding level
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    Die zeilen


    • stock Float:GetX(i)//13652
      {
      new Float:xasdf, Float:yasdf, Float:zasdf;
      GetPlayerPos(i, xasdf, yasdf, zasdf);
      return Float:xasdf;
      }


      stock Float:GetY(i)
      {
      new Float:xasdf, Float:yasdf, Float:zasdf;
      GetPlayerPos(i, xasdf, yasdf, zasdf);
      return yasdf;
      }


      stock Float:GetZ(i)
      {
      new Float:xasdf, Float:yasdf, Float:zasdf;
      GetPlayerPos(i, xasdf, yasdf, zasdf);
      return zasdf;
      }