Player doesnt loose money after hitman kill.
#1

After the hitman furfills the hit, the hitman gets the money, but the player doesnt loose the money. I couldnt figure out how to fix it so I decided to post it here..

Code.
Код:
		            ConsumingMoney[killerid] = 1;
					new killer[MAX_PLAYER_NAME];
					GetPlayerName(killerid, killer, sizeof(killer));
					GivePlayerMoney(killerid, (PlayerInfo[playerid][pHeadValue] / 2));
					format(string,128,"<< Hitman %s has fulfilled the contract on %s and collected $%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
					SendFamilyMessage(8, COLOR_YELLOW, string);
					format(string,128,"<< A Hitman has Fullfilled the Contract that was placed on you, You now have lost $%d. >>", (PlayerInfo[playerid][pHeadValue] / 2) );
					SendClientMessage(playerid, COLOR_RED, string);
					PlayerInfo[playerid][pHeadValue] = 0;
					GivePlayerMoney(playerid, -(PlayerInfo[playerid][pHeadValue] / 2));
					GotHit[playerid] = 0;
					GetChased[playerid] = 999;
					GoChase[killerid] = 999;
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)