GivePlayerMoney - 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: GivePlayerMoney (
/showthread.php?tid=485910)
GivePlayerMoney -
AustinWeerdGuy - 06.01.2014
Hello, can someone write the follow GivePlayerMoney code for this:
They will get money random from 50k-200k!
Can someone write the GivePlayerMoney code for that?
Thanks!
Re: GivePlayerMoney - Patrick - 06.01.2014
No problem, but you could learn it your self or search before you ask I am sure there is a lot of question on forums that you could see.
pawn Код:
#include <a_samp>
#define RandomEx(%0,%1) \
(random((%1) - (%0)) + (%0))
//Put this code where you want the money to be given.
GivePlayerMoney(playerid,RandomEx(50, 200));
Re: GivePlayerMoney -
[SU]Spartan - 06.01.2014
How about every 5 minutes the server gives automatically 10 score?