SA-MP Forums Archive
When a hitman kills you, you loose the Contract Amount (And a message) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: When a hitman kills you, you loose the Contract Amount (And a message) (/showthread.php?tid=75678)



When a hitman kills you, you loose the Contract Amount (And a message) - marszim - 03.05.2009

Код:
	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


Re: When a hitman kills you, you loose the Contract Amount (And a message) - rensfromrpas - 03.05.2009

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



Re: When a hitman kills you, you loose the Contract Amount (And a message) - marszim - 03.05.2009

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