Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
Archive › Old Forum Threads › General › Chat › is there a plugin for......
6 posts, 3 people · 3,247 views Thread Rating: ★★★★★
closedis there a plugin for......
Started by Smiffy on 10-01-2006, 01:06 PM
S Smiffy
started this thread
Posts: 73
Threads: 16
Joined: Nov 2004
10-01-2006, 01:06 PM #1

i was just wundering if there is a plugin that will block some custom models because some custom modles can give unfair advatages and i would like to stop this if possiblernrnmany thanxrnrnRiddick (on smiffys account)

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
10-01-2006, 08:17 PM #2

hmm i believe there might be a few file consistency plugins floating around the forums at www.amxmodx.org which will force clients to have the same file as the server

Wilson [29th ID]
posted here
Posts: 623
Threads: 57
Joined: Oct 2005
10-01-2006, 09:06 PM #3

You're going to lose half of your players because so many people use custom models, but here this should do it. Most of this is the work of Zormonstor.rnrn

public plugin_precache() {rn	enforce("models/player/us-inf/us-inf.mdl")rn	enforce("models/player/us-inf/us-para.mdl")rn	enforce("models/player/brit-inf/brit-inf.mdl")rn	enforce("models/player/axis-inf/axis-inf.mdl")rn	enforce("models/player/axis-inf/axis-para.mdl")rn}rnrnrn///////////////////////////////////////////////rn//// FILE ENFORCEMENT /////////////////////////rn///////////////////////////////////////////////rnrnpublic enforce(const file[]) {rn	if(file_exists(file))rn		force_unmodified(force_exactfile, {0,0,0}, {0,0,0}, file)rn	return PLUGIN_CONTINUErn}rnrnpublic inconsistent_file(id, const filename[], reason[64]) {rn	new nick[32], steamid[32], useridrn	rn	get_user_authid(id, steamid, 31)rn	get_user_name(id, nick, 31)rn	userid = get_user_userid(id)rn	rn	new output[128]rn 	format(output, 127, "^"%s<%d><%s>^" inconsistent file ^"%s^"", nick, userid, steamid, filename)rn	rn	// No matter what Im logging the infractionrn	log_amx("%s", output)rnrn	new players[32], numrn	get_players(players, num)rn	rn	for(new i = 0; i < num; i++)rn	{rn		if(get_user_flags(players[i]) & ADMIN_LEVEL_H)rn			client_print(players[i], print_chat, "%s", output)rn	}rn	rn	format(reason, 63, "%s - Custom models prohibited^n", filename)rnrn	return PLUGIN_CONTINUErn}
diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
10-01-2006, 09:12 PM #4

theres no includes or plugin init in that code

S Smiffy
started this thread
Posts: 73
Threads: 16
Joined: Nov 2004
10-03-2006, 03:44 AM #5

the reason i want thi plugin is to stop people using modles where the players are either green or red or any other coulr that stands out i mean if ur gonna do that u mite as well use a wall hack make it even easier for ya selfnnRiddick (again) :P

Wilson [29th ID]
posted here
Posts: 623
Threads: 57
Joined: Oct 2005
10-03-2006, 04:03 AM #6

I wrote it under the assumption that he knew how to compile as he'd have to to use it, and thus had some knowledge on the includes and initialisation. If you need help doing that let me know, smiffy.

Archive › Old Forum Threads › General › Chat › is there a plugin for......
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC