SA-MP Forums Archive
kill problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: kill problem (/showthread.php?tid=423733)



kill problem - Ananisiki - 19.03.2013

^^^^^^^^


Re: kill problem - Vince - 19.03.2013

Modify OnPlayerDeath, obviously. You should have the "admin kill" section on top, with a return statement in that compound block. Can't really tell without seeing some code.


Re: kill problem - Ananisiki - 19.03.2013

^^^^^^^^


Re: kill problem - mastermax7777 - 19.03.2013

pawn Код:
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;