dvbbs
English
手机APP
Help帮助
dvbbs

>> AMXX插件提供,AMXX插件分享
搜一搜更多此类问题 
索沛CS1.6论坛 CS反作弊 CS1.6下载 amxx sma插件 cs对战平台CS资源技术专区AMXX插件脚本

您是本帖的第 2527 个阅读者
树形 打印
标题:
迪酷Dcoo CS服务器里的广告插件(有源码)
saloman
头衔:高手又来了
等级:管理员
索币:130629
文章:49599
RMB:103.1¥
战队:Sorpack.44
注册:2007年3月29日
楼主
 

发贴心情
迪酷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图片点击可在新窗口打开查看点击浏览该文件


再好的服务器,也要用心去经营。。。



图片点击可在新窗口打开查看

您只需花几分钟看以下内容,就能熟悉了解索沛


1:免费申请VIP会员以及使用OP限教程



2:索沛106个服务器最新IP地址



3:论坛帐号密码丢失,取回流程

ip地址已设置保密
2007-09-24 11:09:00
★【没时间发帖也可以获得上万索币】
GGYY
等级:难民
索币:16
文章:24
RMB:0¥
战队:逃兵
注册:2007年10月11日
2
 

发贴心情

thanks

ip地址已设置保密
2007-10-16 17:39:00
★【没时间发帖也可以获得上万索币】
SkY
等级:农民
索币:437
文章:62
RMB:0¥
战队:逃兵
注册:2007年10月11日
3
 

发贴心情

thanks

图片点击可在新窗口打开查看
ip地址已设置保密
2007-10-31 15:17:00
★索币冲值方式【充值卡/Q币/游戏卡】
ycmzlg008
等级:乞丐
索币:21
文章:1
RMB:0¥
战队:逃兵
注册:2008年4月3日
4
 

发贴心情
大侠怎么用啊?
ip地址已设置保密
2008-04-04 0:02:00
★索沛游戏卡【免费赠送10万游戏币】
ChunG1
等级:工人
索币:0
文章:278
RMB:0¥
战队:逃兵
注册:2008年1月18日
5
 

发贴心情
什麼來的??...
ip地址已设置保密
2008-04-09 22:25:00
★【没时间发帖也可以获得上万索币】
OMI
等级:农民
索币:25
文章:59
RMB:0¥
战队:逃兵
注册:2008年4月6日
6
 

用户已被锁定
ip地址已设置保密
2008-04-10 1:52:00
★【没时间发帖也可以获得上万索币】
deadon9
等级:乞丐
索币:9
文章:2
RMB:0¥
战队:逃兵
注册:2008年6月9日
7
 

发贴心情
???
ip地址已设置保密
2008-06-09 14:20:00
★赠送VIP帐号【无需发20贴以及等待2天】
ctx_xiatian
等级:乞丐
索币:9
文章:17
RMB:0¥
战队:逃兵
注册:2008年6月4日
8
 

发贴心情
全英文来的,看不懂啊
ip地址已设置保密
2008-06-10 17:25:00
★赠送VIP帐号【无需发20贴以及等待2天】
SBS_xxxc
头衔:zz
等级:警务处长
索币:0
文章:11215
RMB:0¥
战队:逃兵
注册:2007年12月14日
9
 

发贴心情
一堆英文..看不懂

图片点击可在新窗口打开查看
ip地址已设置保密
2008-06-14 17:43:00
★【没时间发帖也可以获得上万索币】
trgiang
等级:难民
索币:-230
文章:21
RMB:0¥
战队:逃兵
注册:2009年6月1日
10
 

发贴心情

thx man

ip地址已设置保密
2009-06-07 14:44:00
★【没时间发帖也可以获得上万索币】

 20   10   1/2页      1   2   尾页 
  快速回复:
迪酷Dcoo CS服务器里的广告插件(有源码)
发贴表情
字体颜色 字体背景颜色 粗体 斜体 下划线 超级连接 引用 清理代码 上传图片 表情库
内容限制: 字节.
©2007 sorpack.Com
Powered By Dvbbs Version 7.1.0 Sp1
页面执行时间 0.48438 秒, 4 次数据查询