ACHIEVEMENT SYSTEM AGAIN - 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)
+--- Thread: ACHIEVEMENT SYSTEM AGAIN (
/showthread.php?tid=643882)
ACHIEVEMENT SYSTEM AGAIN -
RoyalEmpire - 29.10.2017
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
Re: ACHIEVEMENT SYSTEM AGAIN -
10MIN - 29.10.2017
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)
Re: ACHIEVEMENT SYSTEM AGAIN -
RoyalEmpire - 29.10.2017
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