01.05.2012, 20:13
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
TeamKills[gTeam[killerid]]++;
GivePlayerMoney(killerid, 500);
GivePlayerMoney(playerid, -250);
GameTextForPlayer(killerid, "~r~+500", 500, 1);
GameTextForPlayer(playerid, "~r~-250", 500, 1);
SetPlayerScore(playerid, GetPlayerScore( playerid ) -1 );
SetPlayerScore(killerid, GetPlayerScore( killerid ) +1 );
SendDeathMessage(killerid, playerid, reason);
SendClientMessage(playerid,0xFF0000FF, "You have been killed");
GameTextForPlayer(playerid,"~r~You have been killed!", 3000, 3);
}