05.03.2012, 14:48
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;
}
}
}
}