AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to get CRC of client file? (https://forums.alliedmods.net/showthread.php?t=76444)

Levi.Berenbaum 08-24-2008 15:35

How to get CRC of client file?
 
How to get CRC (or MD5) of a client's file?

Iwon 08-24-2008 18:12

Re: How to get CRC of client file?
 
Don't think you can.

Alka 08-24-2008 18:40

Re: How to get CRC of client file?
 
AmxModX is server side. Can't work/read client files.

Levi.Berenbaum 08-24-2008 19:02

Re: How to get CRC of client file?
 
Quote:

Originally Posted by Alka (Post 675111)
AmxModX is server side. Can't work/read client files.

I know this. But when some file changed I have kick "Your map [maps/de_nuke.bsp] differs from the server's."
It's CRC stuff?

Or maybe exist some client hash functions?

Iwon 08-24-2008 19:13

Re: How to get CRC of client file?
 
Quote:

Originally Posted by Levi.Berenbaum (Post 675122)
I know this. But when some file changed I have kick "Your map [maps/de_nuke.bsp] differs from the server's."
It's CRC stuff?

Or maybe exist some client hash functions?

No it means it has been modified by someone else on a different server.

You can delete it or make them force download it agian.

Levi.Berenbaum 08-25-2008 07:00

Re: How to get CRC of client file?
 
One player was kicked with reason:
Reason: Bad file Server is enforcing file consistency for sprites/fastw.spr

What is it? How server checks consistency of file?

Iwon 08-25-2008 14:48

Re: How to get CRC of client file?
 
PHP Code:

if(file_exist(force_unmodified_file("name of file"))); 

blahblah

Levi.Berenbaum 08-25-2008 19:04

Re: How to get CRC of client file?
 
Quote:

Originally Posted by Iwon (Post 675565)
force_unmodified_file

I can't find this function. #_0

Alka 08-26-2008 07:26

Re: How to get CRC of client file?
 
-> http://www.amxmodx.org/funcwiki.php?go=func&id=213


All times are GMT -4. The time now is 03:10.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.