Raised This Month: $12 Target: $400
 3% 

Achievements


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   ConnorMcLeod (74)
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 02-05-2011 , 15:44   Achievements
Reply With Quote #1

Achievements

Version 2.2

by Pastout!!
Introduction:
Any kill you get with a gun adds a point to the weapon.
Each weapon has its max points to unlock it. The more kills
you get the quicker you unlock the Achievement.

Weapon Achiements:
    • God of War - Get a total of 10,000 Kills -
    • Pistol Master - Unlock All Pistols -
    • Rifle Master - Unlock All Rifles -
    • Shotgun Master - Unlock All Shotguns -
    • Spray and Pray - Get a Kill while being flashed -
    • Master At Arms - Unlock All the weapons -
    • And each weapon has its own achievement!

Other Achiements:
    • Ultimate Server Lover - Connect 1000 times to the server -
    • Boom Head-Shot - Get a total of 300 Headshots -
    • Distance Killed - Unlock All killed distances
    • Distance Walked - Unlock All walked distances -
    • OMFG that was close - Defuse bomb right before it explodes
    • Short Fuse - Plant the Bomb Within 25 seconds of round start -
    • Boomala Boomala - Plant the bomb of a total of 100 times -
    • Nothing Can Blow Up - Get a total of 400 bomb defuses -
    • And There are many more
Custom Achiements:
      • Play Around - Spend 1 Hour playing on the Server -
      • Stand Alone - Die 15 times as the last guy on the team -
      • 1 Hp Hero - Kill a enemy while having 1 HP -
      • Bad Friend - Kill 5 teammates in one round -
      • Urban Designer - Spray 300 decals -
      • Graffiti Is My Second Name - Spray 8 times in one round -
      • Ammo Conservation - Kill two enemy players with a single bullet -
      • Fly Away - Kill an enemy while he is in air -
      • Reloader - Reload your weapon 1000 times -
      • Camp Fire - Kill 3 enemies in a row, all within the same area -
      • Hat Trick - Kill 3 enemies with one HeGrenade -
      • Cowboy Diplomacy - Rescue 100 hostages -
Client Commands:
  • say /ach OR say /achievement
- Brings up the achievement Menu.
- In that menu, you can see your current achievement points, see a help screen for how this mod works, open a menu designated for each upgrade, or see the achievement levels of other players in the server.
  • say /deathmessage
- This will enable/disable the chat view of peoples death.
If ach_deathmessage is 1.

Cvars:
  • ach_enable 1/0
    - Default: 1
  • ach_showinfo 1/0
    - Shows the plugin information.
    - Default: 1
  • ach_deathmessage 1/0
    - This displays a message "Player has killed Or Headshot OtherPlayer from a distances of 1337 feet". etc
    - Default: 1
  • ach_flashmessage 1/0
    - This displays a message "Player is full/semi flashed and kill OtherPlayer..." etc.
    - Default: 1
  • ach_bombmessage 1/0
    - This displays a message "Player is planting the bomb" or "Player has planted the bomb" etc.
    - Default: 1
Plugin Configurations:
Open the .sma file, and edit this if you want sql:
Uncomment this in the sma.
//#define USING_SQL

When you are done, save the .sma and compile it here:
http://www.amxmodx.org/webcompiler.cgi
If you are getting compiler errors that don't make sense or the site is slow, you can use this one:
http://webcomp.ak-team.com/
Plugin Requirements:
  • Steam
  • AMX Mod X 1.8.0 or higher
    If you are having problems, please use the latest version of AMXX
  • CStrike Addon
  • Engine Module
  • Fakemeta Module
  • Hamsandwich Module
  • CSX Module
  • Fun Module
  • XS Include
  • If using SQL:

  • - SQLx Module
    If not using SQL:
    - NVault Module
Changelog:
HTML Code:
Version 1.0 
Initial Release
 
Version 1.1
Fix menu Bug
 
Version 1.2 
Added More Achievements
Added Hamsandwich Module
 
Version 1.3  
Optimized 
Fix a bug with Standing achievement
 
Version 1.4 
Optimized 
Fix a bug SQL
Change the layout of help menu See "achievements.txt" for more details
 
Version 1.5 
Optimized - No more Client_Prethink 
Added a Hostage Achievement suggested by tuty
Fix a glitch with the 1 shot 2 kills achievement
 
Version 1.6 
Optimized
 
Version 1.7 
Optimized & Change the max value for Smoke and Flash
 
Version 1.8 
Fix a bug with the Max Load for the weapons.
 
Version 1.9 
Fix a bug when defusing the bomb achievement
Updated the Achievement Menu looks alot better
Optimized.
 
Version 2.0
Added More Achievements
* Cowboy Diplomacy - Rescured 100 hostages
*You've Made Your Points - Earn 50,000 damage points
Notes:
Please post all suggestions, comments, or improvements you may have.
Do not say anything about Non-Steam support because you will be ignored.
Attached Files
File Type: zip cstrike.zip (75.8 KB, 3955 views)
File Type: sma Get Plugin or Get Source (Achievements_v1.9.sma - 2552 views - 70.8 KB)
File Type: sma Get Plugin or Get Source (Achievements_v2.0.sma - 5349 views - 73.0 KB)

Last edited by Pastout; 11-16-2013 at 08:16.
Pastout is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 02-05-2011 , 15:57   Re: Achievements
Reply With Quote #2

Good job! WIll definetely use this.
bibu is offline
stevenisecko138
Senior Member
Join Date: Dec 2008
Location: CA
Old 02-05-2011 , 16:21   Re: Achievements
Reply With Quote #3

nice work
stevenisecko138 is offline
Send a message via AIM to stevenisecko138
bibu
Veteran Member
Join Date: Sep 2010
Old 02-05-2011 , 17:05   Re: Achievements
Reply With Quote #4

The achievement menu is bugged, it somestimes shows nothing, sometimes it shows my AMX Super Menu, lol.

Quote:
L 02/05/2011 - 23:04:21: Invalid menu id 0(2)
L 02/05/2011 - 23:04:21: [AMXX] Run time error 10 (plugin "achievements.amxx") (native "menu_display") - debug not enable
bibu is offline
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 02-05-2011 , 17:20   Re: Achievements
Reply With Quote #5

Quote:
Originally Posted by bibu View Post
The achievement menu is bugged, it somestimes shows nothing, sometimes it shows my AMX Super Menu, lol.
Updated fix bug
Current version 1.1
Pastout is offline
TzK
Member
Join Date: Apr 2010
Old 02-05-2011 , 17:24   Re: Achievements
Reply With Quote #6

If you would make web part for this, it would be awesome : )
TzK is offline
Send a message via Skype™ to TzK
.MMYTH.
BANNED
Join Date: Sep 2010
Location: Brasil - RS
Old 02-05-2011 , 17:50   Re: Achievements
Reply With Quote #7

Some people don't use local mysql, you have to see this, and don't make connection on plugin_precache and yes in plugin_init.
.MMYTH. is offline
Send a message via MSN to .MMYTH.
NucL3ra
Veteran Member
Join Date: Sep 2008
Location: Bucuresti , Romania
Old 02-05-2011 , 17:59   Re: Achievements
Reply With Quote #8

Holy crap, this is so amazing seriously. Achivements into CS 1.6 is so cool, make more of them, add SQL (best option) and make cool rewards!
NucL3ra is offline
Send a message via Yahoo to NucL3ra
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 02-05-2011 , 18:01   Re: Achievements
Reply With Quote #9

Quote:
Originally Posted by .MMYTH. View Post
Some people don't use local mysql, you have to see this, and don't make connection on plugin_precache and yes in plugin_init.
why in plugin_init ?
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
.MMYTH.
BANNED
Join Date: Sep 2010
Location: Brasil - RS
Old 02-05-2011 , 18:03   Re: Achievements
Reply With Quote #10

for optimize
PHP Code:
#if defined USING_SQL
g_sql_tuple SQL_MakeStdTuple()
SQL_ThreadQuery(g_sql_tuple"QueryCreateTable""CREATE TABLE IF NOT EXISTS ^"Achievement^" ( ^"name^" VARCHAR(32) NOT NULL, ^"authid^" VARCHAR(35) NOT NULL, ^"data^" VARCHAR(256) NOT NULL );" )
#else
g_iVault nvault_open("Achievements")
if(
g_iVault == INVALID_HANDLE)
    
set_fail_state"Error opening nVault" )
#endif 
And I think then don't save 'player' achievements.

Last edited by .MMYTH.; 02-05-2011 at 18:06.
.MMYTH. is offline
Send a message via MSN to .MMYTH.
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

Forum Jump


All times are GMT -4. The time now is 05:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode