以文本方式查看主题

-  索沛CS1.6论坛 CS反作弊 CS1.6下载 amxx sma插件 cs对战平台  (http://go5w.com/index.asp)
--  AMXX插件脚本  (http://go5w.com/list.asp?boardid=15)
----  迪酷Dcoo CS服务器里的广告插件(有源码)  (http://go5w.com/dispbbs.asp?boardid=15&id=942)

--  作者:saloman
--  发布时间:2007-09-24 11:09:00
--  迪酷Dcoo CS服务器里的广告插件(有源码)
RECOMMENDED UPDATE (6-3-07) !!!

Preface:
AdThemes will cover the Valve ads in CS with custom models (I call \'em sheets). That\'s right, no more shitty Valve ads. The models are grouped as to create a theme. I\'ve provided 4 themes as a start. One theme, the default, will cover the ads with models similar to the original map\'s wall texture (not perfect, but pretty damn close). Hopefully, others will create more themes.

Installation:
Download the adthemes.zip file and extract it to your \'cstrike\' folder.
Add the line \'adthemes.amxx\' to your \'plugins.ini\' file.
(The source code is extracted to \'addons/amxmodx/scripting\')

Commands: (Access level \'h\'):
amx_adthemes_enable - This command will toggle AdThemes to its opposite state (on or off).
amx_adthemes_file <filename> - Use this command to change the theme config file.
Note: Changes will not take affect until the next map.

CVARs:
amx_adthemes <0|1> - Disable|Enable the plugin (default = 1)
amx_adthemescfg <filename> - Selects the theme to use (default = adthemes_none.cfg)

Themes provided:
adthemes_none - Covers the ads with a texture similar to the original. (NO ADS)
adthemes_pinup - Covers the ads with sexah ladies (PG-13).
adthemes_sports - Covers the ads with sports related pixs.
adthemes_adssuck - Covers the ads with a message to Valve.

3rd Party Themes:
Pinups by Zuko: Thread - Download
Cats by Zuko: Thread - Download
Cats2 by Zuko: Thread - Download


Plugin Creation:
First, let me say that I no longer play CS. I\'m a DOD man. And I\'ve written several AmxmodX plugins for DOD. But the fact that Valve is placing ads in a game which I\'ve paid for really pisses me off. And, I figure if someone doesn\'t do something, those pricks will start adding the ads to DOD too.

Second, let me state that the idea to cover the ads is not mine. I owe credit to commonbullet\'s thread. Ya, I know others have suggested it too, but I read his first and he\'s actually doing something about it. I just built on his idea. I thought "hey, why not cover the ads with naked ladies". And the idea of themes sprouted from there.

However, the code is 100% mine. I simply modified a plugin I wrote a while back to place our clan logo in various spots on DOD maps.

I have 3 hopes in developing this plugin.
1) That people spread the word that they don\'t have to put up with Valve\'s crappy ads and use it.
2) That others create and submit more AdThemes.
3) That the plugin will be short-lived because Valve terminates their ad program.


About the plugin:
The plugin, during precache, will look for the file assigned by the command \'amx_adthemes_file\' (the default config file is \'adthemes_none.cfg\' - NOADS). It will then scan for the current mapname\'s \'mapblock\' (sample mapblock shown below). A \'mapblock\' defines on which maps to apply AdThemes, which models are to be used, where to locate them, and how to orient them. The mapblock structure and syntax needs to be exact (I\'m not into \'error checking for dummies\'). If a mapblock is found, it will precache the models designated. After precache, the plugin will scan the file again for location lines and insert entity sheets as defined. The main caveat in creating a mapblock relates to the ModelID number. As the models are read, they\'re assigned an ID number in the order they\'re read starting with #1 (limit of 16). This number corresponds to the 2nd parameter in the location line. You can actually use this plugin to place any model, anywhere, on any map. But covering the ads is sooo much fun.

Sample mapblock...
---------------------------------------
[de_dust]
adssuck_80x80.mdl
adssuck_96x96.mdl
}
667.9 2048.13 100.5/2/0 90 0/ T spawn
-148 -0.15 100.5/2/0 270 0/ CT spawn
-52 -0.15 100.5/2/0 270 0
2559.98 828 151/1/0 180 0/ Bombsite A
2559.98 828 71/1/0 180 0
}
---------------------------------------
Note that sections terminate with a curly bracket \'}\', NOT a parentheses \')\'.

Refer to the \'adthemes.txt\' file located in the \'models/adthemes/\' folder for information reguarding the current ads\' size, center origin, Z-axis angle, and light_origin offset. This file also contains mapblock structure and command references. I\'ve included several \'blank\' models that you can use to create your own sheets. Simply use a model viewer (I use Jed\'s HLMV) and import your texture and resave the model. Note that the textures must be the same size as the one you\'re replacing, and use 8-bit (256) color mapping.

RECOMMENDED UPDATE (6-3-07) !!!


Revision history:
----------------
1.8 (6-3-07)
Added server-side variable named AdThemes to track plugin usage via Game-Monitor. So players can now search for servers that are using the plugin and know in advance that they won\'t be bothered by ads.
Note: Only the adthemes.amxx and adthemes.sma files were changed. So you can reinstall the whole thing, or simply compile the adthemes.sma and replace the existing adthemes.amxx file.

1.7 (5-4-07)
1) Minor code change
2) Added 2 more hi-res blank models
3) Added fakemeta_util includes in the code (so it will now compile online)
(No functional changes made - no need to update if everything\'s running OK)

1.6 (3-27-07)
1) Removed redundant log messages.
2) Location lines with modelIDs \'out of range\' will now just be skipped instead of killing the plugin.
3) Added checking for EOF in precache routine.
4) Added higher resolution \'blank\' models to improve detail.
5) Changed Pinup & Sports AdThemes to hi-res sheets for better quality pix.

1.5a (3-25-07)
1) Added missing \'Sheet\' for Aztec.

1.5 (3-24-07)
Original release图片点击可在新窗口打开查看点击浏览该文件

--  作者:GGYY
--  发布时间:2007-10-16 17:39:00
--  

thanks


--  作者:SkY
--  发布时间:2007-10-31 15:17:00
--  

thanks

图片点击可在新窗口打开查看
--  作者:ycmzlg008
--  发布时间:2008-04-04 0:02:00
--  
大侠怎么用啊?
--  作者:ChunG1
--  发布时间:2008-04-09 22:25:00
--  
什麼來的??...
--  作者:deadon9
--  发布时间:2008-06-09 14:20:00
--  
???
--  作者:ctx_xiatian
--  发布时间:2008-06-10 17:25:00
--  
全英文来的,看不懂啊
--  作者:SBS_xxxc
--  发布时间:2008-06-14 17:43:00
--  
一堆英文..看不懂
--  作者:trgiang
--  发布时间:2009-06-07 14:44:00
--  

thx man


--  作者:leonack
--  发布时间:2009-07-19 20:04:00
--  
????????????????????????有中文翻译吗?