23.11.2009, 14:57
Achievements
0.9
About0.9
- Easily create, manage and update achievements(examples included)
- Uses MySQL to save - could be used to create achievement progress images/pages (example included)
- Unlimited number of achievements
- 0.9
Initial release.
To add new achievements:
1)Create a new line in achievements.txt with the following format:
short name|full name|description|required
Example:
florist|Florist|Kill 500 players with flowers|500
2)Add UpdateAchievement(<playerid>, "<short name>", <increase by>); to the script to increase a player's progress.
Example:
pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
if(reason == WEAPON_FLOWER) UpdateAchievement(killerid, "florist", 1);
return 1;
}
Download
Pastebin (MySql FS only):
http://bogeyman.pastebin.com/f7d837b21
Solidfiles (FS, achievements.txt and PHP example):
Requires the MySql plugin
Solidfiles (FS(DJson version) and achievements.txt)
Requires DJson
Report bugs(if any) or suggest new features!
Have fun,
bogey