Will this make it so a player can rob 5% of the other players money?
#1

new cash = GetPlayerMoney(pID);
new Floatteal = cash * 0.05;


and
GivePlayerMoney(playerid, floatround(steal));
Reply
#2

Try and you'll see, no?

Give a player 100$, then rob him, if you rob him 5$, then it works, if not, it doesn't.
Reply
#3

Yes, this will most probably do it
Reply
#4

Just test it and you'll see. If it doesn't work, just use the simpliest way, by getting the money * 5 / 100.
Reply
#5

Quote:
Originally Posted by Dwane
Посмотреть сообщение
just use the simpliest way, by getting the money * 5 / 100.
Thats what he did. He just simplified it more.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)