SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 23/11/2009, 02:57 PM   #1
bogeymanEST
Big Clucker
 
Join Date: Sep 2007
Posts: 149
Reputation: 2
Default [FS] Achievements 0.9

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
bogeymanEST is offline   Reply With Quote
Old 23/11/2009, 03:15 PM   #2
[03]Garsino
Guest
 
Posts: n/a
Default Re: [FS] Achievements 0.9

Nice^^

Xbox style lol
  Reply With Quote
Old 23/11/2009, 03:19 PM   #3
bpeterson
Banned
 
Join Date: Dec 2008
Posts: 209
Reputation: 0
Default Re: [FS] Achievements 0.9

OFF: ohai bogey & Garsino

ON: Good job!
bpeterson is offline   Reply With Quote
Old 23/11/2009, 03:51 PM   #4
Striker_Moe
Gangsta
 
Join Date: Apr 2009
Posts: 569
Reputation: 1
Default Re: [FS] Achievements 0.9

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
Striker_Moe is offline   Reply With Quote
Old 23/11/2009, 03:53 PM   #5
Kyle
High-roller
 
Join Date: Mar 2009
Location: United Kingdom
Posts: 2,262
Reputation: 347
Default Re: [FS] Achievements 0.9

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
__________________
Kyle is offline   Reply With Quote
Old 23/11/2009, 05:07 PM   #6
elvago
Gangsta
 
elvago's Avatar
 
Join Date: Jan 2009
Location: 127.0.0.1
Posts: 510
Reputation: 0
Default Re: [FS] Achievements 0.9

WTF
__________________

Todo termina...
Playing Summoners War [Global Server]. (IGN: zTyLe) Ch: 106

Im still here, but, u can't see me.
elvago is offline   Reply With Quote
Old 23/11/2009, 07:57 PM   #7
Matthew_Murdoch
Huge Clucker
 
Join Date: Oct 2007
Posts: 450
Reputation: 0
Default Re: [FS] Achievements 0.9

Non-mySQL version ? ? You mind making it?
Matthew_Murdoch is offline   Reply With Quote
Old 23/11/2009, 09:08 PM   #8
[03]Garsino
Guest
 
Posts: n/a
Default Re: [FS] Achievements 0.9

Quote:
Originally Posted by euRo`
Non-mySQL version ? ? You mind making it?
+1
  Reply With Quote
Old 23/11/2009, 10:14 PM   #9
miokie
High-roller
 
miokie's Avatar
 
Join Date: Jan 2007
Location: Bedfordshire, England
Posts: 1,148
Reputation: 13
Default Re: [FS] Achievements 0.9

Good job, I made something liek this not to long ago.
__________________
miokie is offline   Reply With Quote
Old 24/11/2009, 01:28 PM   #10
bogeymanEST
Big Clucker
 
Join Date: Sep 2007
Posts: 149
Reputation: 2
Default Re: [FS] Achievements 0.9

Thanks for your comments
I've added a DJson version to the script
bogeymanEST is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 05:56 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.