求点通的高人们进来帮忙写个插件吧
功能很简单..就一样.可不可以实现一下CS1.5也有雾气这功能..不管白雾.还是黑雾.总之能实现就行了..帮帮忙啊.大家 1.5不可能实现 本帖最后由 点通粉丝 于 2011-2-24 23:12 编辑L*Y*Y* 你QQ是多少...看来CS1.5版的僵尸服没什么人去搞的了,,我最近搞了一个防豆客平台的
大家有空一起完善一下#include <amxmodx>
#include <engine>
#include <cstrike>
#include <fun>
#include <csdm>
#include <fakemeta>
#include <amxmisc>
#include <float>
///////////quanjushuju///////////////
// 自定义夜视彩色第二段开头部份代码//
new const g_PLUGIN[] = "Custom NVG Color"
new const g_VERSION[] = "0.3"
new const g_AUTHOR[] = "SAMURAI"
#define g_ALPHA 150
new bool:NightVisionUse
new gmsgFade
new pnable, pcolor, pnumdecay, pnumradius, pnumlife;//结尾//
new g_reallytime = 20
new g_countstart = 20
new g_is_human_protected = { 0 }
new g_zombietime = 0
new g_is_player_human = { 0 }
new g_is_player_zombie = { 0 }
new g_max_zombie_life
new g_zombie_life = { 1 }
new g_meta_base_hp
new g_meta_extr_hp
new g_daug_base_hp
new g_add_hp
new g_StayTime = 0
new g_countvoice[]=
{"FeNgGe/FeNgGe_10.wav","FeNgGe/FeNgGe_09.wav","FeNgGe/FeNgGe_08.wav","FeNgGe/FeNgGe_07.wav","FeNgGe/FeNgGe_06.wav","FeNgGe/FeNgGe_05.wav","FeNgGe/FeNgGe_04.wav","FeNgGe/FeNgGe_03.wav","FeNgGe/FeNgGe_02.wav","FeNgGe/FeNgGe_01.wav","x/x_attack3.wav"}
#define MAPNAME "de_dust2" //不管你开什么图都好.都会变回de_dust2//内定地图/
#define ZOMBIE_SPEED 300.0 //僵尸行走速度.正常280/
////////equip///////////////////
#define EQUIP_PRI (1<<0)
#define EQUIP_SEC (1<<1)
#define EQUIP_ARMOR (1<<2)
#define PLUGIN "SKY" //月色黑夜天空代码开头第一段//
#define VERSION "1.0"
#define AUTHOR "CS-FG"
#define max_suffix 6
new g_suffix = { "up", "dn", "ft", "bk", "lf", "rt" }
new skyarray={"backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley"}//月色黑夜天空代码开头第一段结尾部份//
//菜单
new g_SecMenu[] = "Zombie: Secondary Weapons"; // 菜单名
new g_SecMenuID = -1; // 菜单ID
new g_cSecondary; // 菜单回调
new g_PrimMenu[] = "Zombie: Primary Weapons";
new g_PrimMenuID = -1;
new g_cPrimary;
//武器选择
new g_SecWeapons;
new g_PrimWeapons;
//配置武器储存持有人
new g_BotPrim;
new g_iNumBotPrim;
new g_BotSec;
new g_iNumBotSec;
new g_Secondary;
new bool:g_DisabledSec;
new g_iNumSec;
new g_Primary;
new bool:g_DisabledPrim;
new g_iNumPrim;
//快速修复的菜单页面
new g_MenuPages = {0};
///////装备/////////////////////
////////////////////////////////////
public plugin_init()
{
//改变手部模型代码第一段开头部份
register_plugin("TeamKnives","1.0","Ywa-NL")
register_event("CurWeapon", "weaponChange", "be", "1=1")
register_cvar("amx_teamknives", "1")
// 自定义夜视彩色第二段开头部份代码
register_plugin(g_PLUGIN,g_VERSION,g_AUTHOR);
register_concmd("nightvision","ToggleNVG")
pnable = register_cvar("custom_nvg","1"); //1 =启用(默认)2 =禁用//
pcolor = register_cvar("custom_nvg_rgb","255 105 180"); //设置夜视颜色,以RGB格式//
pnumdecay = register_cvar("custom_nvg_decay","10"); // 设置光衰减率//
pnumradius = register_cvar("custom_nvg_radius","100");//夜视可看距离//
pnumlife = register_cvar("custom_nvg_life","1"); //设置生命的光 默认值= 1
register_event("ResetHUD","ev_new_round","be");
gmsgFade = get_user_msgid("ScreenFade");//自定义夜视彩色第二段结尾部份代码//
register_plugin("Zombie Vince main","1.1.2","Vincent")
set_task(1.0,"lightning_effects") //闪电部份代码//
// 菜单和回调
g_SecMenuID = menu_create(g_SecMenu, "m_SecHandler",0);
g_PrimMenuID = menu_create(g_PrimMenu, "m_PrimHandler",0);
g_cSecondary = menu_makecallback("c_Secondary");
g_cPrimary = menu_makecallback("c_Primary");
// 为了在武器菜单
csdm_reg_cfg("secondary", "cfgSecondary");
csdm_reg_cfg("primary", "cfgPrimary");
csdm_reg_cfg("botprimary", "cfgBotPrim");
csdm_reg_cfg("botsecondary", "cfgBotSec");
//它的武器和Del下降
register_clcmd("drop", "hook_drop")
//保持正确的僵尸
register_forward(FM_ClientUserInfoChanged,"fw_info")
register_forward(FM_Touch,"fw_Touch")
//register_forward(FM_GetGameDescription,"GameDesc")
register_event("CurWeapon","event_cur_weapon","be", "1=1")
register_event("Damage", "event_damage", "be", "2!0","3=0","4!0")
g_meta_base_hp = register_cvar("zombie_meta_base_hp","8000") //母体僵尸基础HP。默认为2000
g_meta_extr_hp = register_cvar("zombie_meta_extr_hp","500")//每多1名玩家,母体僵尸增加的额外HP。默认为400
g_daug_base_hp = register_cvar("zombie_daug_base_hp","1800")//子体僵尸基础HP。默认为1500
g_add_hp = register_cvar("zombie_add_hp","500")//僵尸每感染一个人类,增加的HP。默认为800
g_max_zombie_life = register_cvar("zombie_max_life","8")//子体僵尸最大的重生次数。默认为1
register_logevent("event_new_round", 2, "0=World triggered", "1=Round_Start")
} 基本上所有功能己实现..现在就差有雾了..未搞出来之前.这个插件就不发布了.原因不够完美 1.5没研究…… 研究.研究啦........................... 兄弟。。来1.6把。。。。 也哈哈又是你 顶起 我就在幻海的Qq群里,我知道1.5不支持下雨下雪,雾的功能我也研究了好久没有实现,后来就放弃了,看来只有斑竹动手了!期待高手! 汗 研究研究
页:
[1]
2