How to Script Donoations
Essay by Lettuce420 • September 25, 2017 • Case Study • 336 Words (2 Pages) • 1,081 Views
First, it will be a sponsorship/mentoring script
A player can add other player as a sponsored, the conditions are: the sponsored need to be lvl 3 maximum (I forgot the darkrp level function to retrieve level of a player, but it’s really simple to find this)
The sponsored will directly receive 20000$ and 3 days of donator rank (the command is: ulx tempadduserid SteamID donateur 4320 user ) (without waiting level 10)
A POPUP is needed for the sponsored, because the sponsored need to accept to be sponsored, just a box with do you want to be blabla etc yes / no
the sponsor has a “grid” of gift, but a sponsored player will only be counted when he become lvl 10 (important) :
1 sponsored player = 20 000$ + 3 days of donator
2 sponsored player = 20 000$
3 sponsored player = 5 days of donator (the command is: ulx tempadduserid SteamID donateur 7200 user )
4 sponsored player = 20 000$
5 sponsored player = 50 000$ + 5 days of donator (the command is: ulx tempadduserid SteamID donateur 7200 user )
6 sponsored player = 30 000$
7 sponsored player = 50 000$
8 sponsored player = 75 000$ + 7 days of donator (the command is: ulx tempadduserid SteamID donateur 10080 user )
9 sponsored player = 100 000$ + 7 days of donator (the command is: ulx tempadduserid SteamID donateur 10080 user )
10 sponsored player = lifetime donator ( ulx adduserid SteamID donateur )
The interface can be very simple… you can do just a cmd like “/parrainer SteamID” (parrainer is sponsoring, in french)
and maybe a cmd to know the number of sponsored player we have like “/parrain” (number counted (lvl 10 or more) and the actually uncounted)
So it need to be stored in the server or by doing a SQL Based Script (what i’ll prefer to see directly who’s sponsored who etc”)
So do SQL or do an interface for admin to see sponsored/sponsorship
Bugs to avoid: A player can be sponsored more than an once (I don’t want this)
...
...