Beiträge von .Shifty

    Nein, ich möchte das so wenn ich einen Cop oder einen nicht cop töte heißt also ein Zivi Hitman oder ein Gang mitglied töte das ich dafür dann 5 wanteds bekomme sollte ich aber ein Cop töten so soll ich 10 Wanteds bekommen tötet der cop mich soll ich garkeine Wanteds bekommen

    Bekomme leider errors, so ist es perfekt angepasst an meinen Server


    if(!IsACop(playerid))
    SetPlayerWantedLevel(killerid,GetPlayerWantedLevel(killerid)+2);
    SendClientMessage(killerid,RED,"Du hast 2 Wanteds bekommen. Grund: Mord. Zeuge: Anonym.");


    Nur wenn mich dann ein Cop tötet bekommt er die Wanteds und nicht ich

    if(IsPlayerConnected(killerid))
    {
    // Cop kill
    PlayerInfo[playerid][pKills]--;
    if (gTeam[killerid] == 2)//cops kill cop
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+1);//+100pays hospital bill
    }
    if (gTeam[killerid] >= 3)
    {
    WantedPoints[killerid] += 2; //+ 2 wanted points
    if(reason != 49)
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    if(gTeam[killerid] >= 5 && SafeTime[playerid] <= 0)
    {
    if(GetPlayerState(killerid) == 1)
    {
    PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills]+2;
    }
    else
    {
    PlayerInfo[killerid][pKills]++;
    }
    WantedPoints[killerid]+=2;
    }
    }
    }
    else if (victimteam == 3)
    {
    if(IsPlayerConnected(killerid))
    {
    // Civ kill
    if ((gTeam[killerid]) == 2 || PlayerInfo[killerid][pMember] == 7)//cops kill civ
    {
    if(WantedLevel[playerid] < 1)
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    WantedPoints[killerid] += 2; //+ 2 wanted points
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+1);//+100pays hospital bill
    }
    }
    else
    {
    WantedPoints[killerid] += 2;
    }
    if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason != 49)
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    }
    else if (victimteam == 1)
    {
    if(IsPlayerConnected(killerid))
    {
    // Civ kill
    if ((gTeam[killerid]) == 2)//cops kill civ
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+1);//+100pays hospital bill
    }
    else if ((gTeam[killerid]) == 1)//med kill civ
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+1);//+100pays hospital bill
    }
    if (((gTeam[killerid]) == 4) && reason != 49)
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (((gTeam[killerid]) == 3) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    }
    if (victimteam >= 3 && WantedPoints[playerid] > 0 && killerteam == 2)
    {
    SetPlayerFree(playerid,killerid, "Gekillt");
    }
    if(IsPlayerInArea(playerid, 560.538, -724.0283, 875.8406, -362.0141))
    {
    GameTextForPlayer(playerid, "~r~Gangfightdeath", 5000, 3);
    PlayerInfo[playerid][pGDeaths]++;
    GameTextForPlayer(killerid, "~g~Gangfightkill", 5000, 3);
    WantedPoints[killerid] += 2; //+ 2 wanted points
    PlayerInfo[killerid][pGKills]++;
    GivePlayerMoney(killerid, 1500);
    GivePlayerMoney(playerid, -1500);
    }
    killerid = INVALID_PLAYER_ID;
    SetPlayerColor(playerid,COLOR_GRAD2);
    return 1;
    }

    if(IsPlayerConnected(killerid))
    {
    // Cop kill
    PlayerInfo[playerid][pKills]--;
    if (gTeam[killerid] == 2)//cops kill cop
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+1);//+100pays hospital bill
    }
    if (gTeam[killerid] >= 3)
    {
    WantedPoints[killerid] += 2; //+ 2 wanted points
    if(reason != 49)
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    if(gTeam[killerid] >= 5 && SafeTime[playerid] <= 0)
    {
    if(GetPlayerState(killerid) == 1)
    {
    PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills]+2;
    }
    else
    {
    PlayerInfo[killerid][pKills]++;
    }
    WantedPoints[killerid]+=2;
    }
    }
    }
    else if (victimteam == 3)
    {
    if(IsPlayerConnected(killerid))
    {
    // Civ kill
    if ((gTeam[killerid]) == 2 || PlayerInfo[killerid][pMember] == 7)//cops kill civ
    {
    if(WantedLevel[playerid] < 1)
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    WantedPoints[killerid] += 2; //+ 2 wanted points
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+1);//+100pays hospital bill
    }
    }
    else
    {
    WantedPoints[killerid] += 2;
    }
    if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason != 49)
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    }
    else if (victimteam == 1)
    {
    if(IsPlayerConnected(killerid))
    {
    // Civ kill
    if ((gTeam[killerid]) == 2)//cops kill civ
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+1);//+100pays hospital bill
    }
    else if ((gTeam[killerid]) == 1)//med kill civ
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+1);//+100pays hospital bill
    }
    if (((gTeam[killerid]) == 4) && reason != 49)
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (((gTeam[killerid]) == 3) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    }
    if (victimteam >= 3 && WantedPoints[playerid] > 0 && killerteam == 2)
    {
    SetPlayerFree(playerid,killerid, "Gekillt");
    }
    if(IsPlayerInArea(playerid, 560.538, -724.0283, 875.8406, -362.0141))
    {
    GameTextForPlayer(playerid, "~r~Gangfightdeath", 5000, 3);
    PlayerInfo[playerid][pGDeaths]++;
    GameTextForPlayer(killerid, "~g~Gangfightkill", 5000, 3);
    WantedPoints[killerid] += 2; //+ 2 wanted points
    PlayerInfo[killerid][pGKills]++;
    GivePlayerMoney(killerid, 1500);
    GivePlayerMoney(playerid, -1500);
    }
    killerid = INVALID_PLAYER_ID;
    SetPlayerColor(playerid,COLOR_GRAD2);
    return 1;
    }


    IsACop ist die Variable


    /EDIT

    public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart){ if(issuerid == INVALID_PLAYER_ID) return 1; PlayerPlaySound(issuerid,17802,0.0,0.0,0.0); if(weaponid == 34 && bodypart == 9) //Headshot System { GameTextForPlayer(playerid,!"~r~~h~~h~] Boom Headshot ]",5000,5); GameTextForPlayer(issuerid,!"~g~~h~~h~] Boom Headshot ]",5000,5); SetPlayerHealth(playerid, 0.0); return 1; }//diese Klammer hat gefehlt}

    Danke <3

    error 025: function heading differs from prototype
    error 030: compound statement not closed at the end of file (started at line 66709)



    public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
    {
    if(issuerid == INVALID_PLAYER_ID) return 1;
    PlayerPlaySound(issuerid,17802,0.0,0.0,0.0);
    if(weaponid == 34 && bodypart == 9) //Headshot System
    {
    GameTextForPlayer(playerid,!"~r~~h~~h~] Boom Headshot ]",5000,5);
    GameTextForPlayer(issuerid,!"~g~~h~~h~] Boom Headshot ]",5000,5);
    SetPlayerHealth(playerid, 0.0);
    return 1;
    }

    stock GetFracName(playerid)
    {
    new fname[32];
    if(PlayerInfo[playerid][pLeader] == 0)
    {
    switch(PlayerInfo[playerid][pMember])
    {
    case 0:{fname="Zivilist";}
    case 1:{fname="Los Santos Police Department";}
    case 2:{fname="Federal Bureau of Investigation";}
    case 3:{fname="United States of Army";}
    case 4:{fname="Notdienst";}
    case 5:{fname="La Cosa Nostra";}
    case 6:{fname="Yakuza";}
    case 7:{fname="Regierung";}
    case 8:{fname="Hitman Agency";}
    case 9:{fname="Center News Network";}
    case 10:{fname="Taxi Company";}
    case 11:{fname="Fahrschule";}
    case 12:{fname="Triaden";}
    case 13:{fname="Grove Street Family";}
    case 14:{fname="Front Yard Ballas";}
    case 15:{fname="Biker Club";}
    case 16:{fname="Vagos";}
    case 17:{fname="Atzecas";}
    case 18:{fname="Rifas";}
    case 19:{fname="Red Soldiers";}
    case 20:{fname="Terrorist";}
    case 21:{fname="Wheelman Agency";}
    case 22:{fname="SWAT";}
    case 23:{fname="Ordnungsamt";}
    }
    }

    Hey hab ein kleines Problem habe die Pawno Datein alle aktuallisiert, geht aber immer noch nicht


    if(strcmp(cmd, "/government", true) == 0 || strcmp(cmd, "/gov", true) == 0)
    {
    if(!IsPlayerConnected(playerid))return 1;
    //if(PlayerInfo[playerid][pMember] == 0 && PlayerInfo[playerid][pLeader] == 0)return SendClientMessage(playerid, COLOR_GREY, " Du bist kein Mitglied einer Fraktion !");
    if(PlayerInfo[playerid][pRank] < 5)return SendClientMessage(playerid, COLOR_GREY, " Du brauchst Rang 5 !");
    GetPlayerName(playerid, sendername, sizeof(sendername));
    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++;
    }

    Hey, ich habe eine frage wie kann ich diese Kordinaten umschreiben das ich sie für einen Playerpoint und einen enter point benutzen kann ich bekomme immer Warnings deswegen


    AddPlayerClass(19,1517.5137,-1635.3732,13.7969,86.7489,0,0,0,0,0,0); // handy
    AddPlayerClass(19,1482.6721,-1605.5675,13.7969,193.2832,0,0,0,0,0,0); // waffenladen

    Guten Tag, kann mir jemanden zeigen wie ich /showhit erstelle das wenn ich einen Contract annehme und ich vergessen habe wen ich töten muss das ich einfach nur /showhit machen muss und mir im Chat der Name angezeigt wird?


    Contract:


    if(strcmp(cmd, "/contract", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Benutze: /contract [playerid] [Betrag]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Benutze: /contract [playerid] [Betrag]");
    return 1;
    }
    moneys = strval(tmp);
    if(moneys < 1000 || moneys > 100000) { SendClientMessage(playerid, COLOR_GREY, " Die Vertragssumme muss mindestens $1000-, aber nicht mehr als $100.000 betragen!"); return 1; }
    if(PlayerInfo[playerid][pLevel] < 1)
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du musst mindestens Level 1 haben um einen Vertrag zu erstellen.");
    return 1;
    }
    if (IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if(PlayerInfo[giveplayerid][pMember] == 8 && PlayerInfo[playerid][pLeader] == 8)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du kannst keine Verträge mit deiner eigenen Agentur abschließen!");
    return 1;
    }
    else if(PlayerInfo[giveplayerid][pLeader] == 8 && PlayerInfo[playerid][pMember] == 8)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du kannst keine Verträge mit deiner eigenen Agentur abschließen!");
    return 1;
    }
    else if(PlayerInfo[giveplayerid][pMember] == 8||PlayerInfo[giveplayerid][pLeader] == 8)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du kannst keinen Hitman unter Vertrag nehmen !");
    return 1;
    }
    if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Du kannst dich nicht selber unter Vertrag nehmen!"); return 1; }
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    playermoney = GetPlayerMoney(playerid);
    if (moneys > 0 && playermoney >= moneys)
    {
    GivePlayerMoney(playerid, (0 - moneys));
    PlayerInfo[giveplayerid][pHeadValue]+=moneys;
    format(string, sizeof(string), "%s möchte das ein Hitman die Zielperson: %s für $%d tötet.",sendername, giveplayer, moneys);
    SendFamilyMessage(8, COLOR_YELLOW, string);
    format(string, sizeof(string), "* Du hast einem Hitman den Auftrag zur Beseitigung von %s für $%d erteilt.",giveplayer, moneys);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Falsche Angaben!");
    }
    }
    }
    else
    {
    format(string, sizeof(string), " %d ist kein Aktiver Spieler.", giveplayerid);
    SendClientMessage(playerid, COLOR_GRAD1, string);
    }
    }
    return 1;
    }

    Hier


    C:\Users\Pycho Andreas\Desktop\Pawno\Jahrmarkt.pwn(225) : error 017: undefined symbol "TextDrawSetPreviewModel"
    C:\Users\Pycho Andreas\Desktop\Pawno\Jahrmarkt.pwn(226) : error 017: undefined symbol "TextDrawSetPreviewRot"
    C:\Users\Pycho Andreas\Desktop\Pawno\Jahrmarkt.pwn(240) : error 017: undefined symbol "TextDrawSetPreviewModel"
    C:\Users\Pycho Andreas\Desktop\Pawno\Jahrmarkt.pwn(241) : error 017: undefined symbol "TextDrawSetPreviewRot"
    C:\Users\Pycho Andreas\Desktop\Pawno\Jahrmarkt.pwn(255) : error 017: undefined symbol "TextDrawSetPreviewModel"
    C:\Users\Pycho Andreas\Desktop\Pawno\Jahrmarkt.pwn(256) : error 017: undefined symbol "TextDrawSetPreviewRot"
    C:\Users\Pycho Andreas\Desktop\Pawno\Jahrmarkt.pwn(270) : error 017: undefined symbol "TextDrawSetPreviewModel"
    C:\Users\Pycho Andreas\Desktop\Pawno\Jahrmarkt.pwn(271) : error 017: undefined symbol "TextDrawSetPreviewRot"
    C:\Users\Pycho Andreas\Desktop\Pawno\Jahrmarkt.pwn(285) : error 017: undefined symbol "TextDrawSetPreviewModel"
    C:\Users\Pycho Andreas\Desktop\Pawno\Jahrmarkt.pwn(286) : error 017: undefined symbol "TextDrawSetPreviewRot"
    C:\Users\Pycho Andreas\Desktop\Pawno\Jahrmarkt.pwn(300) : error 017: undefined symbol "TextDrawSetPreviewModel"
    C:\Users\Pycho Andreas\Desktop\Pawno\Jahrmarkt.pwn(301) : error 017: undefined symbol "TextDrawSetPreviewRot"
    C:\Users\Pycho Andreas\Desktop\Pawno\Jahrmarkt.pwn(315) : error 017: undefined symbol "TextDrawSetPreviewModel"
    C:\Users\Pycho Andreas\Desktop\Pawno\Jahrmarkt.pwn(316) : error 017: undefined symbol "TextDrawSetPreviewRot"
    C:\Users\Pycho Andreas\Desktop\Pawno\Jahrmarkt.pwn(330) : error 017: undefined symbol "TextDrawSetPreviewModel"
    C:\Users\Pycho Andreas\Desktop\Pawno\Jahrmarkt.pwn(331) : error 017: undefined symbol "TextDrawSetPreviewRot"
    C:\Users\Pycho Andreas\Desktop\Pawno\Jahrmarkt.pwn(345) : error 017: undefined symbol "TextDrawSetPreviewModel"
    C:\Users\Pycho Andreas\Desktop\Pawno\Jahrmarkt.pwn(346) : error 017: undefined symbol "TextDrawSetPreviewRot"
    C:\Users\Pycho Andreas\Desktop\Pawno\Jahrmarkt.pwn(360) : error 017: undefined symbol "TextDrawSetPreviewModel"
    C:\Users\Pycho Andreas\Desktop\Pawno\Jahrmarkt.pwn(361) : error 017: undefined symbol "TextDrawSetPreviewRot"