Beiträge von Ryan_McZauchi

    Hallo Leute ich habe ein Problem mit den Checkpoints...


    Also ich habe es so gemacht


    if (strcmp("/parcour", cmdtext, true, 10) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),2788.9016,-978.3054,51.6090);
    }
    else
    {
    SetPlayerPos(playerid,2788.9016,-978.3054,51.6090);
    }
    CP[playerid] = 1;
    SetPlayerCheckpoint(playerid, 2837.5112,-972.4731,51.0721, 9.0/* Koordinaten #1*/);
    SendClientMessage(playerid, COLOR_RED, "Du hast den Zauchi Parcour gestartet.");


    }
    return 1;
    }


    und dann noch


    public OnPlayerEnterCheckpoint(playerid)
    {
    if(CP[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, COLOR_RED, "Du hast Checkpoint Nr. 1/20 erreicht.");
    SetPlayerCheckpoint(playerid, 1221.8497,-1648.3910,11.7969, 9.0/* Koordinaten #2*/);
    CP[playerid] = 2;
    }
    else if(CP[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, COLOR_RED, "Du hast Checkpoint Nr. 2/20 erreicht.");
    SetPlayerCheckpoint(playerid, 1221.8497,-1648.3910,11.7969, 9.0/* Koordinaten #3*/);
    CP[playerid] = 3;
    }
    else if(CP[playerid] == 3)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, COLOR_RED, "Du hast Checkpoint Nr. 3/20 erreicht.");
    SetPlayerCheckpoint(playerid, 1221.8497,-1648.3910,11.7969, 9.0/* Koordinaten #4*/);
    CP[playerid] = 4;
    }
    return 1;
    }


    So alles funktioniert Super nur das Problem: Die Checkpoints spawnen nicht in der Luft auf meinen selbst erstellen Objects. Frage: Wie kann ich ändern das die nicht am Original-Boden sondern auf meinen Objects (bzw. in der Luft) Spawnen!!!


    Mfg, Flaming


    EDIT: Kann mir den keiner helfen? Verzweifle hier ! ;(

    public OnPlayerCommandText(playerid, cmdtext[])
    {


    if( !strcmp(cmdtext,"/dm",true ))
    {
    ResetPlayerWeapons(playerid);
    new RandomSpawn;
    RandomSpawn = random(6);
    switch(RandomSpawn)
    {
    case 1: SetPlayerPos(playerid,1028.3644,1772.8284,10.8203);
    case 2: SetPlayerPos(playerid,1052.8002,1794.2131,10.8203);
    case 3: SetPlayerPos(playerid,1098.5042,1764.5466,10.8203);
    case 4: SetPlayerPos(playerid,1110.1493,1733.7333,12.3630);
    case 5: SetPlayerPos(playerid,1079.4156,1732.1071,10.8203);
    case 6: SetPlayerPos(playerid,1048.3490,1737.8097,10.8203);


    }
    SetPlayerArmour(playerid,100);
    return 1;
    }

    return 1;
    }



    VIELLECHT LIEGT ES DARAN, HABT IHR DAS AUCH ANGESCHAUT?!


    PS: Mit Stream geht das auch nicht !!!

    Hallo Leute ich hab mir hier selbst so ein Deathmatch Map gebaut... Dort liegen Waffen herum Barrels usw. Dann habe ich ein Randomspawn wenn man /dm eingibt.
    Doch immer wenn man dort stirbt bekommt der Spieler einen Exe Crash.... Es nervt gewaltig und ich möchte unbedingt das es behoben wird.
    PS: Ich habe nichts anderes im Script


    #include <a_samp>


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


    #if defined FILTERSCRIPT


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


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    }


    #endif


    public OnGameModeInit()
    {
    SetGameModeText("Deathmatch 4 Ever");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);

    AddStaticPickup(355,2,1078.8960,1765.7417,10.8203); // AK47
    AddStaticPickup(349,2,1108.5846,1753.3416,10.8203); // Shotgun
    AddStaticPickup(342,2,1112.3048,1725.5625,10.8203); // Grenades
    AddStaticPickup(353,2,1089.3286,1734.8081,10.8203); // Mp5
    AddStaticPickup(351,2,1080.6687,1732.8429,18.7841); // CombatShotgun
    AddStaticPickup(335,2,1071.0427,1751.7266,10.8203); // Knife
    AddStaticPickup(346,2,1071.8887,1771.8796,16.2455); // 9mm
    AddStaticPickup(356,2,1028.7600,1750.6576,10.8203); // M4
    AddStaticPickup(347,2,1022.7874,1755.8071,15.1047); // SdPistol
    AddStaticPickup(336,2,1036.0632,1789.7921,10.8203); // Baseball
    AddStaticPickup(333,2,1107.5330,1785.6327,10.8203); // Golf
    AddStaticPickup(348,2,1107.4633,1773.1816,14.6588); // Deagle
    AddStaticPickup(358,2,1082.6169,1740.7770,26.3940); // Sniper
    AddStaticPickup(357,2,1058.7184,1763.5232,26.6491); // Rifle
    AddStaticPickup(334,2,1058.3204,1738.0336,14.3603); // Night Stick
    AddStaticPickup(339,2,1057.3676,1724.7175,10.8203); // Katana
    AddStaticPickup(372,2,1033.7086,1736.1711,10.8203); // Tec9
    AddStaticPickup(337,2,1042.4609,1729.8359,16.7594); // Shovel
    AddStaticPickup(352,2,1037.7004,1757.7903,10.8203); // Smg


    //hier wären meine Objects will aber nicht das sie geklaut werden


    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 OnPlayerRequestSpawn(playerid)
    {
    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 OnPlayerPrivmsg(playerid, recieverid, text[])
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {


    if( !strcmp(cmdtext,"/dm",true ))
    {
    ResetPlayerWeapons(playerid);
    new RandomSpawn;
    RandomSpawn = random(6);
    switch(RandomSpawn)
    {
    case 1: SetPlayerPos(playerid,1028.3644,1772.8284,10.8203);
    case 2: SetPlayerPos(playerid,1052.8002,1794.2131,10.8203);
    case 3: SetPlayerPos(playerid,1098.5042,1764.5466,10.8203);
    case 4: SetPlayerPos(playerid,1110.1493,1733.7333,12.3630);
    case 5: SetPlayerPos(playerid,1079.4156,1732.1071,10.8203);
    case 6: SetPlayerPos(playerid,1048.3490,1737.8097,10.8203);


    }
    SetPlayerArmour(playerid,100);
    return 1;
    }

    return 1;
    }


    public OnPlayerInfoChange(playerid)
    {
    return 1;
    }


    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 OnObjectMoved(objectid)
    {
    return 1;
    }


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


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


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


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }

    geht net weil ich eine eigene garage habe wo man anfängt und wo alle autos und so sind^^


    btw darf ich hier werbung machen? wenn wer lust hat kann mal vorbeischauen: noob server: 81.217.143.15:7777


    mfg Flaming

    Hey Leute kann mir das wer machen oder erklären:


    Ich will eine DM Zone am Area51 machen... hab soweit alles fertig und hab dort auch mit SetPlayerWorldBounds(playerid, 408.7256, 140.1345, 2113.696, 1775.037);
    gemacht.


    Nun zu meiner Frage: Wie kann ich machen das wenn man in der DM Zone stirbt, das man dort wieder auftaucht und wie kann ich machen das wenn ich mich mit einem anderen cmd wegteleportiere nicht "Stay Within the Worldboundaries" kommt...


    if (strcmp("/area51", cmdtext, true, 10) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    SetPlayerWorldBounds(playerid, 408.7256, 140.1345, 2113.696, 1775.037);


    if(IsPlayerInAnyVehicle(playerid))
    {
    SetVehiclePos(GetPlayerVehicleID(playerid), 333.3501,1986.3398,17.6406);
    }
    else
    {
    SetPlayerPos(playerid, 333.3501,1986.3398,17.6406);
    }
    }
    return 1;
    }


    ich wär dankbar für eure hilfe...

    in OnGameModeInit


    for(new i = 0; i < 299; i++)
    {
    if(IsValidSkin(i))
    {
    AddPlayerClass(i,2032.2887,1544.8514,10.8203,0,0,0,0,0,0);
    }
    }


    Irgendwo anders:


    IsValidSkin(skinid)
    {
    #define MAX_BAD_SKINS 22
    new badSkins[MAX_BAD_SKINS] =
    {
    3, 4, 5, 6, 8, 42, 65, 74, 86,
    119, 149, 208, 265, 266, 267,
    268, 269, 270, 271, 272, 273, 289
    };
    if (skinid < 0 || skinid > 299) return false;
    for (new i = 0; i < MAX_BAD_SKINS; i++)
    {
    if (skinid == badSkins[i]) return false;
    }
    #undef MAX_BAD_SKINS
    return 1;
    }


    Ok hab des gemacht und ganz oben am Script noch forward IsValidSkin


    Geht aber trotzdem net, es sind nun 4 skins zur Auswahl aber 4x CJ :cursing: