Gente eu o uso o chatkill no meu server mas ele nao funciona qndo alguem se mata tipo pulando de um predio e tambem qndo alguem morre por DB!
Uhum ja coloquei assim, mesmo asssim qndo eu pulo de um prйdio nao aparece no chatkill
ta igual esse mano, mas acho que o problema nao й esse, pq eu quero q aparece qndo o cara caia mas nao aparece, o problema deve ser na onplayerdeath, deve ter que colocar alguma coisa pra qndo o cara se matar sei lб :/
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  VezesMorto[playerid]++;
  new name[MAX_PLAYER_NAME];
  new string[256];
  //new dmessage[128];
  //new deathreason[20];
  new playercash;
  new killerName[MAX_PLAYER_NAME];
  new playerName[MAX_PLAYER_NAME];
  new victimteam;
  new Float:px,Float:py,Float:pz;
  new killerteam;
  new GTRID = GetPlayerTerritorio(playerid);
  victimteam = gTeam[playerid];
  killerteam = gTeam[killerid];
  gPlayerSpawned[playerid] = 0;
  GetPlayerName(playerid, name, sizeof(name));
  PlayerInfo[playerid][pLocal] = 255;
  GetPlayerPos(playerid, px, py, pz);
  spawnado[playerid] = 0;
if(killerid == INVALID_PLAYER_ID)
  {
    SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
  }
  else
  {
  SendDeathMessage(killerid,playerid,reason);
  } Â
for(new x = 0; x <= MAX_PLAYERS; x++)
  {
    TextDrawHideForPlayer(x, MortoInfo[x]);
    if(IsPlayerInFavela(x) || IsPlayerInBoca2(x) || IsPlayerInQuadra(x) || IsPlayerInPark(x)
    || IsPlayerInBoca1(x) || IsPlayerInBoca3(x) || IsPlayerInRiacho(x) || IsPlayerInIndustria(x)
    || IsPlayerInFonteSF(x) || IsPlayerInShoppingSF(x) || IsPlayerInPraiaSF(x)
    || IsPlayerInAeroSF(x) || IsPlayerInConstrucaoSF(x) || IsPlayerInRiacho(x)
    || IsPlayerInCasarao(x) || IsPlayerInEstacao(x))
    {
      format(string, sizeof(string), "%s%s ~w~(%s)~n~~n~~w~Matou~n~~n~%s%s ~w~(Morto %d vezes)",RandomTextColor[random(sizeof(RandomTextColor))], GetName(killerid), GetWeaponInformation(GetPlayerWeapon(killerid)), RandomTextColor[random(sizeof(RandomTextColor))], GetName(playerid), VezesMorto[playerid]);
      TextDrawFormatShowForPlayer(x,MortoInfo[x],string);
    }
  }
  if(TendoGuerra >= 1)
  {
    if(IsPlayerInGuerra(playerid) && IsPlayerInGuerra(killerid))
    {
      if(ExeXHam >= 1)
      {
        if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
        {
          if(PlayerInfo[killerid][pMembro] == 6 || PlayerInfo[killerid][pLider] == 6)
          {
            ContHam += 1;
            KenInfo[playerid][DBGuerra] = 1;
            KenInfo[killerid][DBGuerra] = 1;
          }
        }
        if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
        {
          if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3)
          {
            ContExe += 1;
            KenInfo[playerid][DBGuerra] = 1;
            KenInfo[killerid][DBGuerra] = 1;
          }
        }
      }
      if(ExeXAlq >= 1)
      {
        if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
        {
          if(PlayerInfo[killerid][pMembro] == 16 || PlayerInfo[killerid][pLider] == 16)
          {
            ContAlq += 1;
            KenInfo[playerid][DBGuerra] = 1;
            KenInfo[killerid][DBGuerra] = 1;
          }
        }
        if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
        {
          if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3)
          {
            ContExe += 1;
            KenInfo[playerid][DBGuerra] = 1;
            KenInfo[killerid][DBGuerra] = 1;
          }
        }
      }
      if(HamXExe >= 1)
      {
        if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
        {
          if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3)
          {
            ContExe += 1;
            KenInfo[playerid][DBGuerra] = 1;
            KenInfo[killerid][DBGuerra] = 1;
          }
        }
        if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
        {
          if(PlayerInfo[killerid][pMembro] == 6 || PlayerInfo[killerid][pLider] == 6)
          {
            ContHam += 1;
            KenInfo[playerid][DBGuerra] = 1;
            KenInfo[killerid][DBGuerra] = 1;
          }
        }
      }
      if(HamXAlq >= 1)
      {
        if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
        {
          if(PlayerInfo[killerid][pMembro] == 16 || PlayerInfo[killerid][pLider] == 16)
          {
            ContAlq += 1;
            KenInfo[playerid][DBGuerra] = 1;
            KenInfo[killerid][DBGuerra] = 1;
          }
        }
        if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
        {
          if(PlayerInfo[killerid][pMembro] == 6 || PlayerInfo[killerid][pLider] == 6)
          {
            ContHam += 1;
            KenInfo[playerid][DBGuerra] = 1;
            KenInfo[killerid][DBGuerra] = 1;
          }
        }
      }
      if(AlqXExe >= 1)
      {
        if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
        {
          if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3)
          {
            ContExe += 1;
            KenInfo[playerid][DBGuerra] = 1;
            KenInfo[killerid][DBGuerra] = 1;
          }
        }
        if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
        {
          if(PlayerInfo[killerid][pMembro] == 16 || PlayerInfo[killerid][pLider] == 16)
          {
            ContAlq += 1;
            KenInfo[playerid][DBGuerra] = 1;
            KenInfo[killerid][DBGuerra] = 1;
          }
        }
      }
      if(AlqXHam >= 1)
      {
        if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
        {
          if(PlayerInfo[killerid][pMembro] == 6 || PlayerInfo[killerid][pLider] == 6)
          {
            ContHam += 1;
            KenInfo[playerid][DBGuerra] = 1;
            KenInfo[killerid][DBGuerra] = 1;
          }
        }
        if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
        {
          if(PlayerInfo[killerid][pMembro] == 16 || PlayerInfo[killerid][pLider] == 16)
          {
            ContAlq += 1;
            KenInfo[playerid][DBGuerra] = 1;
            KenInfo[killerid][DBGuerra] = 1;
          }
        }
      }
    }
  }
  if(EntrounoEvento == 1)
  {
    GetPlayerName(playerid,killerName,sizeof(killerName));
    GetPlayerName(playerid,playerName,sizeof(playerName));
    format(xDString, sizeof(xDString), "[BPR] %s matou %s Arma:%d", killerName, playerName, reason);
    SendClientMessageToAll(0x33FF00FF, xDString);
    EntrounoEvento = 0;
  }
  if(JogadorNoEvento[playerid] != 1)
  {
    JogadorNoEvento[killerid] ++;
    if(JogadorNoEvento[killerid] > VencedorDoEvento)
    {
      new killer[MAX_PLAYER_NAME];
      VencedorDoEvento = killerid;
      VencedorDoEvento = JogadorNoEvento[killerid];
      GetPlayerName(killerid, killer, sizeof(killer));
    }
    return 1;
  }
  if(ProvocoCasarao[playerid] == 1)
  {
      GangZoneStopFlashForAll(GZCasarao);
      GangZoneShowForAll(GZCasarao, 0xFFFFFF96);
      GuerranoCasarao = 0;
      ProvocoCasarao[playerid] = 0;
      donocasarao = 0;
      Dominando[playerid] = 0;
      KillTimer(TempoGuerraCasarao);
  }
  if(ProvocoRiacho[playerid] == 1)
  {
      GangZoneStopFlashForAll(GZRiacho);
      GangZoneShowForAll(GZRiacho, 0xFFFFFF96);
      GuerranoRiacho = 0;
      ProvocoRiacho[playerid] = 0;
      donoriacho = 0;
      Dominando[playerid] = 0;
      KillTimer(TempoGuerraRiacho);
  }
  if(ProvocoIndustria[playerid] == 1)
  {
      GangZoneStopFlashForAll(GZIndustria);
      GangZoneShowForAll(GZIndustria, 0xFFFFFF96);
      GuerranaIndustria = 0;
      ProvocoIndustria[playerid] = 0;
      donoindustria = 0;
      Dominando[playerid] = 0;
      KillTimer(TempoGuerraIndustria);
  }
  if(ProvocoEstacao[playerid] == 1)
  {
      GangZoneStopFlashForAll(GZEstacao);
      GangZoneShowForAll(GZEstacao, 0xFFFFFF96);
      GuerranaEstacao = 0;
      ProvocoEstacao[playerid] = 0;
      donoestacao = 0;
      Dominando[playerid] = 0;
      KillTimer(TempoGuerraEstacao);
  }
  if(ProvocoFavela[playerid] == 1)
    {
      GangZoneStopFlashForAll(GZFavela);
      GangZoneShowForAll(GZFavela, 0xFFFFFF96);
      GuerranaFavela = 0;
      ProvocoFavela[playerid] = 0;
      donofavela = 0;
      Dominando[playerid] = 0;
      KillTimer(TempoGuerraFavela);
    }
    if(ProvocoQuadra[playerid] == 1)
    {
      GangZoneStopFlashForAll(GZQuadra);
      GangZoneShowForAll(GZQuadra, 0xFFFFFF96);
      GuerranaQuadra = 0;
      ProvocoQuadra[playerid] = 0;
      donoquadra = 0;
      Dominando[playerid] = 0;
      KillTimer(TempoGuerraQuadra);
    }
    if(ProvocoBoca1[playerid] == 1)
    {
      GangZoneStopFlashForAll(GZBoca1);
      GangZoneShowForAll(GZBoca1, 0xFFFFFF96);
      GuerranoBoca1 = 0;
      ProvocoBoca1[playerid] = 0;
      donoBoca1 = 0;
      Dominando[playerid] = 0;
      KillTimer(TempoGuerraBoca1);
    }
    if(ProvocoPark[playerid] == 1)
    {
      GangZoneStopFlashForAll(GZPark);
      GangZoneShowForAll(GZPark, 0xFFFFFF96);
      GuerranoPark = 0;
      ProvocoPark[playerid] = 0;
      donopark = 0;
      Dominando[playerid] = 0;
      KillTimer(TempoGuerraPark);
    }
    if(ProvocoBoca2[playerid] == 1)
    {
      GangZoneStopFlashForAll(GZBoca2);
      GangZoneShowForAll(GZBoca2, 0xFFFFFF96);
      GuerranoBoca2 = 0;
      ProvocoBoca2[playerid] = 0;
      donoBoca2 = 0;
      Dominando[playerid] = 0;
      KillTimer(TempoGuerraBoca2);
    }
    if(ProvocoBoca3[playerid] == 1)
    {
      GangZoneStopFlashForAll(GZBoca3);
      GangZoneShowForAll(GZBoca3, 0xFFFFFF96);
      GuerranoBoca3 = 0;
      ProvocoBoca3[playerid] = 0;
      donoBoca3 = 0;
      Dominando[playerid] = 0;
      KillTimer(TempoGuerraBoca3);
    }
    //==============SAN FIERRO - GZs=========//
    if(ProvocoFonteSF[playerid] == 1)
    {
      GangZoneStopFlashForAll(GZFonteSF);
      GangZoneShowForAll(GZFonteSF, 0xFFFFFF96);
      GuerranaFonteSF = 0;
      ProvocoFonteSF[playerid] = 0;
      donoFonteSF = 0;
      Dominando[playerid] = 0;
      KillTimer(TempoGuerraFonteSF);
    }
    if(ProvocoShoppingSF[playerid] == 1)
    {
      GangZoneStopFlashForAll(GZShoppingSF);
      GangZoneShowForAll(GZShoppingSF, 0xFFFFFF96);
      GuerranoShoppingSF = 0;
      ProvocoShoppingSF[playerid] = 0;
      donoShoppingSF = 0;
      Dominando[playerid] = 0;
      KillTimer(TempoGuerraShoppingSF);
    }
    if(ProvocoConstrucaoSF[playerid] == 1)
    {
      GangZoneStopFlashForAll(GZConstrucaoSF);
      GangZoneShowForAll(GZConstrucaoSF, 0xFFFFFF96);
      GuerranaConstrucaoSF = 0;
      ProvocoConstrucaoSF[playerid] = 0;
      donoConstrucaoSF = 0;
      Dominando[playerid] = 0;
      KillTimer(TempoGuerraConstrucaoSF);
    }
    if(ProvocoAeroSF[playerid] == 1)
    {
      GangZoneStopFlashForAll(GZAeroSF);
      GangZoneShowForAll(GZAeroSF, 0xFFFFFF96);
      GuerranoAeroSF = 0;
      ProvocoAeroSF[playerid] = 0;
      donoAeroSF = 0;
      Dominando[playerid] = 0;
      KillTimer(TempoGuerraAeroSF);
    }
    if(ProvocoPraiaSF[playerid] == 1)
    {
      GangZoneStopFlashForAll(GZPraiaSF);
      GangZoneShowForAll(GZPraiaSF, 0xFFFFFF96);
      GuerranaPraiaSF = 0;
      ProvocoPraiaSF[playerid] = 0;
      donoPraiaSF = 0;
      Dominando[playerid] = 0;
      KillTimer(TempoGuerraPraiaSF);
    }
    //==============SAN FIERRO - GZs=========//
  if(GetPlayerState(killerid) == 2)
    {
      GetPlayerName(killerid,kickname,sizeof(kickname));
      GetPlayerName(playerid,atropeladonome,sizeof(atropeladonome));
      format(string,sizeof(string),"AdmCmd:[ID%d]%s matou [ID%d]%s Atropelado e serб kickado pelo Admin.",killerid,kickname,playerid,atropeladonome);
      SendClientMessageToAll(COLOR_LIGHTRED,string);
      return 1;
    }
  if(reason == 38)
  {
    new kstring[128];
    new DBNameYEAH[MAX_PLAYER_NAME];
    if(IsPlayerConnected(killerid))
    {
      GetPlayerName(playerid, name, sizeof(name));
      GetPlayerName(killerid, DBNameYEAH, sizeof(DBNameYEAH));
      format(string, 256, "AdmAviso: [%d]%s usou minigun em %s.",killerid,DBNameYEAH,name);
      ABroadCast(COLOR_YELLOW,string,1);
      printf("%s", kstring);
    }
  }
/*Â if(killerid != 255)
  {
    if(GetPlayerState(killerid) == 2)
    {
      if(KenInfo[killerid][GDB] >= 1)
      {
        KenInfo[killerid][GDB] = 0;
      }
      else
      {
        format(string,sizeof(string),"{e33b86}Atenзгo:{16de34}[%d]{16de34}%s {e33b86}cometeu DB em {16de34}%s {e33b86}e serб kikado pelo Admin.",killerid,pNome(killerid),pNome(playerid));
        SendClientMessageToAll(COLOR_LIGHTRED,string);
      }
    }
  }*/
  if(reason == 35)
  {
    new kstring[128];
    new DBNameYEAH[MAX_PLAYER_NAME];
    if(IsPlayerConnected(killerid))
    {
      GetPlayerName(killerid, DBNameYEAH, sizeof(DBNameYEAH));
      format(string, 256, "AdmAviso: [%d]%s usou Bazuka em %s.",killerid,DBNameYEAH,name);
      ABroadCast(COLOR_YELLOW,string,1);
      printf("%s", kstring);
    }
  }
  if(reason == 36)
  {
    new kstring[128];
    new DBNameYEAH[MAX_PLAYER_NAME];
    if(IsPlayerConnected(killerid))
    {
      GetPlayerName(killerid, DBNameYEAH, sizeof(DBNameYEAH));
      format(string, 256, "AdmAviso: [%d]%s usou Bazuka =2= em %s.",killerid,DBNameYEAH,name);
      ABroadCast(COLOR_YELLOW,string,1);
      printf("%s", kstring);
    }
  }
  if(reason == 26)
  {
    new kstring[128];
    new DBNameYEAH[MAX_PLAYER_NAME];
    if(IsPlayerConnected(killerid))
    {
      GetPlayerName(killerid, DBNameYEAH, sizeof(DBNameYEAH));
      format(string, 256, "AdmAviso: [%d]%s usou 12 Cano cerrado em %s.",killerid,DBNameYEAH,name);
      ABroadCast(COLOR_YELLOW,string,1);
      printf("%s", kstring);
    }
  }
  if(reason == 32)
  {
    new kstring[128];
    new DBNameYEAH[MAX_PLAYER_NAME];
    if(IsPlayerConnected(killerid))
    {
      GetPlayerName(killerid, DBNameYEAH, sizeof(DBNameYEAH));
      format(string, 256, "AdmAviso: [%d]%s usou TEC9 em %s.",killerid,DBNameYEAH,name);
      ABroadCast(COLOR_YELLOW,string,1);
      printf("%s", kstring);
    }
  }
  if(MISSAO[playerid] == 1)
  {
  SetPlayerName(playerid, "[GT3]");
  MISSAO[playerid] = 0;
  }
  if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
  {
    DisablePlayerCheckpoint(playerid);
    gPlayerCheckpointStatus[playerid] = CHECKPOINT_Nenhum;
  }
  new caller = Mobile[playerid];
  if(caller != 255)
  {
    if(caller < 255)
    {
      SendClientMessage(caller,  COLOR_GRAD2, "Morreram do outro lado da linha....");
      CellTime[caller] = 0;
      CellTime[playerid] = 0;
      Mobile[caller] = 255;
    }
    Mobile[playerid] = 255;
    CellTime[playerid] = 0;
  }
  ClearCrime(playerid);
  if(PlayerPaintballing[playerid] != 0)
  {
    PlayerPaintballKills[killerid] ++;
    if(PlayerPaintballKills[killerid] > PaintballWinnerKills)
    {
      new killer[MAX_PLAYER_NAME];
      PaintballWinner = killerid;
      PaintballWinnerKills = PlayerPaintballKills[killerid];
      GetPlayerName(killerid, killer, sizeof(killer));
      for(new i = 0; i < MAX_PLAYERS; i++)
      {
        if(IsPlayerConnected(i))
        {
          if(PlayerPaintballing[i] != 0)
          {
            format(string, sizeof(string), "* %s estб em 1є com %d Kills.",killer,PaintballWinnerKills);
            SendClientMessage(i, COLOR_WHITE, string);
          }
        }
      }
    }
    return 1;
  }
  if(GTRID != NONE_TR)
  {
    new killerorg;
    if(PlayerInfo[killerid][pMembro] > 0)
    {
      killerorg = PlayerInfo[killerid][pMembro];
    }
    if(PlayerInfo[killerid][pLider] > 0)
    {
      killerorg = PlayerInfo[killerid][pLider];
    }
    new org;
    if(PlayerInfo[playerid][pMembro] > 0)
    {
      org = PlayerInfo[playerid][pMembro];
    }
    if(PlayerInfo[playerid][pLider] > 0)
    {
      org = PlayerInfo[playerid][pLider];
    }
    if(Territorio[GTRID][TRGuerra] >= 1)
    {
      if(Territorio[GTRID][OrgGuerra] == killerorg)
      {
        if(IsPlayerInTerritorio(playerid,GTRID) && IsPlayerInTerritorio(killerid,GTRID))
        {
          if(Territorio[GTRID][DonoTR] == org)
          {
            PontosTR[GTRID][killerorg] += 120;
          }
        }
      }
      if(Territorio[GTRID][DonoTR] == killerorg)
      {
        if(IsPlayerInTerritorio(playerid,GTRID) && IsPlayerInTerritorio(killerid,GTRID))
        {
          if(Territorio[GTRID][OrgGuerra] == org)
          {
            PontosTR[GTRID][killerorg] += 120;
          }
        }
      }
    }
  }
  if(Morro[Guerra] >= 1)
  {
    new org = GetPlayerOrg(playerid);
    new killerorg = GetPlayerOrg(killerid);
    if(OrgPodeGuerriarMorro(playerid,org) && OrgPodeGuerriarMorro(killerid,killerorg))
    {
      if(IsPlayerInMorro(playerid) && IsPlayerInMorro(killerid))
      {
        MorroPontos[killerorg] += 80;
      }
    }
    if(OrgPodeGuerriarPistaSkate(playerid,org) && OrgPodeGuerriarPistaSkate(killerid,killerorg))
    {
      if(IsPlayerInPistaSkate(playerid) && IsPlayerInPistaSkate(killerid))
      {
        PistaSkatePontos[killerorg] += 80;
      }
    }
  }
  if(GettingCK[playerid] < 999 || OnCK[playerid] < 999)
  {
    if(IsPlayerConnected(killerid))
    {
      if(GettingCK[killerid] < 999 || OnCK[playerid] < 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 Voce tomou um Char Kill, e nao podera mais jogar com este personagem.",killer);
        SendClientMessage(playerid, COLOR_LIGHTRED, string);
        format(string, sizeof(string), "** %s Char Morto Por %s **",killer,dier);
        CKLog(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(IsPlayerConnected(killerid))
    {
      if(gTeam[killerid] == 10 || PlayerInfo[killerid][pLider] == 8  || PlayerInfo[killerid][pMembro] == 8 ||PlayerInfo[killerid][pLider] == 22  || PlayerInfo[killerid][pMembro] == 22)
      {
        if(GoChase[killerid] == playerid)
        {
          ConsumingMoney[killerid] = 1;
          new killer[MAX_PLAYER_NAME];
          GetPlayerName(killerid, killer, sizeof(killer));
          GivePlayerMoneyEx(killerid, PlayerInfo[playerid][pHeadValue]);
          SendClientMessage(playerid, 0x33FF00FF, "<<<<<<<<< Vocк Foi Pego Por 1 Contrato,Portanto,NГO FOI DM! >>>>>>>>>");
          format(string,128,"<< Hitman %s cumpriu o contrato em %s e ganhou R$%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
          SendFamilyMessage(8, COLOR_YELLOW, string);
          SendFamilyMessage(22, COLOR_YELLOW, string);
          SendFamilyMessage(13, COLOR_YELLOW, string);
          PlayerInfo[playerid][pHeadValue] = 0;
          GotHit[playerid] = 0;
          PlayerInfo[hitid][pMask] = 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; //R$100
      playercash = GetPlayerMoneyEx(playerid);
      if(gTeam[killerid] != 2) { PlayerInfo[killerid][pProcurado1] += 2; } //+ 2 wanted points
      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 R$%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 R$%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)
      {
        GivePlayerMoneyEx(playerid, -slice);
      }
      else
      {
        slice = slice+500;
      }
      GivePlayerMoneyEx(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, "Assassinato em primeiro grau");
      }
      else if (((gTeam[killerid]) == 3) && reason == 49)
      {
        SetPlayerCriminal(killerid,255, "Assassinato, e fuda");
      }
    }
  }
  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 R$%d :.",killer,name,deathreason,suecost);
        PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
        GivePlayerMoneyEx(killerid, -suecost);
        GivePlayerMoneyEx(playerid, suecost+100);//+100pays hospital bill
      }
      else
      {
        //format(string,128,".: %s murdered Officer %s (%s) :.",killer,name,deathreason);
      }
      if (gTeam[killerid] >= 3)
      {
        PlayerInfo[killerid][pProcurado1] += 2; //+ 2 wanted points
        OnPlayerUpdate(killerid);
        if(reason != 49)
        {
          SetPlayerCriminal(killerid,255, "Assassinato em primeiro grau");
        }
        else if (reason == 49)
        {
          SetPlayerCriminal(killerid,255, "Assassinato, e fuga");
        }
      }
      if(gTeam[killerid] >= 5 && SafeTime[playerid] <= 0)
      {
        if(GetPlayerState(killerid) == 1)
        {
          PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills]+2;
        }
        else
        {
          PlayerInfo[killerid][pKills]++;
        }
        PlayerInfo[killerid][pProcurado1]+=2;
        OnPlayerUpdate(killerid);
      }
      //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(PlayerInfo[playerid][pProcurado2] < 1)
        {
          //format(string,128,".: Officer %s murdered %s (%s) and was sued for R$%d :.",killer,name,deathreason,suecost);
          PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
          GivePlayerMoneyEx(killerid, -suecost);
          GivePlayerMoneyEx(playerid, suecost+100);//+100pays hospital bill
        }
      }
      else
      {
        //format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason);
        PlayerInfo[killerid][pProcurado1] += 2;
        OnPlayerUpdate(killerid);
      }
      if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason != 49)
      {
        SetPlayerCriminal(killerid,255, "Assassinato em primeiro grau");
      }
      else if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason == 49)
      {
        SetPlayerCriminal(killerid,255, "Assassinato, e fuga");
      }
      //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 Medico %s (%s) and was sued for R$%d :.",killer,name,deathreason,suecost);
        PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
        GivePlayerMoneyEx(killerid, -suecost);
        GivePlayerMoneyEx(playerid, suecost+100);//+100pays hospital bill
      }
      else if ((gTeam[killerid]) == 1)//med kill civ
      {
        //format(string,128,".: Medico %s murdered %s (%s) and was sued for R$%d :.",killer,name,deathreason,suecost);
        PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
        GivePlayerMoneyEx(killerid, -suecost);
        GivePlayerMoneyEx(playerid, suecost+100);//+100pays hospital bill
      }
      else
      {
        //format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason);
      }
      if (((gTeam[killerid]) == 4) && reason != 49)
      {
        SetPlayerCriminal(killerid,255, "Assassinato em primeiro grau");
      }
      else if (((gTeam[killerid]) == 3) && reason == 49)
      {
        SetPlayerCriminal(killerid,255, "Assassinato, e fuga");
      }
      //BroadCast(COLOR_RED, string);
    }
  }
  if (victimteam >= 3 && PlayerInfo[playerid][pProcurado1] > 0 && killerteam == 2)
  {
    SetPlayerFree(playerid,killerid, "Got Killed");
  }
   Â
  killerid = INVALID_PLAYER_ID;
  SetPlayerColor(playerid,COLOR_GRAD2);
return 1;
}