Smiffy
10-01-2006, 02:06 PM
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 possible
many thanx
Riddick (on smiffys account)
diamond-optic
10-01-2006, 09:17 PM
hmm i believe there might be a few file consistency plugins floating around the forums at www.amxmodx.org (http://www.dodplugins.net/forums/www.amxmodx.org) which will force clients to have the same file as the server
Wilson [29th ID]
10-01-2006, 10:06 PM
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.
public plugin_precache() {
enforce("models/player/us-inf/us-inf.mdl")
enforce("models/player/us-inf/us-para.mdl")
enforce("models/player/brit-inf/brit-inf.mdl")
enforce("models/player/axis-inf/axis-inf.mdl")
enforce("models/player/axis-inf/axis-para.mdl")
}
///////////////////////////////////////////////
//// FILE ENFORCEMENT /////////////////////////
///////////////////////////////////////////////
public enforce(const file[]) {
if(file_exists(file))
force_unmodified(force_exactfile, {0,0,0}, {0,0,0}, file)
return PLUGIN_CONTINUE
}
public inconsistent_file(id, const filename[], reason[64]) {
new nick[32], steamid[32], userid
get_user_authid(id, steamid, 31)
get_user_name(id, nick, 31)
userid = get_user_userid(id)
new output[128]
format(output, 127, "^"%s<%d><%s>^" inconsistent file ^"%s^"", nick, userid, steamid, filename)
// No matter what Im logging the infraction
log_amx("%s", output)
new players[32], num
get_players(players, num)
for(new i = 0; i < num; i++)
{
if(get_user_flags(players[i]) & ADMIN_LEVEL_H)
client_print(players[i], print_chat, "%s", output)
}
format(reason, 63, "%s - Custom models prohibited^n", filename)
return PLUGIN_CONTINUE
}
diamond-optic
10-01-2006, 10:12 PM
theres no includes or plugin init in that code
Smiffy
10-03-2006, 04:44 AM
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 self
Riddick (again) :P
Wilson [29th ID]
10-03-2006, 05:03 AM
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.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.