Raised This Month: $32 Target: $400
 8% 

Files Check (amxx port of soundcheck metamod plugin)


Post New Thread Reply   
 
Thread Tools Display Modes
rumbeto
Member
Join Date: Feb 2007
Old 01-05-2009 , 10:41   Re: Files Check (amxx port of soundcheck metamod plugin)
Reply With Quote #21

I have a question, if someone has tried it? Can I make multiple directories in the game structure that are not used in game but to put there custom approved models and skins, just to be checked by this plugin?
rumbeto is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-05-2009 , 11:47   Re: Files Check (amxx port of soundcheck metamod plugin)
Reply With Quote #22

Yes.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 02-28-2009 , 09:49   Re: Files Check (amxx port of soundcheck metamod plugin)
Reply With Quote #23

why if both server and client don't have the file it says files differs from each other? O_o

btw
Quote:
Syntax:

force_unmodified ( force_type, mins[3] , maxs[3], const filename[] )
what are mins[3] and maxs[3]? and why are they "{0,0,0}" ?

Last edited by Owyn; 02-28-2009 at 12:52.
Owyn is offline
Send a message via ICQ to Owyn
Costin83
Senior Member
Join Date: Jul 2008
Location: Romania
Old 02-28-2009 , 22:05   Re: Files Check (amxx port of soundcheck metamod plugin)
Reply With Quote #24

Added player IP :

Code:
 
/* AMX Mod X Plugin
* 
* (c) Copyright 2008, ConnorMcLeod 
* This file is provided as is (no warranties). 
* 
*/ 
#include <amxmodx>
new g_pcvarExactModel, g_pcvarSeparateLogFile
public plugin_init()
{
 static const VERSION[] = "1.01"
 register_plugin("Files Check +IP", VERSION, "ConnorMcLeod")
 register_cvar("fc_version", VERSION, FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_SPONLY)
 g_pcvarSeparateLogFile = register_cvar("fc_separatelog", "2")
}
public plugin_precache()
{
 g_pcvarExactModel = register_cvar("fc_exactweapons", "1")
 static szConfigFile[64]
 get_localinfo("amxx_configsdir", szConfigFile, 63)
 format(szConfigFile, 63, "%s/filescheck.ini", szConfigFile)
 new File = fopen(szConfigFile, "rt")
 if(!File)
  return
 static szFile[64]
 while(!feof(File))
 {
  fgets(File, szFile, 63)
  trim( szFile )
  if(!szFile[0] || szFile[0] == ';' || (szFile[0] == '/' && szFile[1] == '/'))
   continue
  if(equali(szFile[strlen(szFile)-4], ".mdl"))
  {
   force_unmodified(get_pcvar_float(g_pcvarExactModel) ? force_exactfile : force_model_samebounds, {0,0,0}, {0,0,0}, szFile)
  }
  else
  {
   force_unmodified(force_exactfile, {0,0,0}, {0,0,0}, szFile)
  }
 }
 fclose(File)
}
public inconsistent_file(id, const filename[], reason[64])
{
 static szMessage[192], szName[32], szAuthid[32], szIP[32]
 get_user_name(id, szName, 31)
 get_user_authid(id, szAuthid, 31)
 get_user_ip(id, szIP, 31)
 formatex(szMessage, 191, "^"%s<%s>^" has inconsistent file ^"%s^" | IP: ^"%s^"", szName, szAuthid, filename, szIP)
 switch( get_pcvar_num(g_pcvarSeparateLogFile) )
 {
  case 1:
  {
   log_amx(szMessage)
  }
  case 2:
  {
   static const szLogFile[] = "filecheck.log"
   log_to_file(szLogFile, szMessage)
  }
  default:
  {
   log_message(szMessage)
  }
 }
 server_cmd("say ^"%s^"", szMessage)
}
Costin83 is offline
Send a message via Yahoo to Costin83
AllMassive
Senior Member
Join Date: Sep 2004
Location: /dev/urandom
Old 03-27-2009 , 16:46   Re: Files Check (amxx port of soundcheck metamod plugin)
Reply With Quote #25

Could i add every *.WAD which is on the server to the ini and the players wad gets checked against the servers one ?
AllMassive is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-27-2009 , 16:54   Re: Files Check (amxx port of soundcheck metamod plugin)
Reply With Quote #26

yes
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
AllMassive
Senior Member
Join Date: Sep 2004
Location: /dev/urandom
Old 03-28-2009 , 08:00   Re: Files Check (amxx port of soundcheck metamod plugin)
Reply With Quote #27

Great Plugin and it works:
Code:
xxx has inconsistent file "sprites/gas_puff_01.spr"
Thank You !
Could you add amxbans support that those ppl 'get logged' for the Public ? - For example banning for 5 Minutes with reason: Inconsistent File ?
AllMassive is offline
AllMassive
Senior Member
Join Date: Sep 2004
Location: /dev/urandom
Old 03-28-2009 , 08:04   Re: Files Check (amxx port of soundcheck metamod plugin)
Reply With Quote #28

Quote:
Originally Posted by AllMassive View Post
I am using your plugin since 2 hours.
How to disable that the servername is displayed in the console messages - even on console the offending filename is cut off to other clients - only the logs on the server shows the complete filename.
AllMassive is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-28-2009 , 08:19   Re: Files Check (amxx port of soundcheck metamod plugin)
Reply With Quote #29

Don't know how works amxban
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 05-18-2009 , 07:06   Re: Files Check (amxx port of soundcheck metamod plugin)
Reply With Quote #30

is it possible not to kick player but log only?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:17.


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