Frage! GF Spawn

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 riesen problem mit meinem LARP , GF edit.
    Ich habe einen skript geskriptet wo mich ins Krankenhaus bringt. 2Minuten danach spawnt es in der Stadthalle.


    Aber sobald ich sterbe, 5sekunden später im Krankenhaus kommt so ein spawn KAK!
    Bitte helft mir so schnell wie möglich. Danke schon mal im voraus.


    BILD DES PROBLEMES

  • public OnPlayerDeath(playerid, killerid, reason){ SetPlayerCameraPos(playerid, 1210.0167,-1342.1367,13.3994); SetPlayerCameraLookAt(playerid, 1210.0167,-1342.1367,13.3994); GameTextForPlayer(playerid, "~y~~n~~n~2 Minuten Krankenhaus", 2400, 3) TogglePlayerControllable(playerid,false); SetPlayerHealth(playerid, 100); SetTimerEx("krankenhaus", 120000, false, "playerid", playerid); return 1; new string[128]; new name[MAX_PLAYER_NAME]; new name2[MAX_PLAYER_NAME]; new deathreason[20]; new y, m, d; new h,mi,s; getdate(y,m,d); gettime(h,mi,s); GetPlayerName(playerid, name, sizeof(name)); GetPlayerName(killerid, name2, sizeof(name2));
    if(killerid != INVALID_PLAYER_ID) { //jumping from cliff and so on WantedPoints[playerid] += 1; if(WantedPoints[playerid] = 1) { SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 1); } if(WantedPoints[playerid] = 2) { SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 2); } if(WantedPoints[playerid] = 3) { SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 3); } if(WantedPoints[playerid] = 4) { SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 4); } if(WantedPoints[playerid] = 5) { SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 5); } if(WantedPoints[playerid] < 5) { SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 6); }
    }
    if(GetPlayerState(killerid) == PLAYER_STATE_DRIVER) { if(AntiDriveBy == 1) { new model = GetVehicleModel(GetPlayerVehicleID(killerid)); if(model != 520 || model != 425 || model != 432) { PlayerInfo[killerid][pWarns] ++; if(PlayerInfo[playerid][pWarns] == 3) { format(string, sizeof(string), "%s (%d), Has been Kicked by The Anticheat Peter Griffin for Excessive Drive by Killing.", name2, killerid); SendClientMessageToAll(COLOR_NICERED, string); SendClientMessage(killerid,COLOR_LIGHTBLUE, "You have Been Kicked by The Anticheat For Excessive Drive By Killing"); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat Has Kicked %s for: Excessive Drive By Killing",d,m,y,h,mi,s,name2); KickLog(string); Kick(killerid); } else { format(string, sizeof(string), "%s (%d), Has been Warned by The Anticheat Peter Griffin for Drive by Killing.", name2, killerid); SendClientMessageToAll(COLOR_NICERED, string); SendClientMessage(killerid,COLOR_LIGHTBLUE, "You have Been Warned by The Anticheat For Excessive Drive By Killing"); format(string, sizeof(string), "[PETER]: %s Has Killed someone With Driver Drive By; Player has been Warned.", name2); SendAdminMessage(COLOR_YELLOW, string); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Warned by Anticheat - Reason: Driver drive-by kill.",d,m,y,h,mi,s); AddPunishment(killerid, string); } } } } if(killerid != INVALID_PLAYER_ID) { if(reason == 0) { deathreason = "Melee"; } else if(reason == 36 || reason == 35 || reason == 40 || reason == 16) { deathreason = "Explosion"; } else if(reason == 18 || reason == 37) { deathreason = "Fire"; } else if(reason == 51) { deathreason = "Explosion"; } else if(reason == 50) { deathreason = "Heli-Kill"; } else { GetWeaponName(reason, deathreason, sizeof(deathreason)); }
    } else { new text[30]; if(reason == 51) { text = "Explosion"; } else if(reason == 53) { text = "Drowned"; } else if(reason == 54) { text = "Collision"; } else { text = "Death"; }
    }
    new playercash; new victimteam = gTeam[playerid]; new Float:px,Float:py,Float:pz; new killerteam = gTeam[killerid]; TextDrawHideForPlayer(playerid, Textdraw39[playerid]); TextDrawHideForPlayer(playerid, Textdraw40[playerid]); gPlayerSpawned[playerid] = 0;
    if(Decoding[playerid] == 1) { Decoding[playerid] = 0; KillTimer(DecoderTimer); HideDecoder(playerid); SendClientMessage(playerid, COLOR_NICERED, "You left the car, decoder stopped!"); decodecode = 0; Decoder = 0; }
    if (reason == 22) { if (PlayerInfo[killerid][pPistSkill] >= 0 && PlayerInfo[killerid][pPistSkill] <= 1000) { PlayerInfo[killerid][pPistSkill] += 2; SetPlayerSkills(killerid); } } if (reason == 23) { if (PlayerInfo[killerid][pSilenSkill] >= 0 && PlayerInfo[killerid][pSilenSkill] <= 1000) { PlayerInfo[killerid][pSilenSkill] += 2; SetPlayerSkills(killerid); }
    } if (reason == 24) { if (PlayerInfo[killerid][pDesertSkill] >= 0 && PlayerInfo[killerid][pDesertSkill] <= 1000) { PlayerInfo[killerid][pDesertSkill] += 2; SetPlayerSkills(killerid); } }
    if (reason == 25) { if (PlayerInfo[killerid][pShotgSkill] >= 0 && PlayerInfo[killerid][pShotgSkill] <= 1000) { PlayerInfo[killerid][pShotgSkill] += 2; SetPlayerSkills(killerid); } } if (reason == 26) { if (PlayerInfo[killerid][pSawnSkill] >= 0 && PlayerInfo[killerid][pSawnSkill] <= 800) { PlayerInfo[killerid][pSawnSkill] += 2; SetPlayerSkills(killerid); } } if (reason == 27) { if (PlayerInfo[killerid][pCombSkill] >= 0 && PlayerInfo[killerid][pCombSkill] <= 1000) { PlayerInfo[killerid][pCombSkill] += 2; SetPlayerSkills(killerid); } }
    if (reason == 28 || reason == 32) { if (PlayerInfo[killerid][pUziSkill] >= 0 && PlayerInfo[killerid][pUziSkill] <= 800) { PlayerInfo[killerid][pUziSkill] += 2; SetPlayerSkills(killerid); } }
    if (reason == 29) { if (PlayerInfo[killerid][pSmgSkill] >= 0 && PlayerInfo[killerid][pSmgSkill] <= 1000) { PlayerInfo[killerid][pSmgSkill] += 2; SetPlayerSkills(killerid); } }
    if (reason == 30) { if (PlayerInfo[killerid][pAkSkill] >= 0 && PlayerInfo[killerid][pAkSkill] <= 1000) { PlayerInfo[killerid][pAkSkill] += 2; SetPlayerSkills(killerid); } }
    if (reason == 31) { if (PlayerInfo[killerid][pM4Skill] >= 0 && PlayerInfo[killerid][pM4Skill] <= 1000) { PlayerInfo[killerid][pM4Skill] += 2; SetPlayerSkills(killerid); } }


    if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11) { DisablePlayerCheckpoint(playerid); gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE; } new caller = Mobile[playerid]; if(caller != 255) { if(caller < 255) { SendClientMessage(caller, COLOR_GRAD2, "** The line just went dead...."); CellTime[caller] = 0; CellTime[playerid] = 0; Mobile[caller] = 255; } Mobile[playerid] = 255; CellTime[playerid] = 0; } ClearCrime(playerid); if(GettingCK[playerid] < 999) { if(IsPlayerConnected(killerid)) { if(OnCK[killerid] < 999) { new killer[MAX_PLAYER_NAME]; new dier[MAX_PLAYER_NAME]; GetPlayerName(playerid, dier, sizeof(dier)); GetPlayerName(killerid, killer, sizeof(killer)); format(string, sizeof(string), "* %s has performed a Character Kill on you, you aren't able to play with this Character anymore.",killer); SendClientMessage(playerid, COLOR_LIGHTRED, string); format(string, sizeof(string), "** %s has Character Killed %s **",killer,dier); CKLog(string); BroadCast(COLOR_LIGHTRED, string); PlayerInfo[playerid][pCK] = 1; if(GettingCK[playerid] < 999) { GettingCK[playerid] = 999; } else if(OnCK[playerid] < 999) { OnCK[playerid] = 999; } if(GettingCK[killerid] < 999) { GettingCK[killerid] = 999; } else if(OnCK[killerid] < 999) { OnCK[killerid] = 999; } KickPlayer[playerid] = 1; } } } if(PlayerInfo[playerid][pHeadValue] > 0) { if(IsPlayerConnected(killerid)) { if(gTeam[killerid] == 10 || PlayerInfo[killerid][pLeader] == 8) { if(GoChase[killerid] == playerid) { //ConsumingMoney[killerid] = 1; new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); SafeGivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]); format(string,128,"<< Hitman %s has fulfilled the contract on %s and collected $%d >>",killer,name,PlayerInfo[playerid][pHeadValue]); SendFamilyMessage(8, COLOR_YELLOW, string); PlayerInfo[playerid][pHeadValue] = 0; GotHit[playerid] = 0; GetChased[playerid] = 999; GoChase[killerid] = 999; } } } } if(victimteam >= 4) { if(IsPlayerConnected(killerid)) { //new killer[MAX_PLAYER_NAME]; //GetPlayerName(killerid, killer, sizeof(killer)); new slice = 100; //$100 playercash = GetPlayerMoney(playerid); if(SafeTime[playerid] <= 0) { if(gTeam[killerid] != gTeam[playerid]) { if(GetPlayerState(killerid) == 1) { PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 2; } else { PlayerInfo[killerid][pKills]++; } PlayerInfo[playerid][pKills]--; } } /*if (strlen(deathreason) > 0)// patch { if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || gTeam[killerid] == gTeam[playerid])//med kill criminal { format(string, sizeof(string), ".: %s murdered %s. (%s) :.", killer, name, deathreason); } else { format(string, sizeof(string), ".: %s murdered %s. (%s) for $%d :.", killer, name, deathreason, slice); }
    } else { if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill || gTeam[killerid] == gTeam[playerid])) { format(string, sizeof(string), ".: %s murdered %s :.", killer, name); } else { format(string, sizeof(string), ".: %s murdered %s for $%d :.", killer, name, slice); } }*/ if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || (gTeam[killerid] == gTeam[playerid] && gTeam[playerid] != 4)) { slice = 0; } if (((gTeam[killerid]) != 4) && ((gTeam[killerid]) == gTeam[playerid]))//no team kill { slice = 0; } if (playercash > 0) { SafeGivePlayerMoney(playerid, -slice); } else { slice = slice+500; } //SafeGivePlayerMoney(killerid, slice); //GameTextForPlayer(playerid, dmessage, 5000, 2); PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0); if (((gTeam[killerid]) == 3) && reason != 49) { SetPlayerCriminal(killerid,255, "First Degree Murder"); } else if (((gTeam[killerid]) == 3) && reason == 49) { SetPlayerCriminal(killerid,255, "Hit And Run"); } } } else if (victimteam == 2) { if(IsPlayerConnected(killerid)) { //new killer[MAX_PLAYER_NAME]; //GetPlayerName(killerid, killer, sizeof(killer)); // Cop kill PlayerInfo[playerid][pKills]--; if (gTeam[killerid] == 2)//cops kill cop { //format(string,128,".: Officer %s murdered Officer %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost); PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0); SafeGivePlayerMoney(killerid, -suecost); SafeGivePlayerMoney(playerid, suecost+100);//+100pays hospital bill } else { //format(string,128,".: %s murdered Officer %s (%s) :.",killer,name,deathreason); } if (gTeam[killerid] >= 3) { WantedPoints[killerid] += 2; //+ 2 wanted points if(reason != 49) { SetPlayerCriminal(killerid,255, "First Degree Murder"); } else if (reason == 49) { SetPlayerCriminal(killerid,255, "Hit And Run"); } } 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; } //BroadCast(COLOR_RED, string); } } else if (victimteam == 3) { if(IsPlayerConnected(killerid)) { //new killer[MAX_PLAYER_NAME]; //GetPlayerName(killerid, killer, sizeof(killer)); // Civ kill if ((gTeam[killerid]) == 2)//cops kill civ { if(WantedLevel[playerid] < 1) { //format(string,128,".: Officer %s murdered %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost); PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0); SafeGivePlayerMoney(killerid, -suecost); SafeGivePlayerMoney(playerid, suecost+10);//+100pays hospital bill } } else { //format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason); WantedPoints[killerid] += 2; } if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason != 49) { SetPlayerCriminal(killerid,255, "First Degree Murder"); } else if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason == 49) { SetPlayerCriminal(killerid,255, "Hit And Run"); } //BroadCast(COLOR_RED, string); } } else if (victimteam == 1) { if(IsPlayerConnected(killerid)) { //new killer[MAX_PLAYER_NAME]; //GetPlayerName(killerid, killer, sizeof(killer)); // Civ kill if ((gTeam[killerid]) == 2)//cops kill civ { //format(string,128,".: Officer %s murdered Paramedic %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost); PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0); SafeGivePlayerMoney(killerid, -suecost); SafeGivePlayerMoney(playerid, suecost+10);//+100pays hospital bill } else if ((gTeam[killerid]) == 1)//med kill civ { //format(string,128,".: Paramedic %s murdered %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost); PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0); SafeGivePlayerMoney(killerid, -suecost); SafeGivePlayerMoney(playerid, suecost+10);//+100pays hospital bill } else { //format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason); } if (((gTeam[killerid]) == 4) && reason != 49) { SetPlayerCriminal(killerid,255, "First Degree Murder"); } else if (((gTeam[killerid]) == 3) && reason == 49) { SetPlayerCriminal(killerid,255, "Hit And Run"); } //BroadCast(COLOR_RED, string); } }



    if (victimteam >= 3 && WantedPoints[playerid] > 0 && killerteam == 2) { SetPlayerFree(playerid,killerid, "Got Killed"); } if (Busroute2[playerid][0] != 0 || Busroute1[playerid][0] != 0) { if (Busroute2[playerid][0] != 0) BusrouteEnd(playerid, Busroute1[playerid][1]); else if (Busroute1[playerid][0] != 0) BusrouteEnd(playerid, Busroute2[playerid][1]); else BusrouteEnd(playerid, 0); } if(FarmerVar[playerid] != 0) { FarmerVar[playerid] = 0; DisablePlayerCheckpoint(playerid); } if(DrugFarmerVar[playerid] != 0) { DrugFarmerVar[playerid] = 0; DisablePlayerCheckpoint(playerid); } if(SmugglerWork[playerid] != 0) { SmugglerWork[playerid] = 0; DisablePlayerCheckpoint(playerid); } killerid = INVALID_PLAYER_ID; SetRealMoney(playerid, ScriptMoney[playerid]); SetPlayerColor(playerid,0xBBBBBB00); SafeResetPlayerWeapons(playerid); return 1;}

  • hää??
    Ja Schau: Ohne pwn



    public OnPlayerDeath(playerid, killerid, reason)
    {
    SetPlayerCameraPos(playerid, 1210.0167,-1342.1367,13.3994);
    SetPlayerCameraLookAt(playerid, 1210.0167,-1342.1367,13.3994);
    GameTextForPlayer(playerid, "~y~~n~~n~2 Minuten Krankenhaus", 2400, 3)
    TogglePlayerControllable(playerid,false);
    SetPlayerHealth(playerid, 100);
    SetTimerEx("krankenhaus", 120000, false, "playerid", playerid);
    return 1;
    new string[128];
    new name[MAX_PLAYER_NAME];
    new name2[MAX_PLAYER_NAME];
    new deathreason[20];
    new y, m, d;
    new h,mi,s;
    getdate(y,m,d);
    gettime(h,mi,s);
    GetPlayerName(playerid, name, sizeof(name));
    GetPlayerName(killerid, name2, sizeof(name2));


    if(killerid != INVALID_PLAYER_ID)
    { //jumping from cliff and so on
    WantedPoints[playerid] += 1;
    if(WantedPoints[playerid] = 1)
    {
    SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 1);
    }
    if(WantedPoints[playerid] = 2)
    {
    SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 2);
    }
    if(WantedPoints[playerid] = 3)
    {
    SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 3);
    }
    if(WantedPoints[playerid] = 4)
    {
    SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 4);
    }
    if(WantedPoints[playerid] = 5)
    {
    SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 5);
    }
    if(WantedPoints[playerid] < 5)
    {
    SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 6);
    }


    }


    if(GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
    {
    if(AntiDriveBy == 1)
    {
    new model = GetVehicleModel(GetPlayerVehicleID(killerid));
    if(model != 520 || model != 425 || model != 432)
    {
    PlayerInfo[killerid][pWarns] ++;
    if(PlayerInfo[playerid][pWarns] == 3)
    {
    format(string, sizeof(string), "%s (%d), Has been Kicked by The Anticheat Peter Griffin for Excessive Drive by Killing.", name2, killerid);
    SendClientMessageToAll(COLOR_NICERED, string);
    SendClientMessage(killerid,COLOR_LIGHTBLUE, "You have Been Kicked by The Anticheat For Excessive Drive By Killing");
    format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat Has Kicked %s for: Excessive Drive By Killing",d,m,y,h,mi,s,name2);
    KickLog(string);
    Kick(killerid);
    }
    else
    {
    format(string, sizeof(string), "%s (%d), Has been Warned by The Anticheat Peter Griffin for Drive by Killing.", name2, killerid);
    SendClientMessageToAll(COLOR_NICERED, string);
    SendClientMessage(killerid,COLOR_LIGHTBLUE, "You have Been Warned by The Anticheat For Excessive Drive By Killing");
    format(string, sizeof(string), "[PETER]: %s Has Killed someone With Driver Drive By; Player has been Warned.", name2);
    SendAdminMessage(COLOR_YELLOW, string);
    format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Warned by Anticheat - Reason: Driver drive-by kill.",d,m,y,h,mi,s);
    AddPunishment(killerid, string);
    }
    }
    }
    }
    if(killerid != INVALID_PLAYER_ID)
    {
    if(reason == 0) { deathreason = "Melee"; }
    else if(reason == 36 || reason == 35 || reason == 40 || reason == 16) { deathreason = "Explosion"; }
    else if(reason == 18 || reason == 37) { deathreason = "Fire"; }
    else if(reason == 51) { deathreason = "Explosion"; }
    else if(reason == 50) { deathreason = "Heli-Kill"; }
    else { GetWeaponName(reason, deathreason, sizeof(deathreason)); }


    }
    else
    {
    new text[30];
    if(reason == 51) { text = "Explosion"; }
    else if(reason == 53) { text = "Drowned"; }
    else if(reason == 54) { text = "Collision"; }
    else { text = "Death"; }


    }


    new playercash;
    new victimteam = gTeam[playerid];
    new Float:px,Float:py,Float:pz;
    new killerteam = gTeam[killerid];
    TextDrawHideForPlayer(playerid, Textdraw39[playerid]);
    TextDrawHideForPlayer(playerid, Textdraw40[playerid]);
    gPlayerSpawned[playerid] = 0;


    if(Decoding[playerid] == 1)
    {
    Decoding[playerid] = 0;
    KillTimer(DecoderTimer);
    HideDecoder(playerid);
    SendClientMessage(playerid, COLOR_NICERED, "You left the car, decoder stopped!");
    decodecode = 0;
    Decoder = 0;
    }


    if (reason == 22)
    {
    if (PlayerInfo[killerid][pPistSkill] >= 0 && PlayerInfo[killerid][pPistSkill] <= 1000)
    {
    PlayerInfo[killerid][pPistSkill] += 2;
    SetPlayerSkills(killerid);
    }
    }
    if (reason == 23)
    {
    if (PlayerInfo[killerid][pSilenSkill] >= 0 && PlayerInfo[killerid][pSilenSkill] <= 1000)
    {
    PlayerInfo[killerid][pSilenSkill] += 2;
    SetPlayerSkills(killerid);
    }


    }
    if (reason == 24)
    {
    if (PlayerInfo[killerid][pDesertSkill] >= 0 && PlayerInfo[killerid][pDesertSkill] <= 1000)
    {
    PlayerInfo[killerid][pDesertSkill] += 2;
    SetPlayerSkills(killerid);
    }
    }


    if (reason == 25)
    {
    if (PlayerInfo[killerid][pShotgSkill] >= 0 && PlayerInfo[killerid][pShotgSkill] <= 1000)
    {
    PlayerInfo[killerid][pShotgSkill] += 2;
    SetPlayerSkills(killerid);
    }
    }
    if (reason == 26)
    {
    if (PlayerInfo[killerid][pSawnSkill] >= 0 && PlayerInfo[killerid][pSawnSkill] <= 800)
    {
    PlayerInfo[killerid][pSawnSkill] += 2;
    SetPlayerSkills(killerid);
    }
    }
    if (reason == 27)
    {
    if (PlayerInfo[killerid][pCombSkill] >= 0 && PlayerInfo[killerid][pCombSkill] <= 1000)
    {
    PlayerInfo[killerid][pCombSkill] += 2;
    SetPlayerSkills(killerid);
    }
    }


    if (reason == 28 || reason == 32)
    {
    if (PlayerInfo[killerid][pUziSkill] >= 0 && PlayerInfo[killerid][pUziSkill] <= 800)
    {
    PlayerInfo[killerid][pUziSkill] += 2;
    SetPlayerSkills(killerid);
    }
    }


    if (reason == 29)
    {
    if (PlayerInfo[killerid][pSmgSkill] >= 0 && PlayerInfo[killerid][pSmgSkill] <= 1000)
    {
    PlayerInfo[killerid][pSmgSkill] += 2;
    SetPlayerSkills(killerid);
    }
    }


    if (reason == 30)
    {
    if (PlayerInfo[killerid][pAkSkill] >= 0 && PlayerInfo[killerid][pAkSkill] <= 1000)
    {
    PlayerInfo[killerid][pAkSkill] += 2;
    SetPlayerSkills(killerid);
    }
    }


    if (reason == 31)
    {
    if (PlayerInfo[killerid][pM4Skill] >= 0 && PlayerInfo[killerid][pM4Skill] <= 1000)
    {
    PlayerInfo[killerid][pM4Skill] += 2;
    SetPlayerSkills(killerid);
    }
    }



    if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
    {
    DisablePlayerCheckpoint(playerid);
    gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
    }
    new caller = Mobile[playerid];
    if(caller != 255)
    {
    if(caller < 255)
    {
    SendClientMessage(caller, COLOR_GRAD2, "** The line just went dead....");
    CellTime[caller] = 0;
    CellTime[playerid] = 0;
    Mobile[caller] = 255;
    }
    Mobile[playerid] = 255;
    CellTime[playerid] = 0;
    }
    ClearCrime(playerid);
    if(GettingCK[playerid] < 999)
    {
    if(IsPlayerConnected(killerid))
    {
    if(OnCK[killerid] < 999)
    {
    new killer[MAX_PLAYER_NAME];
    new dier[MAX_PLAYER_NAME];
    GetPlayerName(playerid, dier, sizeof(dier));
    GetPlayerName(killerid, killer, sizeof(killer));
    format(string, sizeof(string), "* %s has performed a Character Kill on you, you aren't able to play with this Character anymore.",killer);
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    format(string, sizeof(string), "** %s has Character Killed %s **",killer,dier);
    CKLog(string);
    BroadCast(COLOR_LIGHTRED, string);
    PlayerInfo[playerid][pCK] = 1;
    if(GettingCK[playerid] < 999) { GettingCK[playerid] = 999; }
    else if(OnCK[playerid] < 999) { OnCK[playerid] = 999; }
    if(GettingCK[killerid] < 999) { GettingCK[killerid] = 999; }
    else if(OnCK[killerid] < 999) { OnCK[killerid] = 999; }
    KickPlayer[playerid] = 1;
    }
    }
    }
    if(PlayerInfo[playerid][pHeadValue] > 0)
    {
    if(IsPlayerConnected(killerid))
    {
    if(gTeam[killerid] == 10 || PlayerInfo[killerid][pLeader] == 8)
    {
    if(GoChase[killerid] == playerid)
    {
    //ConsumingMoney[killerid] = 1;
    new killer[MAX_PLAYER_NAME];
    GetPlayerName(killerid, killer, sizeof(killer));
    SafeGivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]);
    format(string,128,"<< Hitman %s has fulfilled the contract on %s and collected $%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
    SendFamilyMessage(8, COLOR_YELLOW, string);
    PlayerInfo[playerid][pHeadValue] = 0;
    GotHit[playerid] = 0;
    GetChased[playerid] = 999;
    GoChase[killerid] = 999;
    }
    }
    }
    }
    if(victimteam >= 4)
    {
    if(IsPlayerConnected(killerid))
    {
    //new killer[MAX_PLAYER_NAME];
    //GetPlayerName(killerid, killer, sizeof(killer));
    new slice = 100; //$100
    playercash = GetPlayerMoney(playerid);
    if(SafeTime[playerid] <= 0)
    {
    if(gTeam[killerid] != gTeam[playerid])
    {
    if(GetPlayerState(killerid) == 1)
    {
    PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 2;
    }
    else
    {
    PlayerInfo[killerid][pKills]++;
    }
    PlayerInfo[playerid][pKills]--;
    }
    }
    /*if (strlen(deathreason) > 0)// patch
    {
    if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || gTeam[killerid] == gTeam[playerid])//med kill criminal
    {
    format(string, sizeof(string), ".: %s murdered %s. (%s) :.", killer, name, deathreason);
    }
    else
    {
    format(string, sizeof(string), ".: %s murdered %s. (%s) for $%d :.", killer, name, deathreason, slice);
    }


    }
    else
    {
    if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill || gTeam[killerid] == gTeam[playerid]))
    {
    format(string, sizeof(string), ".: %s murdered %s :.", killer, name);
    }
    else
    {
    format(string, sizeof(string), ".: %s murdered %s for $%d :.", killer, name, slice);
    }
    }*/
    if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || (gTeam[killerid] == gTeam[playerid] && gTeam[playerid] != 4))
    {
    slice = 0;
    }
    if (((gTeam[killerid]) != 4) && ((gTeam[killerid]) == gTeam[playerid]))//no team kill
    {
    slice = 0;
    }
    if (playercash > 0)
    {
    SafeGivePlayerMoney(playerid, -slice);
    }
    else
    {
    slice = slice+500;
    }
    //SafeGivePlayerMoney(killerid, slice);
    //GameTextForPlayer(playerid, dmessage, 5000, 2);
    PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0);
    if (((gTeam[killerid]) == 3) && reason != 49)
    {
    SetPlayerCriminal(killerid,255, "First Degree Murder");
    }
    else if (((gTeam[killerid]) == 3) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Hit And Run");
    }
    }
    }
    else if (victimteam == 2)
    {
    if(IsPlayerConnected(killerid))
    {
    //new killer[MAX_PLAYER_NAME];
    //GetPlayerName(killerid, killer, sizeof(killer));
    // Cop kill
    PlayerInfo[playerid][pKills]--;
    if (gTeam[killerid] == 2)//cops kill cop
    {
    //format(string,128,".: Officer %s murdered Officer %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    SafeGivePlayerMoney(killerid, -suecost);
    SafeGivePlayerMoney(playerid, suecost+100);//+100pays hospital bill
    }
    else
    {
    //format(string,128,".: %s murdered Officer %s (%s) :.",killer,name,deathreason);
    }
    if (gTeam[killerid] >= 3)
    {
    WantedPoints[killerid] += 2; //+ 2 wanted points
    if(reason != 49)
    {
    SetPlayerCriminal(killerid,255, "First Degree Murder");
    }
    else if (reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Hit And Run");
    }
    }
    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;
    }
    //BroadCast(COLOR_RED, string);
    }
    }
    else if (victimteam == 3)
    {
    if(IsPlayerConnected(killerid))
    {
    //new killer[MAX_PLAYER_NAME];
    //GetPlayerName(killerid, killer, sizeof(killer));
    // Civ kill
    if ((gTeam[killerid]) == 2)//cops kill civ
    {
    if(WantedLevel[playerid] < 1)
    {
    //format(string,128,".: Officer %s murdered %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    SafeGivePlayerMoney(killerid, -suecost);
    SafeGivePlayerMoney(playerid, suecost+10);//+100pays hospital bill
    }
    }
    else
    {
    //format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason);
    WantedPoints[killerid] += 2;
    }
    if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason != 49)
    {
    SetPlayerCriminal(killerid,255, "First Degree Murder");
    }
    else if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Hit And Run");
    }
    //BroadCast(COLOR_RED, string);
    }
    }
    else if (victimteam == 1)
    {
    if(IsPlayerConnected(killerid))
    {
    //new killer[MAX_PLAYER_NAME];
    //GetPlayerName(killerid, killer, sizeof(killer));
    // Civ kill
    if ((gTeam[killerid]) == 2)//cops kill civ
    {
    //format(string,128,".: Officer %s murdered Paramedic %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    SafeGivePlayerMoney(killerid, -suecost);
    SafeGivePlayerMoney(playerid, suecost+10);//+100pays hospital bill
    }
    else if ((gTeam[killerid]) == 1)//med kill civ
    {
    //format(string,128,".: Paramedic %s murdered %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    SafeGivePlayerMoney(killerid, -suecost);
    SafeGivePlayerMoney(playerid, suecost+10);//+100pays hospital bill
    }
    else
    {
    //format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason);
    }
    if (((gTeam[killerid]) == 4) && reason != 49)
    {
    SetPlayerCriminal(killerid,255, "First Degree Murder");
    }
    else if (((gTeam[killerid]) == 3) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Hit And Run");
    }
    //BroadCast(COLOR_RED, string);
    }
    }




    if (victimteam >= 3 && WantedPoints[playerid] > 0 && killerteam == 2)
    {
    SetPlayerFree(playerid,killerid, "Got Killed");
    }
    if (Busroute2[playerid][0] != 0 || Busroute1[playerid][0] != 0)
    {
    if (Busroute2[playerid][0] != 0) BusrouteEnd(playerid, Busroute1[playerid][1]);
    else if (Busroute1[playerid][0] != 0) BusrouteEnd(playerid, Busroute2[playerid][1]);
    else BusrouteEnd(playerid, 0);
    }
    if(FarmerVar[playerid] != 0)
    {
    FarmerVar[playerid] = 0;
    DisablePlayerCheckpoint(playerid);
    }
    if(DrugFarmerVar[playerid] != 0)
    {
    DrugFarmerVar[playerid] = 0;
    DisablePlayerCheckpoint(playerid);
    }
    if(SmugglerWork[playerid] != 0)
    {
    SmugglerWork[playerid] = 0;
    DisablePlayerCheckpoint(playerid);
    }
    killerid = INVALID_PLAYER_ID;
    SetRealMoney(playerid, ScriptMoney[playerid]);
    SetPlayerColor(playerid,0xBBBBBB00);
    SafeResetPlayerWeapons(playerid);
    return 1;
    }


    Halt Larp und anfang edited.