Jump to content

How to make a Referral System


MRThinker

Recommended Posts

Hello to all

 
Please help me build a referral system
 
I want to make sure that each player sends another player to the server with a referral and receives a prize
 
And have commands like / myref.
 
For example
Server: Your Referral Number is 10
 
my referral is 10
 
Quick thanks for help. Thank you all
Link to comment
58 minutes ago, MRThinker said:
my referral is 10
 

you should use sql functions like executeSQLQuery

dbConnect

dbQuery

dbPoll

dbExec

dbFree

and link the referral id with account name

and use addCommandHandler

to check if player have any prizes +_+

etc

Edited by Master_MTA
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...