Making a Voucher system - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Making a Voucher system (
/showthread.php?tid=209271)
Making a Voucher system -
IndoScripter - 10.01.2011
Hey i need to make a voucher system
What is it?
So A buys a voucher from me
voucher is a code
so when he type /thecode
then he will get certain money
then the code will be automaticly deleted
Re: Making a Voucher system -
Mr.Stranger - 10.01.2011
what are you trying to say. If you don't know English than write in your own language
Re: Making a Voucher system -
JamesC - 10.01.2011
Quote:
Originally Posted by Mr.Stranger
what are you trying to say. If you don't know English than write in your own language
|
then write in your own language.*
@OP:
For the buy command, use SetPVarInt and minrand by ****** to set the player's voucher variable to a random x digit number.
Then make a /redeem command which checks the entered param with the voucher saved in the player's voucher variable.
pawn Код:
stock minrand( min, max ) // ******
{
return random( max - min ) + min;
}