Hi, I was hoping someone may be able to shed some light as to why this code:
Code:
#include <amxmodx>
public plugin_init()
{
register_plugin("File Checks","1.1","FR4G1L3")
}
public plugin_precache()
{
force_unmodified(force_exactfile,{0,0,0},{0,0,0},"sprites/gas_puff_01.spr")
force_unmodified(force_exactfile,{0,0,0},{0,0,0},"player/bhit_flesh-1.wav")
force_unmodified(force_exactfile,{0,0,0},{0,0,0},"player/bhit_flesh-2.wav")
force_unmodified(force_exactfile,{0,0,0},{0,0,0},"player/bhit_flesh-3.wav")
force_unmodified(force_exactfile,{0,0,0},{0,0,0},"player/bhit_helmet-1.wav")
force_unmodified(force_exactfile,{0,0,0},{0,0,0},"player/bhit_kevlar-1.wav")
force_unmodified(force_exactfile,{0,0,0},{0,0,0},"player/pl_pain2.wav")
force_unmodified(force_exactfile,{0,0,0},{0,0,0},"player/pl_pain4.wav")
force_unmodified(force_exactfile,{0,0,0},{0,0,0},"player/pl_pain5.wav")
force_unmodified(force_exactfile,{0,0,0},{0,0,0},"player/pl_pain6.wav")
force_unmodified(force_exactfile,{0,0,0},{0,0,0},"player/pl_pain7.wav")
force_unmodified(force_exactfile,{0,0,0},{0,0,0},"player/pl_fallpain1.wav")
force_unmodified(force_exactfile,{0,0,0},{0,0,0},"player/pl_fallpain2.wav")
force_unmodified(force_exactfile,{0,0,0},{0,0,0},"player/pl_fallpain3.wav")
force_unmodified(force_exactfile,{0,0,0},{0,0,0},"player/pl_shot1.wav")
}
public inconsistent_file(id,const filename[],reason[64])
{
new name[32]
new uid[32]
get_user_authid(id,uid,31)
get_user_name(id,name,31)
format(reason,63,"- Goto *** and check the forums.")
log_to_file("Filecheck.log","FILECHECK:- Player Name: %s. SteamID: %s. Failed File: %s.",name,uid,filename)
return PLUGIN_CONTINUE
}
Is detecting and blocking these files as well as the normal ones. I should add that it doesn't do it all the time. I myself fell victim, and had to restart cz to get on the server, yet I had only just started it the first time.