21.11.2014, 18:27
Код:
public OnPlayerDeath(playerid, killerid, reason) { new name[MAX_PLAYER_NAME]; new string[256]; new str[128]; GetPlayerName(killerid, name, sizeof(name)); format(string, sizeof(string), "Ai fost omorat de %s", name); SendClientMessage(playerid, COLOR_1BLUE, string); /*if(IsWar && killerid != INVALID_PLAYER_ID) Killing[gTeam[killerid]]++; // OnPlayerDeath Killing[PlayerInfo[killerid][pLeader]]++; Killing[PlayerInfo[killerid][pMember]]++;*/ ///mission// if(PlayerOnMission13[playerid] == 1 || PlayerOnMission14[playerid] == 1 || PlayerOnMission15[playerid] == 1 || PlayerOnMission16[playerid] == 1) { PlayerOnMission13[playerid] = 0; PlayerOnMission14[playerid] = 0; PlayerOnMission15[playerid] = 0; PlayerOnMission16[playerid] = 0; DisablePlayerCheckpoint(playerid); new killer[MAX_PLAYER_NAME]; new mort[MAX_PLAYER_NAME]; GetPlayerName(playerid, mort, sizeof(mort)); GetPlayerName(killerid, killer, sizeof(killer)); format(string, sizeof(string), "%s l-a omorat pe %s in timp ce facea misiunea si a catigat 50.000$", killer, mort); SendClientMessageToAll(0xFF0000FF, string); GivePlayerMoney(killerid, 50000); return 1; }