Beiträge von Chry

    Hallo Community,
    Ich habe einen IsPlayerInRangeOfPoint in einem Interior (Ammunation LS) erstellt doch wenn ich dort enter/f drücke passiert nichts.
    else if(newkeys == (KEY_SECONDARY_ATTACK))
    {
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 285.43426513672, -40.965038299561, 1001.0140991211))
    {
    SetPlayerPos(playerid,1367.8791503906, -1279.7302246094, 13.045351028442);
    SetPlayerInterior(playerid, 0);
    }
    }
    else if(newkeys == (KEY_SECONDARY_ATTACK))
    {
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 295.89212036133, -38.330986022949, 1001.0140991211))
    {
    return 1;
    }
    }


    Pls helft mir wie geht das auch in einem Interior ?


    MFG Chry

    Hallo,
    Hab das mal eigefügt bekomme aber ein Error.
    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    if(newkeys == (KEY_SECONDARY_ATTACK))
    {
    if(PlayerToPoint(1, playerid, 1368.2097,-1279.6730,13.1177))
    {

    }
    }
    return 1;
    }
    C:\Dokumente und Einstellungen\Chry_yrhC\Desktop\test.pwn(119) : error 017: undefined symbol "newkeys"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.
    '


    EDIT: Erledigt im falschem public.... Sachen gibts!

    static gTeam[MAX_PLAYERS];
    #define TEAM_COP 0


    new CopCar[1];//So viel CopCars man hat


    CopCar[0] = AddStaticVehicle(modelid, cord_X, cord_Y, cord_Z, Angle, Farbe1, Farbe2);


    for(new j = 0;j<sizeof CopCar;j++)
    {
    if(vehicleid == CopCar[j])
    {
    if(gTeam[playerid] != TEAM_COP )
    {
    SendClientMessage(playerid,COLOR_GREY,"Du besitzt keinen Schlüssel für dieses Auto!");
    TogglePlayerControllable(playerid,true);
    return 1;
    }
    }
    }

    Hallo Community,
    Ich denke mal jeder von euch kennt Doodle Jump wenn nicht ----> Hier Klicken .
    Währe es nicht lustig sowas ähnliches für gta als FS oder so zu scripten?
    Mit Serverübergreifender Highscoreliste. Geht sowas überhaupt?


    Was denkt ihr? Braucht man sowas? Kann sowas machen?


    Mfg Chry

    :D Wer hat den Thread wieder ausgegraben.


    Thx @all


    Edit: Kann mir vll jemand die MTA Racemap in eine MTA 1.0.4 map converten?

    :D Aber hierbitte
    // This is a comment
    // uncomment the line below if you want to write a filterscript
    //#define FILTERSCRIPT


    #include <a_samp>


    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {
    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    CreateObject(970, -2093.7927246094, -80.309875488281, 34.7155418396, 0, 0, 0);
    CreateObject(970, -2089.6535644531, -80.308059692383, 34.7155418396, 0, 0, 0);
    CreateObject(970, -2085.5317382813, -80.301498413086, 34.7155418396, 0, 0, 0);
    CreateObject(970, -2081.4204101563, -80.290512084961, 34.7155418396, 0, 0, 0);
    CreateObject(970, -2077.3051757813, -80.28125, 34.7155418396, 0, 0, 0);
    CreateObject(970, -2073.1721191406, -80.286643981934, 34.7155418396, 0, 0, 0);
    CreateObject(970, -2069.0478515625, -80.29434967041, 34.7155418396, 0, 0, 0);
    CreateObject(970, -2064.9343261719, -80.295364379883, 34.7155418396, 0, 0, 0);
    CreateObject(970, -2062.1789550781, -84.022361755371, 34.7155418396, 0, 0, 270.67565917969);
    CreateObject(870, -2023.8558349609, -84.138008117676, 34.757747650146, 0, 0, 0);
    CreateObject(870, -2025.537109375, -82.827003479004, 34.757747650146, 0, 0, 0);
    CreateObject(870, -2025.7945556641, -85.275291442871, 34.757747650146, 0, 0, 0);
    CreateObject(870, -2028.01171875, -85.047004699707, 34.757747650146, 0, 0, 0);
    CreateObject(870, -2027.4780273438, -82.875946044922, 34.757747650146, 0, 0, 0);
    CreateObject(870, -2029.3208007813, -82.563850402832, 34.757747650146, 0, 0, 0);
    CreateObject(870, -2029.6990966797, -84.863136291504, 34.757747650146, 0, 0, 0);
    CreateObject(870, -2030.8374023438, -82.639823913574, 34.757747650146, 0, 0, 352.06005859375);
    CreateObject(870, -2030.9854736328, -84.804321289063, 34.757747650146, 0, 0, 352.05688476563);
    CreateObject(870, -2032.3332519531, -82.427124023438, 34.757747650146, 0, 0, 352.05688476563);
    CreateObject(870, -2032.2828369141, -84.342277526855, 34.757747650146, 0, 0, 352.05688476563);
    CreateObject(870, -2023.5871582031, -82.792121887207, 34.757747650146, 0, 0, 352.05688476563);
    CreateObject(870, -2023.6458740234, -85.478805541992, 34.757747650146, 0, 0, 352.05688476563);
    CreateObject(870, -2033.2314453125, -82.464706420898, 34.757747650146, 0, 0, 352.05688476563);
    CreateObject(870, -2033.1408691406, -84.729248046875, 34.757747650146, 0, 0, 352.05688476563);
    CreateObject(870, -2031.8779296875, -85.63988494873, 34.757747650146, 0, 0, 352.05688476563);
    CreateObject(870, -2030.6497802734, -86.051651000977, 34.757747650146, 0, 0, 352.05688476563);
    CreateObject(870, -2028.8182373047, -86.111534118652, 34.757747650146, 0, 0, 352.05688476563);
    CreateObject(870, -2026.7045898438, -86.017707824707, 34.757747650146, 0, 0, 352.05688476563);
    CreateObject(673, -2020.4045410156, -83.995994567871, 34.515625, 0, 0, 0);
    CreateObject(673, -2035.4716796875, -84.058380126953, 34.515625, 0, 0, 0);
    CreateObject(637, -2016.8924560547, -101.15337371826, 34.543071746826, 0, 0, 0);
    CreateObject(637, -2016.8978271484, -98.473823547363, 34.542755126953, 0, 0, 0);
    CreateObject(637, -2016.8953857422, -95.80224609375, 34.540328979492, 0, 0, 0);
    CreateObject(637, -2016.8991699219, -93.12574005127, 34.543792724609, 0, 0, 0);
    CreateObject(637, -2016.8985595703, -90.455718994141, 34.538639068604, 0, 0, 0);
    CreateObject(637, -2016.8980712891, -88.58088684082, 34.538665771484, 0, 0, 0);
    CreateObject(638, -2016.8911132813, -101.14888763428, 35.443908691406, 0, 0, 0);
    CreateObject(638, -2016.8835449219, -98.467796325684, 35.443592071533, 0, 0, 0);
    CreateObject(638, -2016.8885498047, -95.787963867188, 35.441165924072, 0, 0, 0);
    CreateObject(638, -2016.8902587891, -93.12166595459, 35.444629669189, 0, 0, 0);
    CreateObject(638, -2016.8941650391, -90.521896362305, 35.439476013184, 0, 0, 0);
    CreateObject(638, -2016.89453125, -88.571342468262, 35.439502716064, 0, 0, 0);
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason)
    {
    return 1;
    }


    public OnVehicleSpawn(vehicleid)
    {
    return 1;
    }


    public OnVehicleDeath(vehicleid, killerid)
    {
    return 1;
    }


    public OnPlayerText(playerid, text[])
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
    // Do something here
    return 1;
    }
    return 0;
    }


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    return 1;
    }


    public OnPlayerExitVehicle(playerid, vehicleid)
    {
    return 1;
    }


    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    return 1;
    }


    public OnPlayerEnterCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerEnterRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnRconCommand(cmd[])
    {
    return 1;
    }


    public OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnObjectMoved(objectid)
    {
    return 1;
    }


    public OnPlayerObjectMoved(playerid, objectid)
    {
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    return 1;
    }


    public OnVehicleMod(playerid, vehicleid, componentid)
    {
    return 1;
    }


    public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
    {
    return 1;
    }


    public OnVehicleRespray(playerid, vehicleid, color1, color2)
    {
    return 1;
    }


    public OnPlayerSelectedMenuRow(playerid, row)
    {
    return 1;
    }


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }


    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
    {
    return 1;
    }


    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    return 1;
    }


    public OnRconLoginAttempt(ip[], password[], success)
    {
    return 1;
    }


    public OnPlayerUpdate(playerid)
    {
    return 1;
    }


    public OnPlayerStreamIn(playerid, forplayerid)
    {
    return 1;
    }


    public OnPlayerStreamOut(playerid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamIn(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamOut(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    return 1;
    }


    public OnPlayerClickPlayer(playerid, clickedplayerid, source)
    {
    return 1;
    }

    Tach,
    Ich hab kp wie das gehen soll man wählt sie Munitionanzahl,dann wenn man nicht genug Geld hat soll da dann Du hast nicht genug Geld stehen.


    case Ammunation:
    {
    if(response)
    {
    if(listitem == 0) // Pistole
    {
    ShowPlayerDialog(playerid, Munition, DIALOG_STYLE_INPUT, "Munition", "Wieviel Munition willst du haben?", "Absenden", "Abbrechen");
    waffe[playerid] = 0;//0 für Pistole
    }
    if(listitem == 1) // Deagle
    {

    ShowPlayerDialog(playerid, Munition, DIALOG_STYLE_INPUT, "Munition", "Wieviel Munition willst du haben?", "Absenden", "Abbrechen");
    waffe[playerid] = 1;//1 für Deagle
    }
    if(listitem == 2) // SMG
    {

    ShowPlayerDialog(playerid, Munition, DIALOG_STYLE_INPUT, "Munition", "Wieviel Munition willst du haben?", "Absenden", "Abbrechen");
    waffe[playerid] = 2;//1 für Deagle
    }
    //usw...usw...
    }
    return 1;
    }
    case Munition:
    {
    if(response)
    {
    if(waffe[playerid] == 0) GivePlayerWeapon(playerid, 22, strval(inputtext));
    {
    GivePlayerMoney(playerid, -strval(inputtext)*10);
    }

    if(waffe[playerid] == 1) GivePlayerWeapon(playerid, 24, strval(inputtext));
    {
    GivePlayerMoney(playerid, -strval(inputtext)*20);
    }
    if(waffe[playerid] == 2) GivePlayerWeapon(playerid, 29, strval(inputtext));
    {
    GivePlayerMoney(playerid, -strval(inputtext)*25);
    }



    }
    return 1;
    }
    }
    return 1;
    Pls helft mir


    EDIT: Code vergessen :D


    MFG Chry

    Wie baue ich hier eine if abfrage für "Du hast nicht genug Geld " ein?
    Wenn man soviel Munition wählt das es über das Geld geht das man hat soll irgendeine Meldung kommen.
    case Ammunation:
    {
    if(response)
    {
    if(listitem == 0) // Pistole
    {
    ShowPlayerDialog(playerid, Munition, DIALOG_STYLE_INPUT, "Munition", "Wieviel Munition willst du haben?", "Absenden", "Abbrechen");
    waffe[playerid] = 0;//0 für Pistole
    }
    if(listitem == 1) // Deagle
    {
    ShowPlayerDialog(playerid, Munition, DIALOG_STYLE_INPUT, "Munition", "Wieviel Munition willst du haben?", "Absenden", "Abbrechen");
    waffe[playerid] = 1;
    }

    }
    return 1;
    }
    case Munition:
    {
    if(response)
    {
    if(waffe[playerid] == 0) GivePlayerWeapon(playerid, 22, strval(inputtext));
    {
    GivePlayerMoney(playerid, -strval(inputtext)*10);
    }
    l
    if(waffe[playerid] == 1) GivePlayerWeapon(playerid, 24, strval(inputtext));
    {
    GivePlayerMoney(playerid, -strval(inputtext)*20);
    }

    waffe[playerid] = 0;


    }
    return 1;
    }
    }
    return 1;
    }


    Kann mir wer helfen?


    MFG Chry