Files

> > CS2D > Lua Scripts > Score & Deaths register
Files overviewCS2D overviewLua Scripts overview

English Score & Deaths register >

19 comments855 b, 419 Downloads

old Score & Deaths register

GeoB99
Moderator Off Offline

Some days ago, someone suggested in thread cs2d Ideas for CS2D - READ THE FIRST POST (OP)! (98 entry) about seeing the score and deaths of a player while he's in Spectator team. Currently you cannot see it by default and since there's a way to implement such idea I decided to make it.

spam Documentation

This script basically registers the player's data (Score & Deaths) every time when he gets killed or killed an enemy. Also, the player's data will regain back when the player joins back into the team as to avoid the data being lost. For further information, you can see the details about this script below:

• Lightweight and simplistic in its own shape (67 lines of chunk code);
• Uses local for Player table to avoid any conflict between other tables with the same name;
• sv_scorespec command to check the player's data;
• You're able to check the player's data as long if he's spectator (frankly, it doesn't make sense to check the data since you already see it in the Score Board).

In order to check a specific player's data, here's the following syntax below.
sv_scorespec <id>

Whose the parameter <id> belongs to the player's number ID.

off-topic Installation

1. Extract the Register.lua from the zipped package through sys/lua path directory.
2. Go through server.lua file and type the following dofile() below:
dofile("sys/lua/Register.lua")


illegal Rules & Permission

You can do anything you want to with this file, moreover you can also upload it here (such as a better version of it) as long you ask me for the permission.
edited 3×, last 30.10.16 01:18:42 pm
Approved by Sparty

Download Download

855 b, 419 Downloads

Comments

19 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

GeoB99
Moderator Off Offline

@user Hajt: Good question. I thought of that before but in the end I chose the method of arrays to store the data since whether you choose the arrays or the suggestion you've mentioned you get the same result (the concept might differ).

old

Hajt
User Off Offline

Why you store score/deaths in an array instead of use
player(TargetID, "score")
?

Player's data always regain back when a player joins back into the team.

old

P_206
BANNED Off Offline

Actually , i saw a lot of scripts like this but this one looks okay.
I like it!

old

Masea
Super User Off Offline

@user Gaios: How you figure it out? Interesting.
I like it!

old Good Work

Miqavilli
BANNED Off Offline

√ No errors
√ Thanks
√ Worked Correctly
• Thanks but you need upgrade your scripts skill
INFO
@user GeoB99: I'm not provoke you but just i give you advice's.
I like it!

old

Xej
User Off Offline

Neat and useful.
I like it!

old

Nekomata
User Off Offline

Useful for certain gamemodes.
I like it!

old

P_206
BANNED Off Offline

Okay , This is your second File , I appreciate your work.
I like it!

old

Yates
Reviewer Off Offline

user 1uP has written
I dont see why this could be necessary for competitive gamemode

He never implied that. I don't see why this was useful to add to your comment.

old

1uP
User Off Offline

I dont see why this could be necessary for competitive gamemode, but its good anyways
I like it!

old

Marcell
Super User Off Offline

Great Work ZxC
I like it!

old

Gaios
Reviewer Off Offline

I finally understand the idea of this script.
I like it!

old

GeoB99
Moderator Off Offline

@user Lobwver: The script uses cs2d lua hook say hook for data checking so in other words it's a say command than a console based one.

old

Lobwver
User Off Offline

user saint- The idea of mah man

Btw it should be added on standard...
Also sv_scorespec is a "say" command? or a console command?
I like it!

old

K1ckBoxing
User Off Offline

although I download forbade me like
I like it!

old

Dousea
User Off Offline

user Avo has written
Fancy and neatly written?
I like it!

old

sonkii
User Off Offline

Good.Vote for apporved!
I like it!

old

Avo
User Off Offline

Fancy and neatly written
I like it!
To the start Previous 1 Next To the start