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


Messages In This Thread
When a hitman kills you, you loose the Contract Amount (And a message) - by marszim - 03.05.2009, 16:30
Re: When a hitman kills you, you loose the Contract Amount (And a message) - by rensfromrpas - 03.05.2009, 17:39
Re: When a hitman kills you, you loose the Contract Amount (And a message) - by marszim - 03.05.2009, 17:44

Forum Jump:


Users browsing this thread: 2 Guest(s)