Beiträge von Akino Kiritani

    du musst auch die Dritte kordinate ändern wenn du das nach oben bzw nach unten hin öffen lassen willst


    bsp so:


    MoveObject(lspdgate, 1588.5617, -1638.0871, 8.7200, 1);


    //edit: oder gleich so:


    if(!strcmp(tmp, "/pd",true,4))
    {
    if(gTeam[playerid] == 2 || IsACop(playerid))
    {
    GetPlayerPos( playerid, Positions[0][0], Positions[0][1], Positions[0][2]);
    GetObjectPos(lspdgate, Positions[1][0], Positions[1][1], Positions[1][2]);
    if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[1][0], Positions[1][1], Positions[1][2]) < 30.0 )
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string,sizeof(string), "* %s öffnet das LSPD Tor.", sendername);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    MoveObject(lspdgate, 1588.5617, -1638.0871, 0.7200, 1);//hier die dritte kordinate hab ich schon mal geändert
    }
    }
    return 1;
    }
    //--------------------[Cop Gate]------------
    if(!strcmp(tmp, "/pd",true,4))
    {
    if(gTeam[playerid] == 2 || IsACop(playerid))
    {
    GetPlayerPos( playerid, Positions[0][0], Positions[0][1], Positions[0][2]);
    GetObjectPos( lspdgate, Positions[1][0], Positions[1][1], Positions[1][2]);
    if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[1][0], Positions[1][1], Positions[1][2]) < 30.0 )
    {
    GetPlayerName(playerid,sendername,sizeof(sendername));
    format(string,sizeof(string), "* %s schließt das LSPD Tor.",sendername);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    MoveObject(lspdgate, 1588.5617, -1638.0871, 7.7200, 1);//hier die dritte kordinate hab ich schon mal geändert
    }
    //MoveObject(lspdgate, 1588.5617, -1638.0871, 7.7200, 1);//hier die dritte kordinate hab ich schon mal geändert
    }
    }

    new string1[512],string2[512],string3[512],string4[512],string5[512],string6[512],string7[512],mstring[1024];
    format(string1, sizeof(string1), "Account: Name:[%s] Level:[%d] Geschlecht:[%s]\n Herkunft:[%s] SpawnLeben:[%.1f] Handynummer:[%d]\n", name,age,atext, level,otext,shealth+50, pnumber);
    format(string2, sizeof(string2), "Premiumrang:[%s] Ehepartner:[%s] \n Gespielte Spielstunden:[%d] Respektpunkte:[%d/%d]\n ", drank,married,ptime,exp,expamount);
    format(string3, sizeof(string3), "Geldverwaltung: Cash:[$%d] Bank:[$%d] Levelkosten:[$%d]\n", cash, account,costlevel);
    format(string4, sizeof(string4), "Anglerinfo: Fischfang:[%d] Schwerster Fisch:[%d]\n", fishes,bigfish);
    format(string5, sizeof(string5), "Verbrechen: Verbrechen:[%d] Kills:[%d] Tode:[%d]\n WantedLevel:[%d] Gefängnisszeit:[%d] WantedTode:[%d]\n",crimes,kills,deaths,wanted,arrests,warrests );
    format(string6, sizeof(string6), "Jobs: Fraktion:%s Team:[%s] Rang:[%s] Nebenjob:[%s]\n",f2text,ttext,rtext,dtext);
    format(string7, sizeof(string7), "Sonstiges: Materials:[%d] Drugs:[%d] LottoNr:[%d]",mats,drugs,lotto);
    sollte so gehn


    public ShowStats(playerid,targetid)
    {
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
    {
    new coordsstring1[256];
    new coordsstring2[256];
    new coordsstring3[256];
    new coordsstring4[256];
    new coordsstring5[256];
    new coordsstring6[256];
    new coordsstring7[256];
    new coordsstring8[256];
    new coordsstring9[1024];
    //SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
    format(coordsstring1, sizeof(coordsstring1),"*** %s ***",name);
    //SendClientMessage(playerid, COLOR_WHITE,coordsstring);
    format(coordsstring2, sizeof(coordsstring2), "Level:[%d] Geschlecht:[%s] Alter:[%d] Herkunft:[%s] Spawnenergie:[%.1f] Geld:[$%d] Bank:[$%d] Ph:[%d]\n", level,atext,age,otext,shealth+50, cash, account, pnumber);
    //SendClientMessage(playerid, COLOR_GRAD1,coordsstring);
    format(coordsstring3, sizeof(coordsstring3), "Premium Rang:[%s] Verheiratet:[%s] Spielzeit:[%d] LottoNr:[%d] Job:[%s]\n", drank,married,ptime,lotto,jtext);
    //SendClientMessage(playerid, COLOR_GRAD3,coordsstring);
    format(coordsstring4, sizeof(coordsstring4), "FishesCaught:[%d] GrösterFisch:[%d] Verbrechen:[%d] Gefängniszeit:[%d] Gesucht:[%d]\n", fishes,bigfish,crimes,arrests,warrests );
    //SendClientMessage(playerid, COLOR_GRAD4,coordsstring);
    format(coordsstring5, sizeof(coordsstring5), "Kills:[%d] Tode:[%d] Nächstes Level:[$%d] Respekt:[%d/%d] WantedLevel:[%d] Familie:[%s]\n",kills,deaths,costlevel,exp,expamount,wanted,f2text);
    //SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
    format(coordsstring6, sizeof(coordsstring6), "Drugs:[%d] Materials:[%d] Team:[%s] Krankheit:[%s] Organisation:[%s] Rank:[%s]\n",drugs,mats,ttext,dtext,ftext,rtext);
    //SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
    format(coordsstring7, sizeof(coordsstring7), "Spielminuten seit Login: [%d] Spielminuten bis zum PayDay: [%d] Spielminuten Insgesamt: [%d]\n",PlayerInfo[targetid][pMinutesSinceLogin],(60-PlayerInfo[targetid][pPlayMinutes]),PlayerInfo[targetid][pGesamtMinutes]);
    //SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
    strcat(coordsstring9, coordsstring2, sizeof(coordsstring9));
    strcat(coordsstring9, coordsstring3, sizeof(coordsstring9));
    strcat(coordsstring9, coordsstring4, sizeof(coordsstring9));
    strcat(coordsstring9, coordsstring5, sizeof(coordsstring9));
    strcat(coordsstring9, coordsstring6, sizeof(coordsstring9));
    strcat(coordsstring9, coordsstring7, sizeof(coordsstring9));
    strcat(coordsstring9, coordsstring8, sizeof(coordsstring9));
    ShowPlayerDialog(playerid,STATS,DIALOG_STYLE_MSGBOX,"Stats",coordsstring9,"Ok",Ok");
    }
    }

    public OnGameModeInit()
    {
    CreateObject(-1363.201294, -179.693390, 24.719044, 2.5783, 43.8304, 344.4557, 150.0);
    CreateObject(5390, -1063.072754, -146.819305, 16.832548, 0.0, 0.0, 298.5159);
    CreateObject(1378, -1246.529053, -0.451308, 37.550682, 0.0, 0.0, 15.7784);
    CreateObject(16502, -1235.174194, -37.927879, 39.852940, 0.0, 0.0, 104.7645);
    return 1;
    }
    eher so

    oben #define STATS 0

    new coordsstring[256];
    new coordsstring1[256];
    new coordsstring2[256];
    new coordsstring3[256];
    new coordsstring4[256];
    new coordsstring5[256];
    new coordsstring6[256];
    new coordsstring7[256];
    new coordsstring8[256];
    format(coordsstring, sizeof(coordsstring),"***Spieler Stats von %s ***",name);
    format(coordsstring1, sizeof(coordsstring1), "Level:[%d] Sex:[%s] Age:[%d] Origin:[%s] SpawnHealth:[%.1f] Cash:[$%d] Bank:[$%d] Ph:[%d]", level,atext,age,otext,shealth+50, cash, account, pnumber);
    format(coordsstring2, sizeof(coordsstring2), "DonateRank:[%s] MarriedTo:[%s] PlayingHours:[%d] LottoNr:[%d] Job:[%s]", drank,married,ptime,lotto,jtext);
    format(coordsstring3, sizeof(coordsstring3), "FishesCaught:[%d] BiggestFish:[%d] CrimesCommited:[%d] TimesArrested:[%d] WantedDeaths:[%d]", fishes,bigfish,crimes,arrests,warrests );
    format(coordsstring4, sizeof(coordsstring4), "Kills:[%d] Deaths:[%d] NextLevel:[$%d] Respect:[%d/%d] WantedLevel:[%d] Family:[%s]",kills,deaths,costlevel,exp,expamount,wanted,f2text);
    format(coordsstring5, sizeof(coordsstring5), "Drugs:[%d] Materials:[%d] Team:[%s] Disease:[%s] Organisation:[%s] Rank:[%s]",drugs,mats,ttext,dtext,ftext,rtext);
    if (PlayerInfo[playerid][pAdmin] >= 1)
    {
    format(coordsstring6, sizeof(coordsstring6), "House key [%d] Business key [%d] HireKey [%d] int:[%d] local[%d]", housekey,bizkey,HireCar[targetid],intir,local);
    }
    strcat(coordsstring8, coordsstring, sizeof(coordsstring8));
    strcat(coordsstring8, coordsstring1, sizeof(coordsstring8));
    strcat(coordsstring8, coordsstring2, sizeof(coordsstring8));
    strcat(coordsstring8, coordsstring3, sizeof(coordsstring8));
    strcat(coordsstring8, coordsstring4, sizeof(coordsstring8));
    strcat(coordsstring8, coordsstring6, sizeof(coordsstring8));
    strcat(coordsstring8, coordsstring5, sizeof(coordsstring8));
    strcat(coordsstring8, coordsstring7, sizeof(coordsstring8));
    ShowPlayerDialog(playerid,STATS, DIALOG_STYLE_MSGBOX, coordsstring8, coordsstring8, "OK", "OK");
    bin mir nicht sicher müsste aber gehn