Dynamic Achievements and Statistics Script (2.0) 
105 comments28.11.15 03:43:30 pm

3.12 mb, 1,514 Downloads










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



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



Code:
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)
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 ] ==== - -



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



Code:
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)
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 ] ==== - -



Code:
1
AddOverallStatistics("Overall Statistics",OvalDescription)



Code:
1
2
3
4
5
2
3
4
5
-- ==== Players Count Graph
function GraphPlayersCount()
SetGraphGlobalVariable("Players Played",#player(0,"table") )
end
AddGlobalFunction("second",GraphPlayersCount)
function GraphPlayersCount()
SetGraphGlobalVariable("Players Played",#player(0,"table") )
end
AddGlobalFunction("second",GraphPlayersCount)
- - ==== [ Player Achievements & Statistics Functions ] ==== - -
-- ==== [ Global Server Statistics Functions ] ==== - -
- - ==== [ Credits ] ==== - -



















edited 25×, last 24.09.19 06:42:38 pm

Comments
105 commentsLog in!
You need to log in to be able to write comments!Log in

Need some help with it.. pressing the corrseponding buttons for this script interferes with The Admin Scrit 4.0.2 Final... Any help how to change the buttons?

No surprise actually. It's simple and amazing at the same time. It deserves more likes!
I love that graph-thingy especially, tho.
I love that graph-thingy especially, tho.
Wow, this got 50 likes less than in a week. Though the community is dead lately, that's the best result I got so far.

Hi im back on Unrealsoftware again. This Script is very Cool. Its probably the most professional for CS2D.
Wouldn't it be nice to have something similar as standard implementation for CS2D?
Wouldn't it be nice to have something similar as standard implementation for CS2D?

I once had this idea, then forgot it and... whatever, the work you've done is outstanding!

Love It.
So you did all Menus by making graphic, displaying them temporarily on the screen (mode 500) and you implement all the button features etc? Wow.
So you did all Menus by making graphic, displaying them temporarily on the screen (mode 500) and you implement all the button features etc? Wow.
So maybe it's admin script that is not working?
You may try other admin scripts:
The Admin Script v4.0.2 Final (342)
HC Admin Script 1.9.3 (226)
You may try other admin scripts:




edited 2×, last 15.10.18 01:14:08 pm

does not work I put this code in server.lua the control core and achievements script works so that the core control I am not admin but I already put my USGN in his script

Install this admin script and then in server lua dofile() the code of achievements script (sys/lua/core/core.lua)
30.11.15 04:43:55 pm

http://unrealsoftware.de/files_show.php?file=12823
i no have problems whit lua your script work and control core work
control core work i have usgn in the control core i no admin
i no have problems whit lua your script work and control core work
control core work i have usgn in the control core i no admin