Making a Voucher system
#1

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
Reply
#2

what are you trying to say. If you don't know English than write in your own language
Reply
#3

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;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)