kill problem
#1

^^^^^^^^
Reply
#2

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.
Reply
#3

^^^^^^^^
Reply
#4

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;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)