AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   force_unmodified(force_exactfile (https://forums.alliedmods.net/showthread.php?t=241161)

bol 05-29-2014 08:55

force_unmodified(force_exactfile
 
hi

Is it possible to check a clients file against two different versions?
PHP Code:

force_unmodified(force_exactfile, {0,0,0}, {0,0,0

If not what are my limitations? for example from the two different versions, if date modified is the same and file size is the same to the 000.000 byte is there someway the server could allow both till this criteria but not anything else?

aron9forever 05-29-2014 10:33

Re: force_unmodified(force_exactfile
 
unfortunately there's already been a thread about something similar and there are several limitations of this function
the worst is probably that as soon as it detects an inconsistent file, it disconnects the user and doesn't check for the rest of the files, and you can't work around it without tapping the engine

also it's not possible to check the file against two versions, because the only param the function has is which file to check, not also which file to check it against, so by default it looks for the same file with the same name / extension on the server then checks

bol 05-29-2014 12:52

Re: force_unmodified(force_exactfile
 
thats too bad, does it use a md5hash or something or just memory cache? theres no margin I can set to filesize must be between this many bytes?

aron9forever 05-29-2014 13:34

Re: force_unmodified(force_exactfile
 
Quote:

Originally Posted by bol (Post 2144057)
thats too bad, does it use a md5hash or something or just memory cache? theres no margin I can set to filesize must be between this many bytes?

no, the only customizations it allows is for models only and it's related to their size(not filesize)

bol 05-29-2014 14:56

Re: force_unmodified(force_exactfile
 
Ok no problem. would of been great if it let me set some rules but gotto work with what you got :)


All times are GMT -4. The time now is 09:40.

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