sell business - 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)
+--- Thread: sell business (
/showthread.php?tid=427037)
sell business -
Chrillzen - 31.03.2013
Yo, I want the player to receive cash when he sells his business, but I only want him to receive 50% of the price that he bought it for.
I have this atm.
pawn Код:
GivePlayerMoney(playerid, BusinessInfo[id][bPrice]);
Re: sell business -
Mystique - 31.03.2013
Код:
GivePlayerMoney(playerid, BusinessInfo[id][bPrice] / 2);
?
Re: sell business -
Abhishek. - 31.03.2013
pawn Код:
GivePlayerMoney(playerid,50/100*BusinessInfo[id][bPrice]);
?
Re: sell business -
Chrillzen - 31.03.2013
Thanks.