English Score & Deaths register icon

19 comments
11.06.16 11:31:31 am
like 14 like it!
855 b, 71 Downloads
Fraizeraust
Moderator
Offline Off
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.
Code:
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:
Code:
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.
imageimageimageimage
edited 3×, last 30.10.16 01:18:42 pm
ok This file has been reviewed and approved by Sparty (11.06.16 12:59:23 pm)

Comments

19 comments
Goto Page
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in
03.12.16 02:33:21 pm
Up
Fraizeraust
Moderator
Offline Off
@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).
02.12.16 05:54:15 pm
Up
Hajt
User
Offline Off
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.
24.07.16 10:12:58 am
like I like it!
Up
toysrus
BANNED
Offline Off
@user Fraizeraust: awsome !
08.07.16 09:57:44 pm
like I like it!
Up
P_206
BANNED
Offline Off
Actually , i saw a lot of scripts like this but this one looks okay.
02.07.16 09:39:17 pm
like I like it!
Up
Masea
Super User
Offline Off
@user Gaios: How you figure it out? Interesting.
02.07.16 09:36:56 pm
like I like it!
Up
Miqavilli
BANNED
Offline Off
√ No errors
√ Thanks
√ Worked Correctly
• Thanks but you need upgrade your scripts skill
INFO @user Fraizeraust: I'm not provoke you but just i give you advice's.
29.06.16 06:42:33 am
like I like it!
Up
Xej
User
Offline Off
Neat and useful.
29.06.16 12:08:20 am
like I like it!
Up
Nekomata
User
Offline Off
Useful for certain gamemodes.
28.06.16 09:16:07 am
like I like it!
Up
P_206
BANNED
Offline Off
Okay , This is your second File , I appreciate your work.
14.06.16 01:00:59 pm
Up
Yates
Reviewer
Offline Off
user 2LiveLegend1 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.
14.06.16 12:56:00 pm
like I like it!
Up
2LiveLegend1
User
Offline Off
I dont see why this could be necessary for competitive gamemode, but its good anyways
13.06.16 02:32:50 pm
like I like it!
Up
Marcell
Super User
Offline Off
Great Work ZxC
12.06.16 07:49:07 pm
like I like it!
Up
Gaios
Security Supporter
Offline Off
I finally understand the idea of this script.
11.06.16 08:47:34 pm
Up
Fraizeraust
Moderator
Offline Off
@user FDK: 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.
11.06.16 07:01:28 pm
like I like it!
Up
FDK
User
Offline Off
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?
11.06.16 06:27:50 pm
like I like it!
Up
K1ckBoxing
User
Offline Off
although I download forbade me like
11.06.16 03:43:17 pm
like I like it!
Up
Ortimh
User
Offline Off
user Avo has written:
Fancy and neatly written?
11.06.16 12:46:37 pm
like I like it!
Up
CyanBros
User
Offline Off
Good.Vote for apporved!
11.06.16 11:51:21 am
like I like it!
Up
Avo
User
Offline Off
Fancy and neatly written
To the start Previous 1 Next To the start