When a hitman kills you, you loose the Contract Amount (And a message)
#1

Код:
	if(PlayerInfo[playerid][pHeadValue] > 0)
	{
	  if(IsPlayerConnected(killerid))
	  {
		  if(gTeam[killerid] == 10 || PlayerInfo[killerid][pLeader] == 8 || PlayerInfo[killerid][pMember] == 8)
		  {
		    if(GoChase[killerid] == playerid)
		    {
		      //ConsumingMoney[killerid] = 1;
					new killer[MAX_PLAYER_NAME];
					GetPlayerName(killerid, killer, sizeof(killer));
					SafeGivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]);
					format(string,128,"<< Hitman %s has fulfilled the contract on %s and collected $%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
					SendFamilyMessage(8, COLOR_YELLOW, string);
          SafeGivePlayerMoney(playerid, -PlayerInfo[playerid][pHeadValue]);
					PlayerInfo[playerid][pHeadValue] = 0;
					GotHit[playerid] = 0;
					GetChased[playerid] = 999;
					GoChase[killerid] = 999;
				}
			}
		}
	}
This above, makes the person loose the hit amount.. but it doesn't say on there screen how much they lost when they got killed..

Can anyone fix it for me?, or tell me how to?

Thanks
Reply
#2

What the HEll Makes you think you need 2 topics for the same thing?
Reply
#3

this is a different thing i need it when you get killed by a hitman.. it says a message and how much you lost.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)