Hitman bug
#1

When I kill someone (as assassin) I don't recive money .. Why ?

pawn Код:
if(PlayerInfo[playerid][pHeadValue] > 0)
    {
        if(IsPlayerConnected(killerid))
        {
            if(PlayerInfo[killerid][pLeader] == 8 || PlayerInfo[killerid][pMember] == 8)
            {
                if(GoChase[killerid] == playerid)
                {
                    new killer[MAX_PLAYER_NAME];
                    GetPlayerName(killerid, killer, sizeof(killer));
                    GivePlayerCash(killerid, PlayerInfo[playerid][pHeadValue]);
                    format(string,128,"<< Assasin %s a omorat pe %s si a primit $%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
                    SendFamilyMessage(8, COLOR_YELLOW, string);
                    SendClientMessage(playerid,COLOR_YELLOW,"<< Nimic personal. Cineva a pus un contract pe tine si asasinul l-a indeplinit >>");
                    PlayerInfo[playerid][pHeadValue] = 0;
                    GotHit[playerid] = 0;
                    GetChased[playerid] = 999;
                    GoChase[killerid] = 999;
                }
            }
        }
    }
Reply
#2

Try it in this kind of function:

pawn Код:
GivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]);
Reply
#3

This is not the solution! I think the server don't know where is victim and where is assasin
Reply
#4

Somewhere in your script, pHeadVaule is automatically returning zero.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)