Guest User

Untitled

a guest
May 23rd, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.32 KB | None | 0 0
  1.     if (killerid != INVALID_PLAYER_ID)
  2.     {
  3.         SendDeathMessage(killerid, playerid, reason);
  4.         //PlayerPlaySound(playerid, 5400, 0.0, 0.0, 0.0);
  5.         GameTextForPlayer(killerid, "+50", 1500, 4);
  6.         PlayerInfo[killerid][pKills] ++;
  7.         PlayerInfo[killerid][pKillStreak] ++;
  8.         PlayerInfo[killerid][pScore] = PlayerInfo[killerid][pScore] + 50;
  9.         GivePlayerMoneyEx(playerid, 1000);
  10.         SetPlayerScore(killerid, PlayerInfo[killerid][pScore]);
  11.         NewComboNotAnnounced[killerid] = 1;
  12.         CheckKillStreak(killerid);
  13.         for(new t=0; t<MAX_TURFS; t++) //Loop through all the turfs to check if the player was in one
  14.         {
  15.             if(IsPlayerInTurf(killerid, t))
  16.             {
  17.                 TurfInfo[t][tDeaths] ++;
  18.                 GetPlayerName(playerid, SenderName, sizeof(SenderName));
  19.                 GetPlayerName(receiverid, ReceiverName, sizeof(ReceiverName));
  20.                 printf("[PlayerID %d]%s was killed in turf %d by [PlayerID %d]%s. Total deaths for turf %d = %d", playerid, SenderName, PlayerInfo[killerid][pCurrentTurf], receiverid, ReceiverName, PlayerInfo[killerid][pCurrentTurf], TurfInfo[t][tDeaths]);
  21.                 if(IsPlayerInTurfWar(t, killerid))
  22.                 {
  23.                     BattleInfo[PlayerInfo[killerid][pTeam]][bKills] ++;
  24.                     BattleInfo[PlayerInfo[playerid][pTeam]][bDeaths] ++;
  25.                 }
  26.             }
  27.         }
  28.     }
  29.     else
  30.     {
  31.         SendDeathMessage(REASON_FAKE_PISTOL, playerid, reason);
  32.     }
  33. }
Add Comment
Please, Sign In to add comment