Beiträge von Crow

    Guten Morgen Breadfisher,


    (gääääääääääääääääääääääähn) ich bin seit ein paar stunden an einer /sperre dran aber ich kriege die korrds nicht richtig hin:


    if (strcmp( cmdtext,"/sperre", true )==0)
    {
    if(!IsACop(playerid))
    {
    SendClientMessage(playerid, COLOR_GREY,"** Du bist kein Mitglied der Regierung !");
    return 1;
    }
    if(Sperrebit[playerid]==0)
    {
    if(!IsPlayerInAnyVehicle(playerid))
    {
    new Float:x,Float:y,Float:z,Float:a;
    GetPlayerPos(playerid,x,y,z);
    GetPlayerFacingAngle(playerid,a);
    GetXYInFrontOfPlayer(playerid,x,y,2.0);
    Sperre[playerid][0] = CreateObject(2892,x-2 * floatsin(-a+90, degrees),y+2.0 * floatcos(-a+90, degrees),z-0.5,0,0,a+90);
    Sperre[playerid][1] = CreateObject(2892,x-2 * floatsin(-a+90, degrees),y+2.0 * floatcos(-a+90, degrees),z-0.5,0,0,a+90);
    Sperre[playerid][2] = CreateObject(1423,x-2 * floatsin(-a+90, degrees),y+4.0 * floatcos(-a+90, degrees),z-0.5,0,0,a+0);
    Sperre[playerid][3] = CreateObject(1423,x-2 * floatsin(-a+90, degrees),y-2.0 * floatcos(-a+90, degrees),z-0.5,0,0,a+0);
    Sperre[playerid][4] = CreateObject(1423,x-2 * floatsin(-a+90, degrees),y-4.0 * floatcos(-a+90, degrees),z-0.5,0,0,a+0);
    Sperre[playerid][5] = CreateObject(1423,x-2 * floatsin(-a+90, degrees),y-4.0 * floatcos(-a+90, degrees),z-0.5,0,0,a+270);
    Sperre[playerid][6] = CreateObject(1423,x-2 * floatsin(-a+90, degrees),y-4.0 * floatcos(-a+90, degrees),z-0.5,0,0,a+90.25);
    Sperre[playerid][7] = CreateObject(1423,x-2 * floatsin(-a+90, degrees),y-4.0 * floatcos(-a+90, degrees),z-0.5,0,0,a+0);
    Sperre[playerid][8] = CreateObject(1423,x-2 * floatsin(-a+90, degrees),y-4.0 * floatcos(-a+90, degrees),z-0.5,0,0,a+0);
    Sperre[playerid][9] = CreateObject(1423,x-2 * floatsin(-a+90, degrees),y-4.0 * floatcos(-a+90, degrees),z-0.5,0,0,a+0);
    Sperre[playerid][10] = CreateObject(1423,x-2 * floatsin(-a+90, degrees),y-4.0 * floatcos(-a+90, degrees),z-0.5,0,0,a+270);
    Sperre[playerid][11] = CreateObject(1423,x-2 * floatsin(-a+90, degrees),y-4.0 * floatcos(-a+90, degrees),z-0.5,0,0,a+0);
    Sperrebit[playerid]=1;
    SendClientMessage(playerid, COLOR_GREY,"** Straßensperre aufgebaut !");
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY,"** Du bist in einem Fahrzeug, du musst aussteigen um eine Sperre legen zu können !");
    }
    }
    else
    {
    DestroyObject(Sperre[playerid][0]);
    DestroyObject(Sperre[playerid][1]);
    DestroyObject(Sperre[playerid][2]);
    DestroyObject(Sperre[playerid][3]);
    DestroyObject(Sperre[playerid][4]);
    DestroyObject(Sperre[playerid][5]);
    DestroyObject(Sperre[playerid][6]);
    DestroyObject(Sperre[playerid][7]);
    DestroyObject(Sperre[playerid][8]);
    DestroyObject(Sperre[playerid][9]);
    DestroyObject(Sperre[playerid][10]);
    DestroyObject(Sperre[playerid][11]);
    Sperrebit[playerid]=0;
    SendClientMessage(playerid, COLOR_GREY,"** Du hast die Sperre abgebaut !");
    }
    return 1;
    }


    CreateObject(2892, -2253.5502929688, 720.31372070313, 48.296875, 0, 0, 90);
    CreateObject(2892, -2263.6025390625, 720.43444824219, 48.290794372559, 0, 0, 90);
    CreateObject(1423, -2249.880859375, 721.13433837891, 49.001731872559, 0, 0, 0);
    CreateObject(1423, -2252.4274902344, 721.12689208984, 49.001731872559, 0, 0, 0);
    CreateObject(1423, -2254.9836425781, 721.13031005859, 49.001731872559, 0, 0, 0);
    CreateObject(1423, -2256.4807128906, 722.22198486328, 49.0078125, 0, 0, 270);
    CreateObject(1423, -2261.0859375, 722.28088378906, 49.0078125, 0, 0, 90.25);
    CreateObject(1423, -2262.6123046875, 721.20007324219, 49.001731872559, 0, 0, 0);
    CreateObject(1423, -2265.1557617188, 721.19842529297, 49.0078125, 0, 0, 0);
    CreateObject(1423, -2267.7131347656, 721.19702148438, 49.0078125, 0, 0, 0);
    CreateObject(1423, -2256.4814453125, 724.79016113281, 49.0078125, 0, 0, 270);
    CreateObject(1423, -2261.0822753906, 724.82678222656, 49.0078125, 0, 0, 90.247192382813);


    Ich schaffe es einfach nicht ... wäre echt nett wenn mir jemand die richtigen daten gibt :)

    Hallo,


    ich habe folgendes Problem, ich möchte das man auch nach dem disconnect/connect/spawn die Waffen die man kauft behält, d.h:


    diese waffen:


    soll man für immer behalten es sei denn man kauft sich andere waffe:


    PlayerInfo[playerid][pGun1] = 22;
    PlayerInfo[playerid][pAmmo1] = 99999;

    Guten Abend,


    wie der Titel schon sagt suche ich folgende Dialoge:


    /withdraw /deposit /balance /transfer Dialog



    die SuFu hat mir soweit nicht geholfen, deswegen bitte ich euch um hilfe, hier sind die befehle btw. commands:


    if(strcmp(cmd, "/withdraw", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pLocal] != 103)
    {
    SendClientMessage(playerid, COLOR_GREY, "** Du bbist nicht in der Bank !");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Verwende: /withdraw [Betrag]");
    format(string, sizeof(string), "** Du hast $%d auf deinem Konto !", PlayerInfo[playerid][pAccount]);
    SendClientMessage(playerid, COLOR_GRAD3, string);
    return 1;
    }
    new cashdeposit = strval(tmp);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Verwende: /withdraw [Betrag]");
    format(string, sizeof(string), "** Du hast $%d auf deinem konto !", PlayerInfo[playerid][pAccount]);
    SendClientMessage(playerid, COLOR_GRAD3, string);
    return 1;
    }
    if (cashdeposit > PlayerInfo[playerid][pAccount] || cashdeposit < 1)
    {
    SendClientMessage(playerid, COLOR_GRAD2, "** Du hast nicht so viel Geld !");
    return 1;
    }
    ConsumingMoney[playerid] = 1;
    GivePlayerMoney(playerid,cashdeposit);
    PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-cashdeposit;
    format(string, sizeof(string), "** Du hast $%d von deinem Konto abgehoben. Neuer Kontostand: $%d ", cashdeposit,PlayerInfo[playerid][pAccount]);
    SendClientMessage(playerid, COLOR_YELLOW, string);
    return 1;
    }
    return 1;
    }
    if(strcmp(cmd, "/deposit", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pLocal] != 103)
    {
    SendClientMessage(playerid, COLOR_GREY, "** Du bist nicht in der Bank !");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Verwende: /deposit [Betrag]");
    format(string, sizeof(string), "** Du hast $%d auf deinem Konto !", PlayerInfo[playerid][pAccount]);
    SendClientMessage(playerid, COLOR_GRAD3, string);
    return 1;
    }
    new cashdeposit = strval(tmp);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Verwende: /deposit [Betrag]");
    format(string, sizeof(string), "** Du hast $%d auf deinem Konto !", PlayerInfo[playerid][pAccount]);
    SendClientMessage(playerid, COLOR_GRAD3, string);
    return 1;
    }
    if (cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1)
    {
    SendClientMessage(playerid, COLOR_GRAD2, "** Du hast nicht so viel Geld");
    return 1;
    }
    GivePlayerMoney(playerid,-cashdeposit);
    new curfunds = PlayerInfo[playerid][pAccount];
    PlayerInfo[playerid][pAccount]=cashdeposit+PlayerInfo[playerid][pAccount];
    SendClientMessage(playerid, COLOR_WHITE, "|___ Kontoauszug ___|");
    format(string, sizeof(string), " alter Kontostand: $%d", curfunds);
    SendClientMessage(playerid, COLOR_GRAD2, string);
    format(string, sizeof(string), " eingezahlt: $%d",cashdeposit);
    SendClientMessage(playerid, COLOR_GRAD4, string);
    SendClientMessage(playerid, COLOR_GRAD6, "|-----------------------------------------|");
    format(string, sizeof(string), " neuer Kontostand: $%d", PlayerInfo[playerid][pAccount]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    return 1;
    }
    return 1;
    }
    if(strcmp(cmd, "/balance", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pLocal] != 103)
    {
    SendClientMessage(playerid, COLOR_GREY, "** Du bist nicht in der Bank");
    return 1;
    }
    format(string, sizeof(string), "** Du hast $%d auf deinem Konto !",PlayerInfo[playerid][pAccount]);
    SendClientMessage(playerid, COLOR_YELLOW, string);
    }
    return 1;
    }


    if(strcmp(cmd, "/transfer", true) == 0 || strcmp(cmd, "/wiretransfer", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pLevel] < 3)
    {
    SendClientMessage(playerid, COLOR_GRAD1, " You must be level 3 !");
    return 1;
    }
    if(PlayerInfo[playerid][pLocal] != 103)
    {
    SendClientMessage(playerid, COLOR_GREY, " You are not at the Bank !");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /transfer [playerid/PartOfName] [amount]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /transfer [playerid/PartOfName] [amount]");
    return 1;
    }
    moneys = strval(tmp);
    if (IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    playermoney = PlayerInfo[playerid][pAccount] ;
    if (moneys > 0 && playermoney >= moneys)
    {
    PlayerInfo[playerid][pAccount] -= moneys;
    PlayerInfo[giveplayerid][pAccount] += moneys;
    format(string, sizeof(string), " You have transferd $%d to %s's account", moneys, giveplayer,giveplayerid);
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, COLOR_GRAD1, string);
    format(string, sizeof(string), " You have recieved $%d to into your account from %s", moneys, sendername, playerid);
    SendClientMessage(giveplayerid, COLOR_GRAD1, string);
    format(string, sizeof(string), "%s transferd $%d to %s", sendername, moneys, giveplayer);
    if(moneys >= 500000)
    {
    ABroadCast(COLOR_YELLOW,string,1);
    }
    printf("%s", string);
    PayLog(string);
    PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Invalid transaction amount.");
    }
    }
    }
    else
    {
    format(string, sizeof(string), " %d is not an active player.", giveplayerid);
    SendClientMessage(playerid, COLOR_GRAD1, string);
    }
    }
    return 1;
    }


    vielen dank schonmal im vorraus


    *edit


    oder zumindest nur eins von denen damit ich in etwa weiß wie es geht ...

    Ach jetzt wo du es sagst :D voll verplant gewesen einen steg bzw. aufzug wie du schon sagst zu machen :D haha voll vergessen xD naja vllt. mache ich es morrgen nochmal ;) also bearbeiten und so und ja du hast recht mit den pfeilern aber ich habe extra die pipelines genommen zum stützen also 2 pipelines und die 2 dünnen pfeiler :D

    Guten Abend, ich habe mir mal die zeit genommen und aus langeweile eine Bihrinsel gemappt, es ist meine aller erste map und ich hoffe ich habe es gut gemacht :) achja und falls nacher wieder kommt öh die insel schwebt auf dem merr stimmt nicht, die hat 4 stützen ;):


    Die Map besteht aus ca. 60 objecten,


    Screens:












    Pastebin:
    http://samp.pastebin.com/QppqrNkm

    änder setplayerpos und facing angle in das:


    SetPlayerPos(playerid,1678.3896,-2119.2434,13.5469);
    SetPlayerFacingAngle(playerid,302.3522);

    Also das nur Admins wisper machen können geht so:


    if(strcmp(cmd, "/wisper", true) == 0 || strcmp(cmd, "/w", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (PlayerInfo[playerid][pAdmin] >= 1)
    {
    if(gPlayerLogged[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/w)isper [playerid/PartOfName] [whisper text]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    if (IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if(HidePM[giveplayerid] > 0)
    {
    SendClientMessage(playerid, COLOR_GREY, " That player is blocking Whispers !");
    return 1;
    }
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    if(giveplayerid == playerid)
    {
    format(string, sizeof(string), "* %s mutters somthing.", sendername);
    ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
    idx++;
    }
    new offset = idx;
    new result[64];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
    result[idx - offset] = cmdtext[idx];
    idx++;
    }
    result[idx - offset] = EOS;
    if(!strlen(result))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/w)isper [playerid/PartOfName] [whisper text]");
    return 1;
    }
    format(string, sizeof(string), "%s(ID: %d) whispers: %s", sendername, playerid, (result));
    SendClientMessage(giveplayerid, COLOR_YELLOW, string);
    format(string, sizeof(string), "Wisper sent to %s(ID: %d): %s", giveplayer, giveplayerid, (result));
    SendClientMessage(playerid, COLOR_YELLOW, string);
    SBizzInfo[2][sbTill] += txtcost / 2;
    ExtortionSBiz(2, txtcost / 2);
    return 1;
    }
    }
    else
    {
    format(string, sizeof(string), " %d is not an active player.", giveplayerid);
    SendClientMessage(playerid, COLOR_GRAD1, string);
    }
    }
    }
    return 1;
    }