 UPDATE 2017/12/08
 UPDATE 2017/12/08





 UPDATE 2017/05/01
 UPDATE 2017/05/01 Multi-resolution support for CS2D (1.0.0.3v support)
 Multi-resolution support for CS2D (1.0.0.3v support) Removed Magic Bullet achievement due to performance issues
 Removed Magic Bullet achievement due to performance issuesI did contributions such as Zombie Plague, Super Hero, Gun Game and CS2D Lighting & Shadows Engine.
After being absent for a while I'm glad to say that for the last time I'm sharing with you my last CS2D contribution.
- - ==== [
 Attention - Note
 Attention - Note  ]  ==== - -
 ]  ==== - -
 If you have requests,suggestions, questions or bug reports - post them in this thread:
 If you have requests,suggestions, questions or bug reports - post them in this thread: 
  [RELEASED] Achievements and Statistics Script
 [RELEASED] Achievements and Statistics Script- - ==== [ Installation ] ==== - -
Downloaded ZIP archive includes GFX, SFX, SYS folders that must be overwritten in CS2D. In other words, you can simply extract it in CS2D folder.
- - ==== [ Script Features ] ==== - -
 73 achievements
 73 achievements 35 player statistics
 35 player statistics Interface allows to add new achievements and statistics
 Interface allows to add new achievements and statistics Pie charts & graphs for server statistics
 Pie charts & graphs for server statistics Ranks
 Ranks Configuration
 Configuration 7 different menus
 7 different menus- - ==== [ Rank Feature ] ==== - -

 25 ranks to achieve
 25 ranks to achieve Image for each rank
 Image for each rank Progress bar
 Progress bar- - ==== [ Configuration Feature ] ==== - -

 open "sys/lua/core/config.cfg" to modify features
 open "sys/lua/core/config.cfg" to modify features- - ==== [ Graph Statistics Feature ] ==== - -

 Graph curves
 Graph curves Pie charts
 Pie charts  Overall statistics menu
 Overall statistics menu- - ==== [ Sample - How to Create Statistics for a Player ] ==== - -
 First Step
 First Step Open "sys/lua/core/list_statistics.cfg"
 Open "sys/lua/core/list_statistics.cfg" Add function
 Add function1
AddStats("Kills", "gfx/stats/stat/stat_kills.png",stat_kills_Variable,stat_kills_Variable,true)
 Second Step
 Second Step Open "sys/lua/core/scripts/statistics_script_part3.cfg"
 Open "sys/lua/core/scripts/statistics_script_part3.cfg" Add following code
 Add following code1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
--==== KILLS STATISTICS ====--
function stat_kills(killer,victim)
	if (player(killer,"team") ~= player(victim,"team")) then
		IncreaseUserValue(killer,"Kills",1)
	end
end
function stat_kills_Variable(id)
	return( GetUserValue(id,"Kills"))
end
AddValue("Kills")
AddFunction("kill",stat_kills)
- - ==== [ Sample - How to Create Achievement ] ==== - -
 First Step
 First Step Open "sys/lua/core/list_achievements.cfg"
 Open "sys/lua/core/list_achievements.cfg" Add function
 Add function1
AddAchievement("Body Bagger", GAMEMODE_ALL,"gfx/stats/a/body_bagger.jpg",{"Kill 25 enemies"},"BodyBagger",kill_BodyBaggerProcess)
 Second Step
 Second Step Open "sys/lua/core/scripts/statistics_script_part3.cfg"
 Open "sys/lua/core/scripts/statistics_script_part3.cfg" Add following code
 Add following code1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
-- ==== Body Bagger Achievement
function kill_BodyBagger(killer,victim)
	if GetUserValue(killer,"Kills") > 24 then
		OpenUnlockAchievement(killer,"BodyBagger")
	end
end
function kill_BodyBaggerProcess(id)
	return(GetUserValue(id,"Kills") / 25)
end
AddFunction("kill",kill_BodyBagger)
- - ==== [ Sample - How to Create Server Statistics ] ==== - -
 First Step
 First Step Open "sys/lua/core/list_graphs.cfg"
 Open "sys/lua/core/list_graphs.cfg" Add function
 Add function1
AddOverallStatistics("Overall Statistics",OvalDescription)
 Second Step
 Second Step Open "sys/lua/core/scripts/graphs_scripts.cfg"
 Open "sys/lua/core/scripts/graphs_scripts.cfg" Add following code
 Add following code1
2
3
4
5
2
3
4
5
-- ==== Players Count Graph
function GraphPlayersCount()
	SetGraphGlobalVariable("Players Played",#player(0,"table") )
end
AddGlobalFunction("second",GraphPlayersCount)
-- ==== [ Global Server Statistics Functions ] ==== - -
- - ==== [ Credits ] ==== - -
 Yates - hosting official server and rank icons
 Yates - hosting official server and rank icons  
  Yates - Rank icons (26)
 Yates - Rank icons (26) Starkkz - Used a little bit of saving & loading code
 Starkkz - Used a little bit of saving & loading code  
  Stream functions library for Lua (14)
 Stream functions library for Lua (14) Crazyx - Location Mode
 Crazyx - Location Mode  
  Locmod 1.0 (0)
 Locmod 1.0 (0) Pagyra - Player statistics graphics
 Pagyra - Player statistics graphics EngiN33R - Suggestions & testing
 EngiN33R - Suggestions & testing Styx - pie chart suggestion & testing
 Styx - pie chart suggestion & testing Sparty - Testing & giving out ideas
 Sparty - Testing & giving out ideas GeoB99 - Testing
 GeoB99 - Testing TopNotch - Testing
 TopNotch - Testing KimKart - Testing
 KimKart - Testing Time - Testing
 Time - Testing VADemon - Testing
 VADemon - Testing _Yank -Testing
 _Yank -Testing edited 25×, last 24.09.19 04:42:38 pm
 Approved by DC 
 Download
 Download
		3.12 mb, 2,030 Downloads
		 Dynamic Achievements and Statistics Script (2.0)
  Dynamic Achievements and Statistics Script (2.0)  80 like it!
 80 like it! Offline
 Offline
 
				 
				 
				 
				 
				 
  1
 1 
