SA-MP Forums Archive
getting some wage? - 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: getting some wage? (/showthread.php?tid=457185)



getting some wage? - absolute - 09.08.2013

hey guys , i'm wondering if its possible to get some wage when the player plays on casino ?
for example the player wins 100k and the casino gets 1k as wage .


Re: getting some wage? - absolute - 10.08.2013

BUMP


Re: getting some wage? - BullseyeHawk - 10.08.2013

It's all about the script.
It is possible, you just need to make it a script to act like that.

CasinoWinMoney = (PlayerWinMoney / 10);
PlayerWinMoney -= CasinoWinMoney;

And then you just add it towards the business/player.


Re: getting some wage? - absolute - 10.08.2013

Quote:
Originally Posted by BullseyeHawk
Посмотреть сообщение
It's all about the script.
It is possible, you just need to make it a script to act like that.

CasinoWinMoney = (PlayerWinMoney / 10);
PlayerWinMoney -= CasinoWinMoney;

And then you just add it towards the business/player.
aha, got it thx bro