19.03.2013, 07:39
(
Последний раз редактировалось Ananisiki; 15.12.2013 в 18:18.
)
^^^^^^^^
public OnPlayerDeath(playerid, killerid, reason)
{
isDead[playerid] = 1;
if(GetPVarInt(killerid, "Aduty") == 1 && GetPVarInt(playerid, "SetHealthDead") == 0 && GetPVarInt(playerid, "akilled") == 0)
{
GameTextForPlayer(playerid, "~g~unfair death~n~~p~continuing current life", 3000, 3);
SetPlayerColor(playerid, COLOR_GREY);
return 1;
}
if(GetPVarInt(playerid, "akilled") == 0)
SetPVarInt(playerid, "akilled", 0);
GivePlayerMoney(killerid, 1000);
SetPVarInt(playerid,"PillsTaken",0);
GameTextForPlayer(playerid, "~r~klapped", 3000, 6);
GetPlayerName(killerid, kName, sizeof(kName));
PlayerKills[killerid] = PlayerKills[killerid] +1;
PlayerKills[playerid] = 0;
SetPVarInt(playerid, "Dead", 1);
return 1;