Beiträge von Weihnachtsmann

    Ich wollte es so machen, das wenn er 13x Drogen genommen hat, soll er keine mehr nehmen können aber es haut i.wie nicht hin, ich kann weiter hin Drogen nehmen.



    if(strcmp("/usedrugs", cmd, true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pDrugs] >= 2)
    {
    new Float:Health,bekifft[MAX_PLAYERS];
    if(bekifft[playerid] == 1) return SendClientMessage(playerid,COLOR_ERRORTEXT," Du bist bekifft! Du kannst keine weiteren Drogen nehmen!");
    if(drugtime[playerid] > gettime())return SendClientMessage(playerid,COLOR_ERRORTEXT," Du kannst nur jede 20 Sekunden Drogen nehmen!");
    drugtime[playerid] = gettime()+20;
    GetPlayerName(playerid,sendername,sizeof(sendername));
    GetPlayerHealth(playerid, Health);
    PlayerStoned[playerid] += 1;
    if(PlayerStoned[playerid] >= 2)
    {
    GameTextForPlayer(playerid, "~w~Du bist~n~~p~bekifft", 4000, 1);
    bekifft[playerid] = 1;
    }
    /*if(PlayerStonedTime[playerid] > 0)
    {
    GameTextForPlayer(playerid, "~w~Du bist~n~~p~bekifft", 4000, 1);
    //SetPlayerDrunkLevel(playerid,GetPlayerDrunkLevel(playerid) +3000);
    }*/
    if(PlayerInfo[playerid][pDrugPerk] > 0)
    {
    new hp = 5 * PlayerInfo[playerid][pDrugPerk];
    SetPlayerHealth(playerid, Health + hp);
    }
    else
    {
    SetPlayerHealth(playerid, Health + 4);
    }
    PlayerInfo[playerid][pDrugs] -= 2;
    OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0); // Eat Burger
    format(string, sizeof(string), "* %s pfeift sich 2 Gramm getrocknetes Gras rein.", sendername);
    ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    format(string,sizeof(string),"* %s nutzt usedrugs", sendername);
    EnterToLog("usedrugs",string);
    }
    else
    {
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keine Drogen !");
    }
    }
    return 1;
    }

    C:\Users\\Desktop\Server\gamemodes\IR2.pwn(46406) : error 029: invalid expression, assumed zero
    C:\Users\\Desktop\Server\gamemodes\IR2.pwn(46406) : error 004: function "undrunk" is not implemented


    Ich weiß nicht, was falsch seine sollte:



    //Oben im Script
    forward undrunk (playerid);


    // im Befehl
    SetTimerEx("undrunk",20000,0,"i",playerid);


    //public
    public undrunk (playerid)
    {
    ClearAnimations(playerid);
    return 1;
    }

    http://wiki.sa-mp.com/wiki/ClearAnimations
    Sollte dir weiterhelfen.


    //E:
    Aber falls er in einer Wiederholenden Animation steckt (was er denke ich tuht) kannst du zB den Code aus den Standard Filterscript gl_actions nehmen.


    Der dies beinhaltet:
    ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);


    Bekomme Erros ...



    if(strcmp("/usedrugs", cmd, true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pDrugs] >= 2)
    {
    new Float:Health;
    if(drugtime[playerid] > gettime())return SendClientMessage(playerid,COLOR_ERRORTEXT," Du kannst nur jede 20 Sekunden Drogen nehmen!");
    drugtime[playerid] = gettime()+20;
    GetPlayerName(playerid,sendername,sizeof(sendername));
    GetPlayerHealth(playerid, Health);
    PlayerStoned[playerid] += 1;
    if(PlayerStonedTime[playerid] > 0) return SendClientMessage(playerid,COLOR_ERRORTEXT,"Du bist bekifft, du kannst keine weiteren Drogen nehmen!");
    if(PlayerStoned[playerid] >= 2)
    {
    PlayerStonedTime[playerid] = 180;
    }
    if(PlayerStonedTime[playerid] > 0)
    {
    GameTextForPlayer(playerid, "~w~Du bist~n~~p~bekifft", 4000, 1);
    SetTimerEx("unbekifft", 20000,0,"i",playerid);
    //SetPlayerDrunkLevel(playerid,GetPlayerDrunkLevel(playerid) +3000);
    }
    if(PlayerInfo[playerid][pDrugPerk] > 0)
    {
    new hp = 5 * PlayerInfo[playerid][pDrugPerk];
    SetPlayerHealth(playerid, Health + hp);
    }
    else
    {
    SetPlayerHealth(playerid, Health + 4);
    }
    OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0); // Eat Burger
    format(string, sizeof(string), "* %s pfeift sich 2 Gramm getrocknetes Gras rein.", sendername);
    ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    PlayerInfo[playerid][pDrugs] -= 2;
    format(string,sizeof(string),"* %s nutzt usedrugs", sendername);
    EnterToLog("usedrugs",string);
    }
    else
    {
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keine Drogen !");
    }
    }
    return 1;
    }

    forward unbekifft(playerid);
    public unbekifft(playerid)
    {
    ClearAnimations(playerid);
    return 1;
    }


    C:\Users\Can\Desktop\Server\gamemodes\IR2.pwn(6350) : warning 213: tag mismatch
    C:\Users\Can\Desktop\Server\gamemodes\IR2.pwn(9037) : warning 213: tag mismatch
    C:\Users\Can\Desktop\Server\gamemodes\IR2.pwn(17127) : warning 203: symbol is never used: "logtext"
    C:\Users\Can\Desktop\Server\gamemodes\IR2.pwn(17127) : warning 203: symbol is never used: "log"
    C:\Users\Can\Desktop\Server\gamemodes\IR2.pwn(24877) : warning 213: tag mismatch
    C:\Users\Can\Desktop\Server\gamemodes\IR2.pwn(46452) : error 029: invalid expression, assumed zero
    C:\Users\Can\Desktop\Server\gamemodes\IR2.pwn(46452) : error 017: undefined symbol "unbekifft"
    C:\Users\Can\Desktop\Server\gamemodes\IR2.pwn(46453) : error 029: invalid expression, assumed zero
    C:\Users\Can\Desktop\Server\gamemodes\IR2.pwn(46453) : error 017: undefined symbol "unbekifft"
    C:\Users\Can\Desktop\Server\gamemodes\IR2.pwn(46459) : warning 225: unreachable code
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.


    Nur die Errors, die Warnings haben nichts damit zu tun :D

    Hey, ich wollte es so machen, das wenn man mehr als 12x Drogen genommen hat, soll man für 30Sekunden bekifft auf den Boden liegen doch ich weiß nicht genau wie es gehen soll bzw. klappt nicht :o



    if(strcmp("/usedrugs", cmd, true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pDrugs] >= 2)
    {
    new Float:Health;
    if(drugtime[playerid] > gettime())return SendClientMessage(playerid,COLOR_ERRORTEXT," Du kannst nur jede 20 Sekunden Drogen nehmen!");
    drugtime[playerid] = gettime()+20;
    GetPlayerName(playerid,sendername,sizeof(sendername));
    GetPlayerHealth(playerid, Health);
    PlayerStoned[playerid] += 1;
    if(PlayerStoned[playerid] >= 12)
    {
    PlayerStonedTime[playerid] = 4;
    }
    if(PlayerStonedTime[playerid] > 0)
    {
    GameTextForPlayer(playerid, "~w~Du bist~n~~p~bekifft", 4000, 1);
    //SetPlayerDrunkLevel(playerid,GetPlayerDrunkLevel(playerid) +3000);
    }
    if(PlayerInfo[playerid][pDrugPerk] > 0)
    {
    new hp = 5 * PlayerInfo[playerid][pDrugPerk];
    SetPlayerHealth(playerid, Health + hp);
    }
    else
    {
    SetPlayerHealth(playerid, Health + 4);
    }
    PlayerInfo[playerid][pDrugs] -= 2;
    OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0); // Eat Burger
    format(string, sizeof(string), "* %s pfeift sich 2 Gramm getrocknetes Gras rein.", sendername);
    ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    format(string,sizeof(string),"* %s nutzt usedrugs", sendername);
    EnterToLog("usedrugs",string);
    }
    else
    {
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keine Drogen !");
    }
    }
    return 1;

    Hey, ich wollte es so machen, das wenn man genappt ist und außerhalb eines GF offline geht, soll das Gegnerische Team einen Punkt bekommen, doch i.wie klappt es nicht wie ich es will. Das ganze GF buggt dann, da steht dann aufeinmal WCC gegen Triaden obwohl eig. Ballas gegen Triaden und die bekommen keinen Punkt.


    Unter OnPlayerDisconnect



    for(new gf = 0; gf < sizeof(GangfightSystemInfo); gf++){
    if(PlayerTied[playerid] == 1)
    {
    if(!IsPlayerInArea(playerid, GangfightSystemInfo[gf][MinX],GangfightSystemInfo[gf][MinY],GangfightSystemInfo[gf][MaxX],GangfightSystemInfo[gf][MaxY]))
    {
    if(GangfightSystemInfo[gf][GFOwnerID] == PlayerInfo[playerid][pTeam] || GangfightSystemInfo[gf][GFGegnerID] == PlayerInfo[playerid][pTeam])
    {
    if(GangfightSystemInfo[gf][GFOwnerID] == PlayerInfo[playerid][pTeam])
    {
    GangfightSystemInfo[gf][GFGegnerPoints] += 1;
    }
    else if(GangfightSystemInfo[gf][GFGegnerID] == PlayerInfo[playerid][pTeam])
    {
    GangfightSystemInfo[gf][GFOwnerID] += 1;
    }
    }
    }
    }
    }

    Zeig mal die Struktur von "GFInfo" (Beim Enum).
    Mir fällt auf, dass du die hintersten Daten des neuen Gebiets einfach so vom Schiff übernommen hast! Sind die so unwichtig? :P
    Min,Max x y in der richtigen Reihenfolge gesavet?



    Alle Gebiete klappen ausser Schiff Gebiet 2... kannst du da mal schauen

    Zeig mal die Struktur von "GFInfo" (Beim Enum).
    Mir fällt auf, dass du die hintersten Daten des neuen Gebiets einfach so vom Schiff übernommen hast! Sind die so unwichtig? :P
    Min,Max x y in der richtigen Reihenfolge gesavet?

    enum GFInfo
    {
    GFGangZoneID,
    GFOwnerID,
    GFGegnerID,
    GFOwnerPoints,
    GFGegnerPoints,
    Float:MinX,
    Float:MinY,
    Float:MaxX,
    Float:MaxY,
    GFRunningTime,
    GFPauseTime,
    Float:PickupX,
    Float:PickupY,
    Float:PickupZ,
    GFCTFPlayer,
    GFCTFTimer,
    GFOwnerCTF,
    GFGegnerCTF,
    };


    Müsste eig. richtig sein mit minX sonst würde es ja auf der Karte falsch angezeigt werden, oder nicht?

    H


    Habe ich ja, sehe aber keinen unterschied... Villt kennt sich jemand aus mit dem Script.


    //Edit: Mit Enums :D Gangfight wir in einer DAtei gespeichert.

    Wie wärs mit den zugehörigen CMD's?



    if(strcmp("/startfight", cmd, true) == 0)
    {
    new HatGFOwnerID = 0;
    new HatGFGegnerID = 0;
    new NoGF = 0;
    if(IsPlayerConnected(playerid))
    {
    if(!IsAGangMember(playerid) || PlayerInfo[playerid][pTeam] == 2 || PlayerInfo[playerid][pTeam] == 8 || PlayerInfo[playerid][pTeam] == 10 || PlayerInfo[playerid][pTeam] == 15 || PlayerInfo[playerid][pTeam] == 21 || PlayerInfo[playerid][pTeam] == 25)
    {
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Deine Gang/Fraktion ist nicht berechtigt diesen Befehl zu nutzen !");
    return 1;
    }
    if(PlayerInfo[playerid][pRank] < 8)
    {
    SendClientMessage(playerid, COLOR_BENUTZETEXT, "Du brauchst Rank 8 oder höher!");
    return 1;
    }
    for(new i = 0; i < sizeof(GangfightSystemInfo); i++)
    {
    if(IsPlayerInArea(playerid, GangfightSystemInfo[i][MinX],GangfightSystemInfo[i][MinY],GangfightSystemInfo[i][MaxX],GangfightSystemInfo[i][MaxY]))
    {
    if(GangfightSystemInfo[i][GFPauseTime] != -1)
    {
    format(string, sizeof(string), "Du kannst das Gebiet erst in %d Stunde(n) und %d Minute(n) angreifen.", (1440-GangfightSystemInfo[i][GFPauseTime])/60,(1440-GangfightSystemInfo[i][GFPauseTime])`);
    SendClientMessage(playerid, COLOR_GREEN, string);
    return 1;
    }
    gettime(Stunde);
    if(Stunde < 10 && PlayerInfo[playerid][pAdmin] < 2000 || Stunde > 21 && PlayerInfo[playerid][pAdmin] < 2000)
    {
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Du kannst ein Gebiet nur zwichen 10-21 Uhr angreifen!");
    return 1;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == -1)
    {
    if(GangfightSystemInfo[i][GFOwnerID] != PlayerInfo[playerid][pTeam])
    {
    HatGFOwnerID = GangfightSystemInfo[i][GFOwnerID];
    HatGFGegnerID = PlayerInfo[playerid][pTeam];
    for(new h = 0; h < sizeof(GangfightSystemInfo); h++)
    {
    if(GangfightSystemInfo[h][GFRunningTime] != -1)
    {
    if(GangfightSystemInfo[h][GFGegnerID] == HatGFGegnerID || GangfightSystemInfo[h][GFGegnerID] == HatGFOwnerID || GangfightSystemInfo[h][GFOwnerID] == HatGFGegnerID || GangfightSystemInfo[h][GFOwnerID] == HatGFOwnerID)
    {
    NoGF = 1;
    }
    }
    }
    if(NoGF == 1)
    {
    SendClientMessage(playerid, COLOR_BENUTZETEXT, " Dein Team oder das Gegnerriche Team hat schon ein Gangfight am laufen !");
    return 1;
    }
    new GegnerOnline;
    ForAllPlayers(pl){
    if(IsPlayerConnected(pl) && !IsPlayerNPC(pl)){
    if(PlayerInfo[pl][pTeam] == GangfightSystemInfo[i][GFOwnerID])
    {
    GegnerOnline++;
    }
    }
    }
    if(GegnerOnline < 1)
    {
    SendClientMessage(playerid, COLOR_BENUTZETEXT, " Es ist derzeit kein Member der Gegner Online !");
    return 1;
    }
    GangfightSystemInfo[i][GFGegnerID] = PlayerInfo[playerid][pTeam];
    GangfightSystemInfo[i][GFOwnerPoints] = 0;
    GangfightSystemInfo[i][GFGegnerPoints] = 0;
    GangfightSystemInfo[i][GFRunningTime] = 0;
    new GANGZONE_COLOR;
    if(GangfightSystemInfo[i][GFGegnerID] == 5)
    {
    GANGZONE_COLOR = GANGCOLOR_LCN;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == 6)
    {
    GANGZONE_COLOR = GANGCOLOR_YAKUZA;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == 18)
    {
    GANGZONE_COLOR = GANGCOLOR_ATZTECAS;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == 19)
    {
    GANGZONE_COLOR = GANGCOLOR_GROVESTREET;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == 20)
    {
    GANGZONE_COLOR = GANGCOLOR_BALLAS;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == 23)
    {
    GANGZONE_COLOR = GANGCOLOR_REDSOLDIER;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == 24)
    {
    GANGZONE_COLOR = GANGCOLOR_VAGOS;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == 25)
    {
    GANGZONE_COLOR = GANGCOLOR_GUERILLA;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == 26)
    {
    GANGZONE_COLOR = GANGCOLOR_KARTEL;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == 17)
    {
    GANGZONE_COLOR = GANGCOLOR_CAMORA;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == 22)
    {
    GANGZONE_COLOR = GANGCOLOR_RIFA;
    }
    GangZoneFlashForAll(GangfightSystemInfo[i][GFGangZoneID], GANGZONE_COLOR);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    new OwnerTeamText[20];
    if(GangfightSystemInfo[i][GFOwnerID] == 5) { OwnerTeamText = "La Cosa Nostra"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 6) { OwnerTeamText = "Yakuza"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 15) { OwnerTeamText = "Biker Boys"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 17) { OwnerTeamText = "Camorra"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 18) { OwnerTeamText = "V.L.Aztecas"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 19) { OwnerTeamText = "Grove Street"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 20) { OwnerTeamText = "Ballas"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 21) { OwnerTeamText = "West Coast Customs"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 22) { OwnerTeamText = "Triaden"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 23) { OwnerTeamText = "Red Soldiers"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 24) { OwnerTeamText = "L.S.Vagos"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 25) { OwnerTeamText = "Guerilla"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 26) { OwnerTeamText = "Cali Kartell"; }
    new GegnerTeamText[20];
    if(GangfightSystemInfo[i][GFGegnerID] == 5) { GegnerTeamText = "La Cosa Nostra"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 6) { GegnerTeamText = "Yakuza"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 15) { GegnerTeamText = "Biker Boys"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 17) { GegnerTeamText = "Camorra"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 18) { GegnerTeamText = "V.L.Aztecas"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 19) { GegnerTeamText = "Grove Street"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 20) { GegnerTeamText = "Ballas"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 21) { GegnerTeamText = "West Coast Customs"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 22) { GegnerTeamText = "Triaden"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 23) { GegnerTeamText = "Red Soldiers"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 24) { GegnerTeamText = "L.S.Vagos"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 25) { GegnerTeamText = "Guerilla"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 26) { GegnerTeamText = "Cali Kartell"; }
    format(string, sizeof(string), "NEWS: %s hat den Kampf für die %s gegen die %s gestartet.", sendername, GegnerTeamText, OwnerTeamText);
    OOCNews(COLOR_NEWS, string);
    printf("[%s]: hat das Gangfight für %s gegen die %s gestartet.", sendername, GegnerTeamText, OwnerTeamText);
    }
    }
    }
    }
    }
    return 1;
    }



    if(strcmp("/gebietinfo", cmd, true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    for(new i = 0; i < sizeof(GangfightSystemInfo); i++)
    {
    if(IsPlayerInArea(playerid, GangfightSystemInfo[i][MinX],GangfightSystemInfo[i][MinY],GangfightSystemInfo[i][MaxX],GangfightSystemInfo[i][MaxY]))
    {
    if(GangfightSystemInfo[i][GFGegnerID] != -1)
    {
    SendClientMessage(playerid, COLOR_YELLOW, "|__________ Gebietinfo __________|");
    new OwnerTeamText[20];
    if(GangfightSystemInfo[i][GFOwnerID] == 5) { OwnerTeamText = "La Cosa Nostra"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 6) { OwnerTeamText = "Yakuza"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 15) { OwnerTeamText = "Biker Boys"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 17) { OwnerTeamText = "Camorra"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 18) { OwnerTeamText = "V.L.Aztecas"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 19) { OwnerTeamText = "Grove Street"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 20) { OwnerTeamText = "Ballas"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 21) { OwnerTeamText = "West Coast Customs"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 22) { OwnerTeamText = "Triaden"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 23) { OwnerTeamText = "Red Soldiers"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 24) { OwnerTeamText = "L.S.Vagos"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 25) { OwnerTeamText = "Guerilla"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 26) { OwnerTeamText = "Cali Kartell"; }
    new GegnerTeamText[20];
    if(GangfightSystemInfo[i][GFGegnerID] == 5) { GegnerTeamText = "La Cosa Nostra"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 6) { GegnerTeamText = "Yakuza"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 15) { GegnerTeamText = "Biker Boys"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 17) { GegnerTeamText = "Camorra"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 18) { GegnerTeamText = "V.L.Aztecas"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 19) { GegnerTeamText = "Grove Street"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 20) { GegnerTeamText = "Ballas"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 21) { GegnerTeamText = "West Coast Customs"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 22) { GegnerTeamText = "Triaden"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 23) { GegnerTeamText = "Red Soldiers"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 24) { GegnerTeamText = "L.S.Vagos"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 25) { GegnerTeamText = "Guerilla"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 26) { GegnerTeamText = "Cali Kartell"; }
    format(string, sizeof(string), "%d / %d", GangfightSystemInfo[i][GFOwnerPoints], GangfightSystemInfo[i][GFGegnerPoints]);
    SendClientMessage(playerid, COLOR_GREEN, string);
    format(string, sizeof(string), "%s / %s", OwnerTeamText, GegnerTeamText);
    SendClientMessage(playerid, COLOR_GREEN, string);
    {
    format(string, sizeof(string), "Der Kampf läuft noch %d Stunde(n) und %d Minute(n).", (180-GangfightSystemInfo[i][GFRunningTime])/60,(180-GangfightSystemInfo[i][GFRunningTime])%60);
    SendClientMessage(playerid, COLOR_GREEN, string);
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_YELLOW, "|__________ Gebietinfo __________|");
    new OwnerTeamText[20];
    if(GangfightSystemInfo[i][GFOwnerID] == 5) { OwnerTeamText = "La Cosa Nostra"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 6) { OwnerTeamText = "Yakuza"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 15) { OwnerTeamText = "Biker Boys"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 17) { OwnerTeamText = "Camorra"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 18) { OwnerTeamText = "V.L.Aztecas"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 19) { OwnerTeamText = "Grove Street"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 20) { OwnerTeamText = "Ballas"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 21) { OwnerTeamText = "West Coast Customs"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 22) { OwnerTeamText = "Triaden"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 23) { OwnerTeamText = "Red Soldiers"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 24) { OwnerTeamText = "L.S.Vagos"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 25) { OwnerTeamText = "Guerilla"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 26) { OwnerTeamText = "Cali Kartell"; }
    format(string, sizeof(string), "Besitzer: %s", OwnerTeamText);
    SendClientMessage(playerid, COLOR_GREY, string);
    if(GangfightSystemInfo[i][GFPauseTime] != -1)
    {
    format(string, sizeof(string), "Status: Angreifschutz für %d Stunde(n) und %d Minute(n).", (1440-GangfightSystemInfo[i][GFPauseTime])/60,(1440-GangfightSystemInfo[i][GFPauseTime])%60);
    SendClientMessage(playerid, COLOR_GREY, string);
    return 1;
    }else{
    SendClientMessage(playerid, COLOR_GREY, "Status: Angreifbar.");
    }
    }
    }
    }
    }
    return 1;
    }

    Code her!


    Ich habe hier einfach die Coordinaten eingefügt, mehr nicht. Müsste eig gehen oder muss ich noch was i.wo hinzufügen.


    new GangfightSystemInfo[9][GFInfo] =
    {
    {-1,18,-1,0,0,779.5656,-1639.3149, 1024.6346,-1411.4283,-1,0,874.6680,-1504.9249,12.7164},//Bss
    {-1,17,-1,0,0,2105.925, -2372.717, 2269.447, -2147.695,-1,0,2150.9788,-2256.2292,13.2986},//LS Hafen
    //{-1,17,-1,0,0,986.386, 1809.776, 1185.533, 2049.596,-1,0,1066.4142,1883.8596,10.8203},//LV Container gebiet
    {-1,6,-1,0,0,-1869.358, 870.2093, -1656.91, 1130.577,-1,0,-1717.2057,1017.6675,17.5859},//SF Bank
    {-1,20,-1,0,0,-934.23, 1342.956, -537.1823, 1658.258,-1,0,-797.2783,1522.8790,26.9849},//LV Wüste
    {-1,24,-1,0,0,-624.3357,-199.8011, -423.9013,-36.6984,-1,0,-533.4424,-102.6740,63.2969},//Nahe Bauernhof
    {-1,24,-1,0,0,1828.318, -1946.361, 2075.502, -1756.869,-1,0,1956.6233,-1850.9685,4.1632},//Tanksten gebiet
    {-1,25,-1,0,0,1352.5580, 658.3295, 1557.2694, 797.5881,-1,0,1457.9932,738.5165,11.0234},//LV Nahe GRP YakuzaBase
    //{-1,18,-1,0,0,-1424.701, 2230.474, -1132.754, 2639.2,-1,0,-1308.1746,2543.1692,87.7422},//Gangfight an den Tippies
    {-1,18,-1,0,0,-1496.5255,1461.5786, -1342.6473,1511.1339,-1,0,-1423.2755,1489.7532,1.8672},//Schiff Gebiet
    {-1,20,-1,0,0,-2279.440673,1588.022827,-2539.263427,1513.727905,-1,0,-1423.2755,1489.7532,1.8672}
    //{-1,5,-1,0,0,1688.3701,2713.3540,1922.8389,2886.8803 ,-1,0,1797.1097,2784.0983,10.5630},//LV mit Pool
    //{-1,22,-1,0,0,2228.4958,2713.3449,2462.1494,2827.0939 ,-1,0,2335.4101,2786.2687,10.5481}//LV an der Tanke
    //{-1,6,-1,0,0,2527.4624,2233.3325,2677.5786,2484.3283 ,-1,0,2576.3649,2341.7500,17.8144},//LV am Hotel
    //{-1,19,-1,0,0,-917.0397,1872.3411,-487.1890,2175.4853 ,-1,0,-781.0264,2115.3237,60.3828},//LV Staudam
    //{-1,23,-1,0,0,-1522.6212,-1659.5980,-1318.6132,-1364.9719 ,-1,0,-1434.4113,-1540.5759,101.7578}//SF Am Mound Chilliad
    //{-1,19,-1,0,0,-1858.2706,1370.4858,-1692.5876,1584.2093 ,-1,0,-1741.3501,1544.2088,7.1875}//SF Am Schiff
    };


    klappt i.wie nicht Xd



    ocmd:pickupgun(playerid,params[])
    {
    if(IsPlayerInRangeOfPoint(playerid,3.0,DX,DY,DZ))
    {
    SendClientMessage(playerid,COLOR_GRÜN," Du hast die Deagle aufgehoben!");
    GivePlayerWeapon(playerid,24,deagleammo);
    DestroyObject(deagle);
    }
    return 1;
    }
    //OnPlayerDeath
    if(GetPlayerWeapon(playerid) == 24)
    {
    deagleammo = GetPlayerAmmo(playerid);
    GetPlayerPos(playerid,DX,DY,DZ);
    deagle = CreateObject(356, DX, DY, DZ-0.9, 110.0, 0.0, 00.0, 00.0);
    }
    //Oben im Script
    new deagle,deagleammo;
    new Float:DX,Float:DY,Float:DZ;


    Object wird nicht erstellt

    Wie würde es gehen, wenn jemand stirbt das die Waffen von ihm auf den Boden fallen? die man dann aufheben kann.
    Aber nur die Waffe der der Spieler in der Hand hatte, mit der Munition.


    mfg

    Wieso kann ich keinen Zug spawnen? :S
    Habe einen ganz normalen Veh Befehl



    ocmd:veh(playerid,params[])
    {
    new ModelID, color[2],Float:VehPos[4], vehicleid;
    if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,0xB0AFB0FF,"Du bist nicht zu Fuss");
    if(sscanf(params, "ddd",ModelID,color[0],color[1])) return SendClientMessage(playerid,0xB0AFB0FF, "/veh [vehicleid] [color1] [color2]");
    if(ModelID < 400 || ModelID > 611) return SendClientMessage(playerid,0xB0AFB0FF, "Die Fahrzeug Id muss von 400 bis 611 sein");
    if(color[0] < 0 || color[0] > 126 || color[1] < 0 || color[1] > 126) return SendClientMessage(playerid,0xB0AFB0FF, "the colorid must be between 0 - 126");
    if(PlayerInfo[playerid][pAdmin] < 5)return SendClientMessage(playerid, COLOR_KEINADMIN, "*** INFO: Dies ist ein Adminbefehl, du bist kein Admin.");
    GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
    GetPlayerFacingAngle(playerid, VehPos[3]);
    vehicleid = CreateVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],-1);
    LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
    SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
    PutPlayerInVehicle(playerid, vehicleid, 0);
    return 1;
    }

    Also ich bin genau an dem Punkt an welchen |-|auke : gerade hängt. Bin mir nicht sicher obs sich Lohnt, aber 200,00€ sind ja nicht die Welt.


    Warte bis die PC Version kommt, tu ich auch.
    Ich hatte meine PS 3 vor 7Monaten verkauft in der Hoffnung das GTA 5 auch auf der PS 4 erscheinen wird.
    Nun, warte ich einfach bis es auf den PC erscheint, wird nicht lange dauern. Da Rockstar sonst sehr viel Verlust machen wird, wenn Sie auf PC nicht releasen.