/level Problem

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
  • Hallo
    Ich habe ein Kleines Problem mit meinem /level
    Befehl er ist dazu da wen man eine bestimme anzahl von kills hat kann man /level
    machen und man bekommt ein level und score aber irgendwie sagt er ingame Unknow command


    ich kann leider nicht pawno einfügen



    if(strcmp(cmdtext,"/level",true)==0)
    {
    if(GetPVarInt(playerid,"kills")==25)
    if(GetPVarInt(playerid,"Kills")==50)
    if(GetPVarInt(playerid,"Kills")==75)
    if(GetPVarInt(playerid,"Kills")==100)
    if(GetPVarInt(playerid,"Kills")==125)
    if(GetPVarInt(playerid,"Kills")==150)
    if(GetPVarInt(playerid,"Kills")==175)
    if(GetPVarInt(playerid,"Kills")==200)
    if(GetPVarInt(playerid,"Kills")==225)
    if(GetPVarInt(playerid,"Kills")==250)
    if(GetPVarInt(playerid,"Kills")==275)
    if(GetPVarInt(playerid,"Kills")==300)
    if(GetPVarInt(playerid,"Kills")==325)
    if(GetPVarInt(playerid,"Kills")==350)
    if(GetPVarInt(playerid,"Kills")==375)
    if(GetPVarInt(playerid,"Kills")==400)
    if(GetPVarInt(playerid,"Kills")==425)
    if(GetPVarInt(playerid,"Kills")==450)
    if(GetPVarInt(playerid,"Kills")==475)
    if(GetPVarInt(playerid,"Kills")==500)
    if(GetPVarInt(playerid,"Kills")==525)
    if(GetPVarInt(playerid,"Kills")==550)
    if(GetPVarInt(playerid,"Kills")==575)
    if(GetPVarInt(playerid,"Kills")==600)
    if(GetPVarInt(playerid,"Kills")==625)
    if(GetPVarInt(playerid,"Kills")==650)
    if(GetPVarInt(playerid,"Kills")==675)
    if(GetPVarInt(playerid,"Kills")==700)
    if(GetPVarInt(playerid,"Kills")==725)
    if(GetPVarInt(playerid,"Kills")==750)
    if(GetPVarInt(playerid,"Kills")==775)
    if(GetPVarInt(playerid,"Kills")==800)
    if(GetPVarInt(playerid,"Kills")==825)
    if(GetPVarInt(playerid,"Kills")==850)
    if(GetPVarInt(playerid,"Kills")==875)
    if(GetPVarInt(playerid,"Kills")==900)
    if(GetPVarInt(playerid,"Kills")==925)
    if(GetPVarInt(playerid,"Kills")==950)
    if(GetPVarInt(playerid,"Kills")==975)
    if(GetPVarInt(playerid,"Kills")==1000)
    {
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,10000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast dir ein Level up geholt $10,000 geschenk");
    SpielerSpeichern(playerid);
    return 1;
    }
    else
    {
    SendClientMessage(playerid, BLAU, "Du hast zuwenig Kills");
    return 1;
    }
    }

  • Hi Danke für die antwort
    jetzt würd ich noch machen das das automatisch geht
    das heisst wen ich zum. 50 kills hab bekomm ich score und money
    ich hab ein stock gemacht aber ingame passiert nichts
    pls hilfe




    stock Level(playerid,Kills)
    {
    switch(GetPVarInt(playerid,"Kills"))
    {
    case 25:
    {
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,5000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 25 Kills Gemacht du erhälst $5.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 50:
    {
    if(GetPVarInt(playerid,"Kills")==50)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,10000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 50 Kills Gemacht du erhälst $10.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 75:
    {
    if(GetPVarInt(playerid,"Kills")==75)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,15000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 75 Kills Gemacht du erhälst $15.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 100:
    {
    if(GetPVarInt(playerid,"Kills")==100)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,20000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 100 Kills Gemacht du erhälst $20.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 150:
    {
    if(GetPVarInt(playerid,"Kills")==150)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,25000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 150 Kills Gemacht du erhälst $25.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 200:
    {
    if(GetPVarInt(playerid,"Kills")==200)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,30000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 200 Kills Gemacht du erhälst $30.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 250:
    {
    if(GetPVarInt(playerid,"Kills")==250)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,35000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 250 Kills Gemacht du erhälst $35.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 300:
    {
    if(GetPVarInt(playerid,"Kills")==300)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,40000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 300 Kills Gemacht du erhälst $40.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 350:
    {
    if(GetPVarInt(playerid,"Kills")==350)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,45000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 350 Kills Gemacht du erhälst $45.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 400:
    {
    if(GetPVarInt(playerid,"Kills")==400)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,50000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 400 Kills Gemacht du erhälst $50.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 450:
    {
    if(GetPVarInt(playerid,"Kills")==450)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,55000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 450 Kills Gemacht du erhälst $55.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 500:
    {
    if(GetPVarInt(playerid,"Kills")==500)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,60000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 500 Kills Gemacht du erhälst $60.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 550:
    {
    if(GetPVarInt(playerid,"Kills")==550)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,65000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 550 Kills Gemacht du erhälst $65.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 600:
    {
    if(GetPVarInt(playerid,"Kills")==600)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,70000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 600 Kills Gemacht du erhälst $70.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 650:
    {
    if(GetPVarInt(playerid,"Kills")==650)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,75000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 650 Kills Gemacht du erhälst $75.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 700:
    {
    if(GetPVarInt(playerid,"Kills")==700)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,80000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 700 Kills Gemacht du erhälst $80.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 750:
    {
    if(GetPVarInt(playerid,"Kills")==750)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,85000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 750 Kills Gemacht du erhälst $85.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 800:
    {
    if(GetPVarInt(playerid,"Kills")==800)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,90000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 800 Kills Gemacht du erhälst $90.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 850:
    {
    if(GetPVarInt(playerid,"Kills")==850)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,95000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 850 Kills Gemacht du erhälst $95.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 900:
    {
    if(GetPVarInt(playerid,"Kills")==900)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,100000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 900 Kills Gemacht du erhälst $100.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 950:
    {
    if(GetPVarInt(playerid,"Kills")==950)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,105000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 950 Kills Gemacht du erhälst $105.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 1000:
    {
    if(GetPVarInt(playerid,"Kills")==1000)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,110000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 1000 Kills Gemacht du erhälst $110.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 1100:
    {
    if(GetPVarInt(playerid,"Kills")==1100)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,120000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 1100 Kills Gemacht du erhälst $120.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 1200:
    {
    if(GetPVarInt(playerid,"Kills")==1200)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,130000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 1200 Kills Gemacht du erhälst $130.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 1300:
    {
    if(GetPVarInt(playerid,"Kills")==1300)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,140000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 1300 Kills Gemacht du erhälst $140.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 1400:
    {
    if(GetPVarInt(playerid,"Kills")==1400)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,150000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 1400 Kills Gemacht du erhälst $150.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 1500:
    {
    if(GetPVarInt(playerid,"Kills")==1500)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,160000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 1500 Kills Gemacht du erhälst $160.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 1600:
    {
    if(GetPVarInt(playerid,"Kills")==1600)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,170000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 1600 Kills Gemacht du erhälst $170.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 1700:
    {
    if(GetPVarInt(playerid,"Kills")==1700)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,180000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 1700 Kills Gemacht du erhälst $180.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 1800:
    {
    if(GetPVarInt(playerid,"Kills")==1800)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,19000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 1800 Kills Gemacht du erhälst $190.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 1900:
    {
    if(GetPVarInt(playerid,"Kills")==1900)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,200000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 1900 Kills Gemacht du erhälst $200.000 geschenk");
    SpielerSpeichern(playerid);
    }
    case 2000:
    {
    if(GetPVarInt(playerid,"Kills")==2000)
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,250000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 2.000 Kills Gemacht du erhälst $250.000 geschenk");
    SpielerSpeichern(playerid);
    }
    }
    }

  • Die

    Code
    [pwn][/pwn]

    Funktion ist schon was nettes. :D


    EDIT:
    Außerdem würde ich es so umändern und Rechtschreibfehler beheben:
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
    GivePlayerMoney(playerid,5000);
    SendClientMessage(playerid,0x5CCF16FF, "Du hast 25 Kills erreicht. Du erhältst ein $5.000 Geschenk.");
    SpielerSpeichern(playerid);


    Auch bekannt als FranzeSauer, [BMX]Franze, ...

  • stock Level(playerid,Kills){ switch(GetPVarInt(playerid,"Kills")){ case 25: { SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,5000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 25 Kills Gemacht du erhälst $5.000 geschenk"); SpielerSpeichern(playerid); } case 50: { if(GetPVarInt(playerid,"Kills")==50) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,10000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 50 Kills Gemacht du erhälst $10.000 geschenk"); SpielerSpeichern(playerid); } case 75: { if(GetPVarInt(playerid,"Kills")==75) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,15000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 75 Kills Gemacht du erhälst $15.000 geschenk"); SpielerSpeichern(playerid); } case 100: { if(GetPVarInt(playerid,"Kills")==100) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,20000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 100 Kills Gemacht du erhälst $20.000 geschenk"); SpielerSpeichern(playerid); } case 150: { if(GetPVarInt(playerid,"Kills")==150) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,25000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 150 Kills Gemacht du erhälst $25.000 geschenk"); SpielerSpeichern(playerid); } case 200: { if(GetPVarInt(playerid,"Kills")==200) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,30000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 200 Kills Gemacht du erhälst $30.000 geschenk"); SpielerSpeichern(playerid); } case 250: { if(GetPVarInt(playerid,"Kills")==250) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,35000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 250 Kills Gemacht du erhälst $35.000 geschenk"); SpielerSpeichern(playerid); } case 300: { if(GetPVarInt(playerid,"Kills")==300) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,40000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 300 Kills Gemacht du erhälst $40.000 geschenk"); SpielerSpeichern(playerid); } case 350: { if(GetPVarInt(playerid,"Kills")==350) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,45000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 350 Kills Gemacht du erhälst $45.000 geschenk"); SpielerSpeichern(playerid); } case 400: { if(GetPVarInt(playerid,"Kills")==400) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,50000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 400 Kills Gemacht du erhälst $50.000 geschenk"); SpielerSpeichern(playerid); } case 450: { if(GetPVarInt(playerid,"Kills")==450) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,55000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 450 Kills Gemacht du erhälst $55.000 geschenk"); SpielerSpeichern(playerid); } case 500: { if(GetPVarInt(playerid,"Kills")==500) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,60000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 500 Kills Gemacht du erhälst $60.000 geschenk"); SpielerSpeichern(playerid); } case 550: { if(GetPVarInt(playerid,"Kills")==550) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,65000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 550 Kills Gemacht du erhälst $65.000 geschenk"); SpielerSpeichern(playerid); } case 600: { if(GetPVarInt(playerid,"Kills")==600) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,70000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 600 Kills Gemacht du erhälst $70.000 geschenk"); SpielerSpeichern(playerid); } case 650: { if(GetPVarInt(playerid,"Kills")==650) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,75000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 650 Kills Gemacht du erhälst $75.000 geschenk"); SpielerSpeichern(playerid); } case 700: { if(GetPVarInt(playerid,"Kills")==700) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,80000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 700 Kills Gemacht du erhälst $80.000 geschenk"); SpielerSpeichern(playerid); } case 750: { if(GetPVarInt(playerid,"Kills")==750) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,85000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 750 Kills Gemacht du erhälst $85.000 geschenk"); SpielerSpeichern(playerid); } case 800: { if(GetPVarInt(playerid,"Kills")==800) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,90000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 800 Kills Gemacht du erhälst $90.000 geschenk"); SpielerSpeichern(playerid); } case 850: { if(GetPVarInt(playerid,"Kills")==850) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,95000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 850 Kills Gemacht du erhälst $95.000 geschenk"); SpielerSpeichern(playerid); } case 900: { if(GetPVarInt(playerid,"Kills")==900) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,100000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 900 Kills Gemacht du erhälst $100.000 geschenk"); SpielerSpeichern(playerid); } case 950: { if(GetPVarInt(playerid,"Kills")==950) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,105000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 950 Kills Gemacht du erhälst $105.000 geschenk"); SpielerSpeichern(playerid); } case 1000: { if(GetPVarInt(playerid,"Kills")==1000) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,110000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 1000 Kills Gemacht du erhälst $110.000 geschenk"); SpielerSpeichern(playerid); } case 1100: { if(GetPVarInt(playerid,"Kills")==1100) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,120000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 1100 Kills Gemacht du erhälst $120.000 geschenk"); SpielerSpeichern(playerid); } case 1200: { if(GetPVarInt(playerid,"Kills")==1200) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,130000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 1200 Kills Gemacht du erhälst $130.000 geschenk"); SpielerSpeichern(playerid); } case 1300: { if(GetPVarInt(playerid,"Kills")==1300) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,140000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 1300 Kills Gemacht du erhälst $140.000 geschenk"); SpielerSpeichern(playerid); } case 1400: { if(GetPVarInt(playerid,"Kills")==1400) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,150000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 1400 Kills Gemacht du erhälst $150.000 geschenk"); SpielerSpeichern(playerid); } case 1500: { if(GetPVarInt(playerid,"Kills")==1500) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,160000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 1500 Kills Gemacht du erhälst $160.000 geschenk"); SpielerSpeichern(playerid); } case 1600: { if(GetPVarInt(playerid,"Kills")==1600) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,170000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 1600 Kills Gemacht du erhälst $170.000 geschenk"); SpielerSpeichern(playerid); } case 1700: { if(GetPVarInt(playerid,"Kills")==1700) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,180000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 1700 Kills Gemacht du erhälst $180.000 geschenk"); SpielerSpeichern(playerid); } case 1800: { if(GetPVarInt(playerid,"Kills")==1800) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,19000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 1800 Kills Gemacht du erhälst $190.000 geschenk"); SpielerSpeichern(playerid); } case 1900: { if(GetPVarInt(playerid,"Kills")==1900) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,200000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 1900 Kills Gemacht du erhälst $200.000 geschenk"); SpielerSpeichern(playerid); } case 2000: { if(GetPVarInt(playerid,"Kills")==2000) SetPlayerScore(playerid, GetPlayerScore(playerid)+1); SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1); GivePlayerMoney(playerid,250000); SendClientMessage(playerid,0x5CCF16FF, "Du hast 2.000 Kills Gemacht du erhälst $250.000 geschenk"); SpielerSpeichern(playerid); }}}



    :D danke