zw63734487 发表于 2012-2-15 23:03:42

OP特殊化帽子尾巴兔耳朵!第二次发源码加修改教程!【赵阳

本帖最后由 zw63734487 于 2012-2-15 23:10 编辑

【1楼为编辑方法】
【2楼为源码】
【3楼资源
这次呢是给OP添加装饰物插件 !!【第一次放在了潜力区】
本插件支持1.5 1.6!!是AMXX的!由于考虑1.5下载附件很慢!So不想流失大量玩家的房主们呢就用这个OP帽子插件吧!

!嘿嘿!!小巧有趣!!
*==============*
修改教程
1、想搞各种不同的帽子 就要引用不同的mdl模型文件找到下面语句“models/hat/bighead.mdl”是模型文件一供有26种

!把改成“models/hat/你要引用的模型文件名字”即可!!
(想查看模型样式 百度搜索【HLMV 1.3.5汉化版】可查看mdl'格式的模型文件!!)new MODEL_MARK[]         = "models/hat/bighead.mdl"想要设置不同vip使用不同帽子 可以更改权限设置
找到下句代码if (!(get_user_flags(id) & ADMIN_KICK))ADMIN_KICK 就是op权限代码

下面是权限代码表 可以替换相应的 权限 如:
1、if (!(get_user_flags(id) & ADMIN_KICK))OP权限
2、if (!(get_user_flags(id) & ADMIN_LEVEL_A))VIP A权限
3、if (!(get_user_flags(id) & ADMIN_LEVEL_B))VIP B权限
**** Hidden Message *****

zw63734487 发表于 2012-2-15 23:08:13

【源码】
/* AMX Mod X
*   Admin Mark
*
*Mad Bloodlust Wolf公会制作 Mbw*Dark修正Cs1.5拼音版 QQ:616389035
*
*
*/

#include <amxmodx>
#include <cstrike>
#include <engine>

new g_adminmarkEnt
new cvar_enable
new MODEL_MARK[]         = "models/hat/bighead.mdl"

static const PLUGIN_NAME[]         = "Admin Mark"
static const PLUGIN_AUTHOR[]         = "MBW Dark"
static const PLUGIN_VERSION[]        = "1.2"

public plugin_init()
{
        register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
        register_cvar(PLUGIN_NAME, PLUGIN_VERSION, FCVAR_SPONLY|FCVAR_SERVER)       
        cvar_enable = register_cvar("amx_admin_mark", "1")
}

public plugin_precache()
{
        precache_model(MODEL_MARK)       
       
        force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/gign/gign.mdl")
        force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/gsg9/gsg9.mdl")
        force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/sas/sas.mdl")
        force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/urban/urban.mdl")
        force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/vip/vip.mdl")

        force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/arctic/arctic.mdl")
        force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/guerilla/guerilla.mdl")
        force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/leet/leet.mdl")
        force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/terror/terror.mdl")       
}

public client_connect(id)
{
        if(g_adminmarkEnt > 0)
                remove_entity(g_adminmarkEnt)
        g_adminmarkEnt = 0
}

public client_disconnect(id)
{
        if(g_adminmarkEnt > 0)
                remove_entity(g_adminmarkEnt)
        g_adminmarkEnt = 0
}

public client_PreThink(id)
{
        if(!is_user_connected(id))
                return PLUGIN_CONTINUE
       
        if(!is_user_alive(id) && g_adminmarkEnt > 0)
        {
                remove_entity(g_adminmarkEnt)
                g_adminmarkEnt = 0
               
                return PLUGIN_CONTINUE
        }
       
        if (!(get_user_flags(id) & ADMIN_KICK))
        {
                remove_entity(g_adminmarkEnt)
                g_adminmarkEnt = 0
               
                return PLUGIN_CONTINUE
        }
       
        if(!get_pcvar_num(cvar_enable))
                return PLUGIN_CONTINUE
               
        if(!is_user_alive(id))
                return PLUGIN_CONTINUE
               
        if(g_adminmarkEnt < 1)
        {
                g_adminmarkEnt = create_entity("info_target")
                if(g_adminmarkEnt > 0)
                {
                        entity_set_int(g_adminmarkEnt, EV_INT_movetype, MOVETYPE_FOLLOW)
                        entity_set_edict(g_adminmarkEnt, EV_ENT_aiment, id)
                        entity_set_model(g_adminmarkEnt, MODEL_MARK)                       
                }
        }
       
        if (g_adminmarkEnt > 0)
        {
                new modelID = get_model_id(id)
                entity_set_int(g_adminmarkEnt, EV_INT_body, modelID)
        }

        if(g_adminmarkEnt < 1)
                return PLUGIN_CONTINUE

        return PLUGIN_CONTINUE
}

new modelname[] ={
        "gign",
        "gsg9",
        "sas",
        "urban",
        "vip",
        "arctic",
        "guerilla",
        "leet",
        "terror"
}

public get_model_id(id)
{
        new modelStr, iNum=32, modelID
        get_user_info(id,"model",modelStr,iNum)
       
        for(new i = 0; i < 9; i++)
        {
                if (equali (modelStr, modelname) )
                {
                        modelID = i
                }
        }       
        return modelID
}

zw63734487 发表于 2012-2-15 23:10:03

本帖最后由 zw63734487 于 2013-1-3 14:15 编辑

【帽子模型下载】
1、Blog下载
dark1123.cn.vc

2、115 提取码【4u月21日更新】
新提取码》》》》》
115   .com/file/dpl1l84s

3、【推荐】百度盘2013.1.3更新
http://pan.baidu.com/share/link?shareid=167821&uk=1309483006

请到此地址下载 如连接失效请联系!!【dark1123@live.cn】
【请不要说115不会用 真的不会用!!去 下个优蛋去!!】

coolhurter 发表于 2012-2-16 20:44:52

帽子模型下载

zw63734487 发表于 2012-2-17 12:18:23

coolhurter 发表于 2012-2-16 20:44 static/image/common/back.gif
帽子模型下载

嗯,挺多模型的~"models/hat/xmas_cap.mdl" "聖誕馴鹿"
"models/hat/xmas_cap4.mdl" "聖誕馴鹿2"
"models/hat/xdhead.mdl" "XD"
"models/hat/upsadhead.mdl" "傷心"
"models/hat/typical_hat.mdl" "白膠帽"
"models/hat/tthead.mdl" "T.T"
"models/hat/tophat.mdl" "魔術帽"
"models/hat/supphead.mdl" "驚訝"
"models/hat/supermancape.mdl" "超人披風"
"models/hat/sumbraro2.mdl" "薄餅"
"models/hat/stormhelm_big.mdl" "機器人"
"models/hat/stormhelm2_big.mdl" "機器人2"
"models/hat/spongebob.mdl" "海綿寶寶"
"models/hat/Spartan.mdl" "羅馬頭盔"
"models/hat/Spartan2.mdl" "羅馬頭盔2"
"models/hat/sortinghat.mdl" "妖怪巫師帽"
"models/hat/smileyface.mdl" "純正微笑"
"models/hat/siusiuhead.mdl" "笑臉..."
"models/hat/siren_big.mdl" "巡邏燈"
"models/hat/ShoopDaWhoop.mdl" "瞪眼+厚唇"
"models/hat/scream.mdl" "驚聲尖笑的面具"
"models/hat/scouthelm_big.mdl""星際大戰2"
"models/hat/sconf.mdl" "瞪眼??"
"models/hat/santahat.mdl" "聖誕帽"
"models/hat/santahat2.mdl" "聖誕帽2"
"models/hat/pyramidhead.mdl" "鐵金字塔帽"
"models/hat/punkhair.mdl" "龐克頭"
"models/hat/psycho.mdl" "有病?"
"models/hat/plastichead.mdl" "不知怎麼形容"
"models/hat/pirate2.mdl" "海盜帽"
"models/hat/pillsburyhat.mdl" "廚師帽"
"models/hat/nothingtosayhead.mdl" "不知道該說什麼"
"models/hat/nina.mdl" "婦女頭??"
"models/hat/n_zabuzahead.mdl" "再不斬"
"models/hat/n_shippuden_narutohead.mdl" "漩渦鳴人??"
"models/hat/n_shikamaruhead.mdl" "鹿丸"
"models/hat/n_sasukehead.mdl" "宇之波 佐助"
"models/hat/n_skurahead.mdl" "小櫻"
"models/hat/n_rockleehead.mdl""小李"
"models/hat/n_nejihead.mdl" "日向 寧次??"
"models/hat/n_neji2head.mdl" "日向 寧次"
"models/hat/n_narutohead.mdl" "旋渦 鳴人"
"models/hat/n_mod tobi.mdl" "宇之波 斑的面具"
"models/hat/n_mod.mdl" "白"
"models/hat/n_mod anbu.mdl" "暗部面具"
"models/hat/n_mod anbu5.mdl" "暗部面具5"
"models/hat/n_mod anbu4.mdl" "暗部面具4"
"models/hat/n_mod anbu3.mdl" "暗部面具3"
"models/hat/n_mod anbu2.mdl" "暗部面具2"
"models/hat/n_kisamehead.mdl" "鬼鮫"
"models/hat/n_kibahead.mdl" "犬塚 牙"
"models/hat/n_kakashihead.mdl""卡卡西"
"models/hat/n_itachihead.mdl" "宇之波 鼬"
"models/hat/n_headband.mdl" "火影護額"
"models/hat/n_guysenseihead.mdl" "阿凱老師"
"models/hat/n_gaarahead4.mdl" "我愛羅"
"models/hat/longjump.mdl" "噴射背包"
"models/hat/kfcbucket.mdl" "KFC炸雞桶"
"models/hat/joker.mdl" "黃膠帽"
"models/hat/jason.mdl" "殺人狂傑森"
"models/hat/jamacahat2.mdl" "彩虹帽+菸"
"models/hat/jackolantern.mdl" "南瓜"
"models/hat/jackinbox.mdl" "雪人頭"
"models/hat/hellokitty.mdl" "凱蒂貓"
"models/hat/headphones.mdl" "耳機"
"models/hat/goodevil.mdl" "雙持C CT"
"models/hat/earth.mdl" "地球"
"models/hat/devilhead.mdl" "惡魔臉"
"models/hat/devil2.mdl" "惡魔尾巴"
"models/hat/darth.mdl" "星際大戰"
"models/hat/cowboy.mdl" "牛仔"
"models/hat/cow.mdl" "牛"
"models/hat/camper.mdl" "天線吧..."
"models/hat/beerhat.mdl" "啤酒"
"models/hat/barrel.mdl" "木桶"
"models/hat/awesome.mdl" "大笑臉"
"models/hat/asswp.mdl" "awp帽"
"models/hat/arrow.mdl" "弓箭帽"
"models/hat/anghead.mdl" "耍酷."
"models/hat/angel.mdl" "光環"
"models/hat/afro.mdl" "爆炸頭"
"models/hat/admin head.mdl" "adm帽"
"models/hat/bighead.mdl" "微笑臉帽"
"models/hat/dunce.mdl" "尖長帽"
"models/hat/hood.mdl" "裝鬼帽"
"models/hat/viking.mdl" "牛角帽"
"models/hat/paperbag.mdl" "竹籃帽"
"models/hat/darth.mdl" "蒙頭帽"
"models/hat/ushanka.mdl" "圓扁帽"
"models/hat/tv.mdl" "電視機帽"
"models/hat/pirate2.mdl" "海賊王帽"
"models/hat/pillsburyhat.mdl" "大廚師帽"
"models/hat/pbbears.mdl" "兔耳朵帽"
"models/hat/devil2.mdl" "惡魔+尾巴帽"
"models/hat/angel2.mdl" "天使+翅膀帽"
"models/hat/merlin.mdl" "藍色巫師帽"
"models/hat/sumbraro2.mdl" "大棒棒糖帽"
"models/hat/dodgerscap.mdl" "藍色鴨舌帽"
"models/hat/giantscap.mdl" "黑色鴨舌帽"
"models/hat/cheesehead.mdl" "三角起司帽"
"models/hat/santahat.mdl" "聖誕老公公帽"

chenzhanlin 发表于 2012-2-17 21:28:24

:@模型下不了 - -

takket 发表于 2012-2-18 14:55:02

好久没看插件了

zwwb008 发表于 2012-2-18 16:13:50

挺不错的东西,辛苦了

tianming84 发表于 2012-2-18 16:49:53

看看效果

673734294 发表于 2012-2-18 21:59:47

帽子 我有\一共97 个   想要加QQ673734294
页: [1] 2 3 4 5 6
查看完整版本: OP特殊化帽子尾巴兔耳朵!第二次发源码加修改教程!【赵阳