









I 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.
- - ==== [






- - ==== [ 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 ] ==== - -







- - ==== [ Rank Feature ] ==== - -




- - ==== [ Configuration Feature ] ==== - -


- - ==== [ Graph Statistics Feature ] ==== - -




- - ==== [ Sample - How to Create Statistics for a Player ] ==== - -



1
AddStats("Kills", "gfx/stats/stat/stat_kills.png",stat_kills_Variable,stat_kills_Variable,true)



1
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 ] ==== - -



1
AddAchievement("Body Bagger", GAMEMODE_ALL,"gfx/stats/a/body_bagger.jpg",{"Kill 25 enemies"},"BodyBagger",kill_BodyBaggerProcess)



1
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 ] ==== - -



1
AddOverallStatistics("Overall Statistics",OvalDescription)



1
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 ] ==== - -



















edited 25×, last 24.09.19 06:42:38 pm
Approved by DC
Download
3.12 mb, 1,720 Downloads