Donator 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: Donator system (
/showthread.php?tid=273646)
Donator system -
Kingunit - 02.08.2011
<fixed>
Re: Donator system -
Tigerkiller - 02.08.2011
did you have a login/register system?
Re: Donator system -
Kingunit - 02.08.2011
<fixed>
Re: Donator system -
Tigerkiller - 02.08.2011
you must load/save your donate files see under onplayerconnect an onplayerdisconnect
Re: Donator system -
Shockey HD - 02.08.2011
Theres more to this as you think. Its not only adding it to the Enum
Re: Donator system -
Calgon - 02.08.2011
As long as you add the variable to your enum, reset the value when a player connects (from the old variable), load the value when a player connects and save it when they disconnect, you're fine.
Most file systems will add the new 'donator' variable you've made when you save the character's file from your SA-MP server, if you add your variable to the saving sequence.
Re: Donator system -
Kingunit - 02.08.2011
<fixed>
Re: Donator system -
Kingunit - 02.08.2011
<fixed>
Re: Donator system -
Tigerkiller - 02.08.2011
no problem