Dateien

> > CS2D > Lua Scripts > Additional Parameter 'HASH' to Player()
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch Additional Parameter 'HASH' to Player() >

22 Kommentare621 b, 465 Downloads

alt 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")
3× editiert, zuletzt 11.08.11 04:52:02
Zugelassen von Seekay

Download Download

621 b, 465 Downloads

Kommentare

22 Kommentare
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

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.)

alt

PeterToman
COMMUNITY BANNED Off Offline

Lol
4/5 = very good
1/5 = bad
This script is too simple, but also useful.
Ich mag es!

alt

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.

alt

Infinite Rain
Reviewer Off Offline

Wow perfect!
You made it just with lua?
Or with others PL?
Ich mag es!

alt

EngiN33R
Moderator Off Offline

An anti-cheat system looks like the most practical use for this script. Good job!
Ich mag es!

alt Interesting

Cirium
User Off Offline

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

Im just not to sure what to use it for
Ich mag es!

alt

Apache uwu
User Off Offline

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

alt

Infinite Rain
Reviewer Off Offline

what is hash?
Explain it
Ich mag es!

alt

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.

alt @94muzo94

buraxia3
User Off Offline

Then why don't think thinked it, idiot?
Ich mag es!

alt

MuzraF
User Off Offline

okay it is easy and good ; 4/5
Ich mag es!
1× editiert, zuletzt 11.08.11 09:26:54

alt

Ax3
User Off Offline

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

alt

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?

alt

dizziness
User Off Offline

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

alt

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.

alt

dizziness
User Off Offline

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

alt

Apache uwu
User Off Offline

Textual Context hat geschrieben
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.

alt

danielmen123
User Off Offline

Wi Textual Context What is Your Name in cs2d
please contect
Ich mag es!

alt

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"...

alt

RAVENOUS
BANNED Off Offline

Wow, very nice. Indeed a new way to ban some people by using their (I hope unique) hash code. nice
Ich mag es!
Zum Anfang Vorherige 1 2 Nächste Zum Anfang