[FilterScript] [FS] Achievements 0.9
#1

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
  • 0.9
    Initial release.
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
Reply
#2

Nice^^

Xbox style lol
Reply
#3

OFF: ohai bogey & Garsino

ON: Good job!
Reply
#4

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
Reply
#5

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
Reply
#6

WTF
Reply
#7

Non-mySQL version ? ? You mind making it?
Reply
#8

Quote:
Originally Posted by euRo`
Non-mySQL version ? ? You mind making it?
+1
Reply
#9

Good job, I made something liek this not to long ago.
Reply
#10

Thanks for your comments
I've added a DJson version to the script
Reply
#11

World of warcraft, or xbox M0de on samp ftw?
Reply
#12

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.
Reply
#13

Nice filterscript. Tested it works well.

~Hakam.
Reply
#14

I'm sure this could easily be done WITHOUT MySQL. (Just saves into your user file..)
Reply
#15

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...
Reply
#16

nice
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)