Bankautomat

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Benutze einfach Stock


    so z.B


    stock AtATM(playerid)
    {
    if (PlayerToPoint(2.0, playerid, 1505.3571,-1706.5531,14.0469) || PlayerToPoint(2.0, playerid, 1223.6383,-1743.6448,13.5971))
    {
    return 1;
    }
    else if (PlayerToPoint(2.0, playerid, 491.4543,-1733.9115,11.2632) || PlayerToPoint(2.0, playerid, 380.7548,-2022.3887,7.8359))
    {
    return 1;
    }
    else if (PlayerToPoint(2.0, playerid, 1000.1720,-922.7279,42.3281) || PlayerToPoint(2.0, playerid, 1196.0596,-919.2913,43.1502))
    {
    return 1;
    }
    else if (PlayerToPoint(2.0, playerid, 1036.0769,-1025.1725,32.1016) || PlayerToPoint(2.0, playerid, 926.2456,-1355.0319,13.3783))
    {
    return 1;
    }
    else if (PlayerToPoint(2.0, playerid, 811.2282,-1623.7705,13.5547) || PlayerToPoint(2.0, playerid, 1929.2842,-1771.2465,13.5469))
    {
    return 1;
    }
    else if (PlayerToPoint(2.0, playerid, 2104.7717,-1809.2222,13.5547) || PlayerToPoint(2.0, playerid, 2072.7190,-1836.9708,13.5545))
    {
    return 1;
    }
    else if (PlayerToPoint(2.0, playerid, 1957.3990,-2186.2932,13.5469) || PlayerToPoint(2.0, playerid, 2779.4229,-1822.4525,10.2743))
    {
    return 1;
    }
    else if (PlayerToPoint(2.0, playerid, 2394.5190,-1915.5287,13.5469))
    {
    return 1;
    }
    return 0;
    }


    //Edit noch ne kleine Hilfe :P


    if(strcmp(cmd, "/atm", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (!PlayerToPoint(3, playerid,492.086883,-1505.970825,20.368480))
    if (!PlayerToPoint(4.0, playerid,1505.249389,-1708.828247,13.644058))
    if (!PlayerToPoint(4.0, playerid,1192.881713,-916.749755,42.836994))
    if (!PlayerToPoint(4.0, playerid,379.037292,-2064.606445,7.498334))
    if (!PlayerToPoint(4.0, playerid,-2035.818359,-102.000915,34.779434))
    if (!PlayerToPoint(4.0, playerid,-1648.864990,1202.542114,6.887335))
    if (!PlayerToPoint(4.0, playerid,2173.859130,1404.932128,10.659158))
    if (!PlayerToPoint(4.0, playerid,306.8025,-1158.6909,80.9141))
    {
    SendClientMessage(playerid, COLOR_GREY, " Sie sind an keinem ATM!");
    return 1;
    }
    ShowPlayerDialog(playerid, atmdia, DIALOG_STYLE_LIST, "Welche Option darf es sein?", "Abheben\nEinzahlen\nÜbwerweisen", "Auswählen", "Abbrechen");
    return 1;
    }
    return 1;
    }