[FS] Achievements 0.9 -
bogeymanEST - 23.11.2009
Achievements
0.9
About- 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
Changelog
Adding achievements
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;
}
3)Restart the filterscript
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
Re: [FS] Achievements 0.9 - [03]Garsino - 23.11.2009
Nice^^
Xbox style lol
Re: [FS] Achievements 0.9 -
bpeterson - 23.11.2009
OFF: ohai bogey & Garsino
ON: Good job!
Re: [FS] Achievements 0.9 -
Striker_Moe - 23.11.2009
Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/hesoyam", true))
{
UpdateAchievement(playerid, "secretcommand1", 1);
return true;
}
return false;
}
-> Server crashes
My line inside the .txt:
secretcommand1|Secret command 1|Find out a secret command|1
Re: [FS] Achievements 0.9 -
Kyle - 23.11.2009
Really good coding
Top quality script release!
I wish that you could just also make a non mysql version caus some servers run without using mysql
Re: [FS] Achievements 0.9 -
elvago - 23.11.2009
WTF
Re: [FS] Achievements 0.9 -
Matthew_Murdoch - 23.11.2009
Non-mySQL version ? ? You mind making it?
Re: [FS] Achievements 0.9 - [03]Garsino - 23.11.2009
Quote:
Originally Posted by euRo`
Non-mySQL version ? ? You mind making it?
|
+1
Re: [FS] Achievements 0.9 -
miokie - 23.11.2009
Good job, I made something liek this not to long ago.
Re: [FS] Achievements 0.9 -
bogeymanEST - 24.11.2009
Thanks for your comments
I've added a DJson version to the script
Re: [FS] Achievements 0.9 -
DiddyBop - 20.01.2010
World of warcraft, or xbox M0de on samp ftw?
Re: [FS] Achievements 0.9 -
Rac3r - 20.01.2010
Excellent, reminds me of Modern Warfare 2.... I've always wanted something like this at AX.
Niceone bogeyman_EST, very useful and unique.
EDIT: I'm not a fan of filterscripts, I've added this into my mode so it can quickly get racing stats without switching data from FS to GM to FS.
Код:
#define AWARDS //by bogeyman_EST
We have a credits command so people can see you created the achievements.
Tested and it working well, adding new achievements is really simple too... This is a great release.
Re: [FS] Achievements 0.9 -
»»»Hakam - 06.02.2010
Nice filterscript. Tested it works well.
~Hakam.
Re: [FS] Achievements 0.9 -
NewYorkRP - 06.02.2010
I'm sure this could easily be done WITHOUT MySQL. (Just saves into your user file..)
Re: [FS] Achievements 0.9 -
bogeymanEST - 07.02.2010
Quote:
Originally Posted by NewYorkRP
I'm sure this could easily be done WITHOUT MySQL. (Just saves into your user file..)
|
There's a DJSON version in the post...
Re: [FS] Achievements 0.9 -
WillyP - 08.07.2010
nice