ACHIEVEMENT SYSTEM AGAIN
#2

Create an array like Achievements[MAX_PLAYERS][enum_achievements], where enum_achievements have a structure like:
PHP код:
enum enum_achievements {
    
bool:thuglife,
    
bool:rulebreak,
    
bool:sweethome,
    
bool:BLABLABLA

and then when a player does something like buying a house, he will get the sweethome achievement by setting Achievements[playerid][sweethome] to true.

To show the achievements use a function that returns UnLocked/Locked like GetAchievementState(Achievement[playerid][sweethome]), and use it to format a string, and use it as text for a MessageBox Dialog.

PS: What happened to old thread? (https://sampforum.blast.hk/showthread.php?tid=643861)
Reply


Messages In This Thread
ACHIEVEMENT SYSTEM AGAIN - by RoyalEmpire - 29.10.2017, 15:44
Re: ACHIEVEMENT SYSTEM AGAIN - by 10MIN - 29.10.2017, 16:38
Re: ACHIEVEMENT SYSTEM AGAIN - by RoyalEmpire - 29.10.2017, 16:47

Forum Jump:


Users browsing this thread: 2 Guest(s)