HP Problem
#2

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    for (new i = 0; i < MAX_PLAYERS; i++)
    GameTextForPlayer(i, "~g~Killing Spree~n~~y~+15.000$+50HP~y~", 5000, 3);
    new Float:Health;
    GetPlayerHealth(killerid, Health);
    SetPlayerHealth(killerid, Health+50);
    GivePlayerMoney(killerid,15000);//<-------added this
    SendDeathMessage(killerid, playerid, reason);
    TextDrawHideForPlayer(playerid,HealthBar[playerid]);
    GameTextForPlayer(playerid, "~r~You Die", 5000, 2);
    neon(playerid);
    nrg(playerid);
    if( DMZone[killerid] >= 1)
    {
        TextDrawHideForPlayer(playerid,HealthBar[playerid]);
        SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
        SetPlayerScore(killerid,GetPlayerScore(killerid)-0);
        GameTextForPlayer(playerid, "~r~You Die", 5000, 2);
        PlayCrimeReportForPlayer(playerid, killerid, 3);
        kills[killerid]++;
    }
    if( DMZone[killerid] == 0)
    {
        TextDrawHideForPlayer(playerid,HealthBar[playerid]);
        SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
        SetPlayerScore(playerid,GetPlayerScore(playerid)-0);
        GameTextForPlayer(playerid, "~r~You Die", 5000, 2);
        PlayCrimeReportForPlayer(playerid, killerid, 3);
    }
    return 1;
}
try this
Reply


Messages In This Thread
HP Problem - by diablo16 - 31.07.2012, 14:33
Re: HP Problem - by XStormiest - 31.07.2012, 14:37
Re: HP Problem - by diablo16 - 31.07.2012, 15:20

Forum Jump:


Users browsing this thread: 1 Guest(s)