ACHIEVEMENT SYSTEM AGAIN
#1

https://imgur.com/a/sFkT5
https://imgur.com/a/UjxxQ

Please check this pictures and tell me how can i make Achievement system based on images
like how can i make
Dialog on
onplayerclicplayer
with 2 options stats & achievements
so pls help me
Reply
#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
#3

Quote:
Originally Posted by 10MIN
Посмотреть сообщение
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)
bro, can you make 1 full achievement of death or Suicide
so i can copy your format and i can make for achievements by copying that pls sir

i need which is based on Dini because my script is based on Dini
so pls
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)