aduty kill
#1

^^^^^^^^
Reply
#2

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    IsInAdminArea[playerid] = 0;
    SetPVarInt(playerid, "IsInAdminArea", 0);
    AreaX[playerid] = -1.00;
    AreaY[playerid] = -1.00;
    AreaZ[playerid] = -1.00;
    Duty[playerid] = 0;
    Dead[playerid] = 1;
    GoBack[playerid] = 0;
    Frozen[playerid] = 0;
    if(IsBeingSpeced[playerid] == 1)
        SetPVarInt(playerid, "Dead", 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);
      {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(spectatingid[i] == playerid)
            {
                TextDrawDestroy(spec[i]);
                SendClientMessage(i, COLOR_ORANGE, "The Player Has Died.");
                SetPVarInt(i, "WasSpecing", 1);
                SetPVarInt(i, "IsSpecing", 0);
                spectatingid[i] = -1;
                TogglePlayerSpectating(i, false);
                SetPlayerPos(i, SpecX[i], SpecY[i], SpecZ[i]);
                SetPlayerInterior(i, SpecInterior[i]);
                SetPlayerVirtualWorld(i, SpecVWorld[i]);
                TextDrawDestroy(spec[i]);
            }
        }
        IsBeingSpeced[playerid] = 0;
    }
    if(IsPlayerEditingObject[playerid] == 1)
    {
        CancelEdit(playerid);
        IsPlayerEditingObject[playerid] = 0;
    }
    return 1;
}
    return 1;
}
Reply
#3

^^^^^^^^
Reply
#4

seem you missed a quote.

pawn Код:
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);
    {
try now

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    IsInAdminArea[playerid] = 0;
    SetPVarInt(playerid, "IsInAdminArea", 0);
    AreaX[playerid] = -1.00;
    AreaY[playerid] = -1.00;
    AreaZ[playerid] = -1.00;
    Duty[playerid] = 0;
    Dead[playerid] = 1;
    GoBack[playerid] = 0;
    Frozen[playerid] = 0;
    if(IsBeingSpeced[playerid] == 1)
        SetPVarInt(playerid, "Dead", 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);

        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(spectatingid[i] == playerid)
            {
                TextDrawDestroy(spec[i]);
                SendClientMessage(i, COLOR_ORANGE, "The Player Has Died.");
                SetPVarInt(i, "WasSpecing", 1);
                SetPVarInt(i, "IsSpecing", 0);
                spectatingid[i] = -1;
                TogglePlayerSpectating(i, false);
                SetPlayerPos(i, SpecX[i], SpecY[i], SpecZ[i]);
                SetPlayerInterior(i, SpecInterior[i]);
                SetPlayerVirtualWorld(i, SpecVWorld[i]);
                TextDrawDestroy(spec[i]);
            }
        }
        IsBeingSpeced[playerid] = 0;
    }
    if(IsPlayerEditingObject[playerid] == 1)
    {
        CancelEdit(playerid);
        IsPlayerEditingObject[playerid] = 0;
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)