Files

> > CS2D > Lua Scripts > Additional Parameter 'HASH' to Player()
Files overviewCS2D overviewLua Scripts overview

English Additional Parameter 'HASH' to Player() >

22 comments621 b, 493 Downloads

old Additional Parameter 'HASH' to Player()

Apache uwu
User Off Offline

It's very simple.

1
msg(player(id,"hash"))

However if you are the host of the game and you try to display the hash of id#1 it will instead show "UNKNOWN".

This should be used as a file integrity check, do not ban by hash.

I have added a simple test, you just need to say "what's my hash" and the game will return a msg2 to you.

IMPORTANT! DO NOT ADD ANY HOOKS AFTER HOOK_LOG THIS WILL CRASH YOUR GAME.

Instead write your hooks before:

1
2
addhook("hookbefore","hookbefore")
addhook("log","_log")
edited 3×, last 11.08.11 04:52:02 am
Approved by Seekay

Download Download

621 b, 493 Downloads

Comments

22 comments
Page
To the start Previous 1 2 Next To the start

Log in!

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

old

Apache uwu
User Off Offline

Well my understanding is that to run certain cheats you do need to modify the cs2d executable to turn off cheat detection.

And I also know that cs2d does allow every hash to join. I'm going to find out the hashes for the mac/linux & windows hash. (Windows archive&windows setup are the same.)

old

PeterToman
COMMUNITY BANNED Off Offline

Lol
4/5 = very good
1/5 = bad
This script is too simple, but also useful.
I like it!

old

Banaan
User Off Offline

Wouldn't the server automatically check for invalid hashes? And cheats don't modify the executable itself, right? And, win setup, win archive, linux & mac all have different hashes, but are all legit.

old

Infinite Rain
Reviewer Off Offline

Wow perfect!
You made it just with lua?
Or with others PL?
I like it!

old

EngiN33R
Moderator Off Offline

An anti-cheat system looks like the most practical use for this script. Good job!
I like it!

old Interesting

Cirium
User Off Offline

Nice Idea, Its a cool script, and works well.

Im just not to sure what to use it for
I like it!

old

Apache uwu
User Off Offline

To verify file integrity, if I'm right, banning every hash besides the original should keep the hackers away.

old

Infinite Rain
Reviewer Off Offline

what is hash?
Explain it
I like it!

old

Apache uwu
User Off Offline

If the has is used to check file's md5 then yeah that should work. Of course it's simple, but bad? Please explain how this file is bad.

old @94muzo94

buraxia3
User Off Offline

Then why don't think thinked it, idiot?
I like it!

old

MuzraF
User Off Offline

okay it is easy and good ; 4/5
I like it!
edited 1×, last 11.08.11 09:26:54 am

old

Ax3
User Off Offline

So it's possible to make an anti-cheat system?

old

Apache uwu
User Off Offline

So since this could be used to verify malformed exes...you can ban people who don't have that hash?So since this could be used to verify malformed exes...you can ban people who don't have that hash?

old

dizziness
User Off Offline

@Banaan Nice Information, I will never use this lua ... brr like ban global

old

Banaan
User Off Offline

Don't use this to ban players!

People share hashes. The hash is used to verify the client version, so everybody who has installed CS2D with the windows setup will have the same hash, everybody who downloaded the windows zip client will have the same hash, etc.

Nice idea, except banning one hash will mean you ban almost everybody.

Just check your hash, I'm sure it'll be 28cefe3ac30ab30ab5268978955263db2736128. Like most other people.

old

dizziness
User Off Offline

For what this lua script? Looks like from the screenshot it like a MD5, Am i correct?

old

Apache uwu
User Off Offline

Textual Context has written
However if you are the host of the game and you try to display the hash of id#1 it will instead show "UNKNOWN".


This is for a dedicated server or for other people who join your listen server.

@danielmen123 lol not ontopic, however to answer your question: I don't play CS2D--I enjoy modifying it though.

old

danielmen123
User Off Offline

Wi Textual Context What is Your Name in cs2d
please contect
I like it!

old

Bowlinghead
User Off Offline

Everytime its new...
But anyway what brings that script?
Say: "What's my hash"
Display: UNKNOWN

I dont know what is so good if you know that your hash is "UNKNOWN"...

old

RAVENOUS
BANNED Off Offline

Wow, very nice. Indeed a new way to ban some people by using their (I hope unique) hash code. nice
I like it!
To the start Previous 1 2 Next To the start