SA-MP Forums Archive
How to Make an Auto Refund - 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: How to Make an Auto Refund (/showthread.php?tid=375426)



How to Make an Auto Refund - [A]ndrei - 06.09.2012

How to Make an Auto Refund


Re: How to Make an Auto Refund - jeremy8810 - 06.09.2012

More information....
You want to send money to a player every hour?
or what do you mean?


Re: How to Make an Auto Refund - Vince - 06.09.2012

Please rename your topic to: How to screw up my server economy?


Re: How to Make an Auto Refund - [GF]Logic - 06.09.2012

Or better How can i handle my NGG edited script and give refunds instead of waiting for players to report for the refund.


Re: How to Make an Auto Refund - Mauzen - 07.09.2012

1. Look for the script part for registration. Probably somewhere in OnPlayerDialogResponse.
2. Find the point where registration is finished in there (you can tell that from the sent messages)
3. Add things like GivePlayerMoney, set his level etc after that.
4. See your playercount dropping hard within some days.
Done!


Re: How to Make an Auto Refund - Penki4a - 07.09.2012

look for OnPlayerConnect or OnPlayerSpawn callback and lets say if you have a pinfo enum do like:
pawn Код:
PlayerInfo[playerid][pMoney] = ammount//where change ammount with what you like
Or you can GivePlayerMoney(playerind, ammount); when the player spawns,this is the easyest way


Re: How to Make an Auto Refund - [A]ndrei - 07.09.2012

thxxxxxx