Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (killerid != INVALID_PLAYER_ID)
- {
- SendDeathMessage(killerid, playerid, reason);
- //PlayerPlaySound(playerid, 5400, 0.0, 0.0, 0.0);
- GameTextForPlayer(killerid, "+50", 1500, 4);
- PlayerInfo[killerid][pKills] ++;
- PlayerInfo[killerid][pKillStreak] ++;
- PlayerInfo[killerid][pScore] = PlayerInfo[killerid][pScore] + 50;
- GivePlayerMoneyEx(playerid, 1000);
- SetPlayerScore(killerid, PlayerInfo[killerid][pScore]);
- NewComboNotAnnounced[killerid] = 1;
- CheckKillStreak(killerid);
- for(new t=0; t<MAX_TURFS; t++) //Loop through all the turfs to check if the player was in one
- {
- if(IsPlayerInTurf(killerid, t))
- {
- TurfInfo[t][tDeaths] ++;
- GetPlayerName(playerid, SenderName, sizeof(SenderName));
- GetPlayerName(receiverid, ReceiverName, sizeof(ReceiverName));
- 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]);
- if(IsPlayerInTurfWar(t, killerid))
- {
- BattleInfo[PlayerInfo[killerid][pTeam]][bKills] ++;
- BattleInfo[PlayerInfo[playerid][pTeam]][bDeaths] ++;
- }
- }
- }
- }
- else
- {
- SendDeathMessage(REASON_FAKE_PISTOL, playerid, reason);
- }
- }
Add Comment
Please, Sign In to add comment