20.05.2017, 11:48
You can create an array as you said
And then set it to 1 if it's unlocked and to 0 if it's not
Then you can use either MySQL or INI, depends on what you're server is using.
For MySQL you have to create a Column, let's say
Why 312?
Because that's the number of skin available.
Код:
#define MAX_SKINS 312 new unlockedSkin[MAX_PLAYERS][MAX_SKINS]; //This is meant to be a string
Код:
unlockedSkin[playerid][SkinID] = '1'; //unlocked keep in mind we're using a string unlockedSkin[playerid][SkinID] = '0'; //locked keep in mind we're using a string
For MySQL you have to create a Column, let's say
Код:
unlockedSkin | VARCHAR(312)
Because that's the number of skin available.