设为首页收藏本站新闻投稿

MOD中国同盟社

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1088|回复: 11

[求助] 插件高手请进来,帮我修改一下 [复制链接]

Rank: 7Rank: 7Rank: 7

帖子
455
精华
0
声望
1666 点
金币
241 Mold
被赞许
11 次
注册时间
2009-4-3
发表于 2010-8-6 09:33:34 |显示全部楼层
下面是该插件关于记分牌文字显示的一段源码,请帮我修改一下,去掉记分牌文字内容的显示。

插件源码如下:

public hud()
{
        if (get_pcvar_num(zombie_level))
        {
                switch (get_pcvar_num(zombie_level))
                {
                        case 1:
                        {
                                static scoreboard[600], level_desc[64]
                                server_cmd("zombie_knife 0")
                                get_pcvar_string(level1_name, level_desc, sizeof level_desc -1)
                                set_hudmessage(0, 255, 0, -1.0, 0.0, 0, 0.0, 1.0, 0.0, 0.2, -1)
                                //formatex(scoreboard, 599, "%s %s - www.ubcsgameserver.net^nNight Day: %d %s^nBoss: %d Health / %d Velocity^nZombies: %d Health / %d Velocity / %d Respawns",
                                //        get_pcvar_num(zombie_level), level_desc, get_pcvar_num(level1_bosshp), get_pcvar_num(level1_bossmaxspeed), get_pcvar_num(level1_health), get_pcvar_num(level1_maxspeed), get_pcvar_num(level1_respawns))
                                formatex(scoreboard, 599, "绗?%d 鏃?%s^n鍠睄鐜? %d 鐢熷懡鍊?/ %d 閫熷害^n鍠睄: %d 鐢熷懡鍊?/ %d 閫熷害 / 閲嶇敓 %d 娆?,
                                        get_pcvar_num(zombie_level), level_desc, get_pcvar_num(level1_bosshp), get_pcvar_num(level1_bossmaxspeed), get_pcvar_num(level1_health), get_pcvar_num(level1_maxspeed), get_pcvar_num(level1_respawns))
                                ShowSyncHudMsg(0, g_hud, scoreboard)
                        }
                        case 2:
                        {
                                static scoreboard[600], level_desc[64]
                                server_cmd("zombie_knife 0")
                                get_pcvar_string(level2_name, level_desc, sizeof level_desc -1)
                                set_hudmessage(0, 255, 0, -1.0, 0.0, 0, 0.0, 1.0, 0.0, 0.2, -1)
                                //formatex(scoreboard, 599, "%s %s - www.ubcsgameserver.net^nNight Day: %d %s^nBoss: %d Health / %d Velocity^nZombies: %d Health / %d Velocity / %d Respawns",
                                //        get_pcvar_num(zombie_level), level_desc, get_pcvar_num(level2_bosshp), get_pcvar_num(level2_bossmaxspeed), get_pcvar_num(level2_health), get_pcvar_num(level2_maxspeed), get_pcvar_num(level2_respawns))
                                formatex(scoreboard, 599, "绗?%d 鏃?%s^n鍠睄鐜? %d 鐢熷懡鍊?/ %d 閫熷害^n鍠睄: %d 鐢熷懡鍊?/ %d 閫熷害 / 閲嶇敓 %d 娆?,
                                        get_pcvar_num(zombie_level), level_desc, get_pcvar_num(level2_bosshp), get_pcvar_num(level2_bossmaxspeed), get_pcvar_num(level2_health), get_pcvar_num(level2_maxspeed), get_pcvar_num(level2_respawns))
                                ShowSyncHudMsg(0, g_hud, scoreboard)
                        }
                        case 3:
                        {
                                static scoreboard[600], level_desc[64]
                                server_cmd("zombie_knife 0")
                                get_pcvar_string(level3_name, level_desc, sizeof level_desc -1)
                                set_hudmessage(0, 255, 0, -1.0, 0.0, 0, 0.0, 1.0, 0.0, 0.2, -1)
                                //ormatex(scoreboard, 599, "%s %s - www.ubcsgameserver.net^nNight Day: %d %s^nBoss: %d Health / %d Velocity^nZombies: %d Health / %d Velocity / %d Respawns",
                                //        get_pcvar_num(zombie_level), level_desc, get_pcvar_num(level3_bosshp), get_pcvar_num(level3_bossmaxspeed), get_pcvar_num(level3_health), get_pcvar_num(level3_maxspeed), get_pcvar_num(level3_respawns))
                                formatex(scoreboard, 599, "绗?%d 鏃?%s^n鍠睄鐜? %d 鐢熷懡鍊?/ %d 閫熷害^n鍠睄: %d 鐢熷懡鍊?/ %d 閫熷害 / 閲嶇敓 %d 娆?,
                                        get_pcvar_num(zombie_level), level_desc, get_pcvar_num(level3_bosshp), get_pcvar_num(level3_bossmaxspeed), get_pcvar_num(level3_health), get_pcvar_num(level3_maxspeed), get_pcvar_num(level3_respawns))
                                ShowSyncHudMsg(0, g_hud, scoreboard)
                        }
                        case 4:
                        {
                                static scoreboard[600], level_desc[64]
                                server_cmd("zombie_knife 0")
                                get_pcvar_string(level4_name, level_desc, sizeof level_desc -1)
                                set_hudmessage(0, 255, 0, -1.0, 0.0, 0, 0.0, 1.0, 0.0, 0.2, -1)
                                //formatex(scoreboard, 599, "%s %s - www.ubcsgameserver.net^nNight Day: %d %s^nBoss: %d Health / %d Velocity^nZombies: %d Health / %d Velocity / %d Respawns",
                                //        get_pcvar_num(zombie_level), level_desc, get_pcvar_num(level4_bosshp), get_pcvar_num(level4_bossmaxspeed), get_pcvar_num(level4_health), get_pcvar_num(level4_maxspeed), get_pcvar_num(level4_respawns))
                                formatex(scoreboard, 599, "绗?%d 鏃?%s^n鍠睄鐜? %d 鐢熷懡鍊?/ %d 閫熷害^n鍠睄: %d 鐢熷懡鍊?/ %d 閫熷害 / 閲嶇敓 %d 娆?,
                                        get_pcvar_num(zombie_level), level_desc, get_pcvar_num(level4_bosshp), get_pcvar_num(level4_bossmaxspeed), get_pcvar_num(level4_health), get_pcvar_num(level4_maxspeed), get_pcvar_num(level4_respawns))
                                ShowSyncHudMsg(0, g_hud, scoreboard)
                        }
                        case 5:
                        {
                                static scoreboard[600], level_desc[64]
                                server_cmd("zombie_knife 0")
                                get_pcvar_string(level5_name, level_desc, sizeof level_desc -1)
                                set_hudmessage(0, 255, 0, -1.0, 0.0, 0, 0.0, 1.0, 0.0, 0.2, -1)
                                //formatex(scoreboard, 599, "%s %s - www.ubcsgameserver.net^nNight Day: %d %s^nBoss: %d Health / %d Velocity^nZombies: %d Health / %d Velocity / %d Respawns",
                                //        get_pcvar_num(zombie_level), level_desc, get_pcvar_num(level5_bosshp), get_pcvar_num(level5_bossmaxspeed), get_pcvar_num(level5_health), get_pcvar_num(level5_maxspeed), get_pcvar_num(level5_respawns))
                                formatex(scoreboard, 599, "绗?%d 鏃?%s^n鍠睄鐜? %d 鐢熷懡鍊?/ %d 閫熷害^n鍠睄: %d 鐢熷懡鍊?/ %d 閫熷害 / 閲嶇敓 %d 娆?,
                                        get_pcvar_num(zombie_level), level_desc, get_pcvar_num(level5_bosshp), get_pcvar_num(level5_bossmaxspeed), get_pcvar_num(level5_health), get_pcvar_num(level5_maxspeed), get_pcvar_num(level5_respawns))
                                ShowSyncHudMsg(0, g_hud, scoreboard)
                        }
                        case 6:
                        {
                                static scoreboard[600], level_desc[64]
                                server_cmd("zombie_knife 0")
                                get_pcvar_string(level6_name, level_desc, sizeof level_desc -1)
                                set_hudmessage(0, 255, 0, -1.0, 0.0, 0, 0.0, 1.0, 0.0, 0.2, -1)
                                //formatex(scoreboard, 599, "%s %s - www.ubcsgameserver.net^nNight Day: %d %s^nBoss: %d Health / %d Velocity^nZombies: %d Health / %d Velocity / %d Respawns",
                                //        get_pcvar_num(zombie_level), level_desc, get_pcvar_num(level6_bosshp), get_pcvar_num(level6_bossmaxspeed), get_pcvar_num(level6_health), get_pcvar_num(level6_maxspeed), get_pcvar_num(level6_respawns))
                                formatex(scoreboard, 599, "绗?%d 鏃?%s^n鍠睄鐜? %d 鐢熷懡鍊?/ %d 閫熷害^n鍠睄: %d 鐢熷懡鍊?/ %d 閫熷害 / 閲嶇敓 %d 娆?,
                                        get_pcvar_num(zombie_level), level_desc, get_pcvar_num(level6_bosshp), get_pcvar_num(level6_bossmaxspeed), get_pcvar_num(level6_health), get_pcvar_num(level6_maxspeed), get_pcvar_num(level6_respawns))
                                ShowSyncHudMsg(0, g_hud, scoreboard)
                        }
                        case 7:
                        {
                                static scoreboard[600], level_desc[64]
                                server_cmd("zombie_knife 0")
                                get_pcvar_string(level7_name, level_desc, sizeof level_desc -1)
                                set_hudmessage(0, 255, 0, -1.0, 0.0, 0, 0.0, 1.0, 0.0, 0.2, -1)
                                //formatex(scoreboard, 599, "%s %s - www.ubcsgameserver.net^nNight Day: %d %s^nBoss: %d Health / %d Velocity^nZombies: %d Health / %d Velocity / %d Respawns",
                                //        get_pcvar_num(zombie_level), level_desc, get_pcvar_num(level7_bosshp), get_pcvar_num(level7_bossmaxspeed), get_pcvar_num(level7_health), get_pcvar_num(level7_maxspeed), get_pcvar_num(level7_respawns))
                                formatex(scoreboard, 599, "绗?%d 鏃?%s^n鍠睄鐜? %d 鐢熷懡鍊?/ %d 閫熷害^n鍠睄: %d 鐢熷懡鍊?/ %d 閫熷害 / 閲嶇敓 %d 娆?,
                                        get_pcvar_num(zombie_level), level_desc, get_pcvar_num(level7_bosshp), get_pcvar_num(level7_bossmaxspeed), get_pcvar_num(level7_health), get_pcvar_num(level7_maxspeed), get_pcvar_num(level7_respawns))
                                ShowSyncHudMsg(0, g_hud, scoreboard)
                        }
                        case 8:
                        {
                                static scoreboard[600], level_desc[64]
                                server_cmd("zombie_knife 0")
                                get_pcvar_string(level8_name, level_desc, sizeof level_desc -1)
                                set_hudmessage(0, 255, 0, -1.0, 0.0, 0, 0.0, 1.0, 0.0, 0.2, -1)
                                //formatex(scoreboard, 599, "%s %s - www.ubcsgameserver.net^nNight Day: %d %s^nBoss: %d Health / %d Velocity^nZombies: %d Health / %d Velocity / %d Respawns",
                                //        get_pcvar_num(zombie_level), level_desc, get_pcvar_num(level8_bosshp), get_pcvar_num(level8_bossmaxspeed), get_pcvar_num(level8_health), get_pcvar_num(level8_maxspeed), get_pcvar_num(level8_respawns))
                                formatex(scoreboard, 599, "绗?%d 鏃?%s^n鍠睄鐜? %d 鐢熷懡鍊?/ %d 閫熷害^n鍠睄: %d 鐢熷懡鍊?/ %d 閫熷害 / 閲嶇敓 %d 娆?,
                                        get_pcvar_num(zombie_level), level_desc, get_pcvar_num(level8_bosshp), get_pcvar_num(level8_bossmaxspeed), get_pcvar_num(level8_health), get_pcvar_num(level8_maxspeed), get_pcvar_num(level8_respawns))
                                ShowSyncHudMsg(0, g_hud, scoreboard)
                        }
                        case 9:
                        {
                                static scoreboard[600], level_desc[64]
                                server_cmd("zombie_knife 0")
                                get_pcvar_string(level9_name, level_desc, sizeof level_desc -1)
                                set_hudmessage(0, 255, 0, -1.0, 0.0, 0, 0.0, 1.0, 0.0, 0.2, -1)
                                //formatex(scoreboard, 599, "%s %s - www.ubcsgameserver.net^nNight Day: %d %s^nBoss: %d Health / %d Velocity^nZombies: %d Health / %d Velocity / %d Respawns",
                                //        get_pcvar_num(zombie_level), level_desc, get_pcvar_num(level9_bosshp), get_pcvar_num(level9_bossmaxspeed), get_pcvar_num(level9_health), get_pcvar_num(level9_maxspeed), get_pcvar_num(level9_respawns))
                                formatex(scoreboard, 599, "绗?%d 鏃?%s^n鍠睄鐜? %d 鐢熷懡鍊?/ %d 閫熷害^n鍠睄: %d 鐢熷懡鍊?/ %d 閫熷害 / 閲嶇敓 %d 娆?,
                                        get_pcvar_num(zombie_level), level_desc, get_pcvar_num(level9_bosshp), get_pcvar_num(level9_bossmaxspeed), get_pcvar_num(level9_health), get_pcvar_num(level9_maxspeed), get_pcvar_num(level9_respawns))
                                ShowSyncHudMsg(0, g_hud, scoreboard)
                        }
                        case 10:
                        {
                                static scoreboard[600], level_desc[64]
                                server_cmd("zombie_knife 0")
                                get_pcvar_string(level10_name, level_desc, sizeof level_desc -1)
                                set_hudmessage(255, 0, 0, -1.0, 0.0, 0, 0.0, 1.0, 0.0, 0.2, -1)
                                //formatex(scoreboard, 599, "%s %s - www.ubcsgameserver.net^nNight Day: %d %s^nBoss: %d Health / %d Velocity^nZombies: %d Health / %d Velocity / %d Respawns",
                                //        get_pcvar_num(zombie_level), level_desc, get_pcvar_num(level10_bosshp), get_pcvar_num(level10_bossmaxspeed), get_pcvar_num(level10_health), get_pcvar_num(level10_maxspeed), get_pcvar_num(level10_respawns))
                                formatex(scoreboard, 599, "绗?%d 鏃?%s^n鍠睄鐜? %d 鐢熷懡鍊?/ %d 閫熷害^n鍠睄: %d 鐢熷懡鍊?/ %d 閫熷害 / 閲嶇敓 %d 娆?,
                                        get_pcvar_num(zombie_level), level_desc, get_pcvar_num(level10_bosshp), get_pcvar_num(level10_bossmaxspeed), get_pcvar_num(level10_health), get_pcvar_num(level10_maxspeed), get_pcvar_num(level10_respawns))
                                ShowSyncHudMsg(0, g_hud, scoreboard)
                        }
                }
        }
}

使用道具 举报

Rank: 7Rank: 7Rank: 7

帖子
971
精华
0
声望
2171 点
金币
165 Mold
被赞许
0 次
注册时间
2009-7-14
发表于 2010-8-6 09:48:48 |显示全部楼层
晕了,看不懂的说

使用道具 举报

Rank: 5Rank: 5

帖子
604
精华
0
声望
915 点
金币
65 Mold
被赞许
0 次
注册时间
2009-12-19
发表于 2010-8-6 10:04:41 |显示全部楼层
下个AMXX编译器、、、我没!!希望高手在下面发一个!!!
牛B、NB、超级NB、超级超级NB、狠、NB的狠·

使用道具 举报

Rank: 7Rank: 7Rank: 7

帖子
1259
精华
1
声望
2866 点
金币
430 Mold
被赞许
0 次
注册时间
2009-6-18
发表于 2010-8-6 10:56:31 |显示全部楼层
这个不是普通记分牌吧?
怎么有关于BOSS血量和僵尸等级?

使用道具 举报

Honorary Member

地狱恶势力

Rank: 7Rank: 7Rank: 7

帖子
3449
精华
4
声望
15019 点
金币
2052 Mold
被赞许
90 次
注册时间
2010-4-4

Modchina灌水王 可爱小猫 懒人勋章

发表于 2010-8-6 11:28:26 |显示全部楼层
不明白lz要修改啥~爱莫能助...我不会

使用道具 举报

Rank: 7Rank: 7Rank: 7

帖子
455
精华
0
声望
1666 点
金币
241 Mold
被赞许
11 次
注册时间
2009-4-3
发表于 2010-8-6 11:56:38 |显示全部楼层
这个不是普通的记分牌,我的意思是不想显示这个记分牌

使用道具 举报

Rank: 5Rank: 5

帖子
680
精华
0
声望
1301 点
金币
276 Mold
被赞许
0 次
注册时间
2009-8-23
发表于 2010-8-6 11:58:38 |显示全部楼层

使用道具 举报

Rank: 7Rank: 7Rank: 7

帖子
455
精华
0
声望
1666 点
金币
241 Mold
被赞许
11 次
注册时间
2009-4-3
发表于 2010-8-6 13:46:37 |显示全部楼层

插件高手请进来,帮我修改一下

难道没人会吗?还是不屑一顾?

使用道具 举报

Rank: 7Rank: 7Rank: 7

帖子
455
精华
0
声望
1666 点
金币
241 Mold
被赞许
11 次
注册时间
2009-4-3
发表于 2010-8-7 09:52:24 |显示全部楼层
回复 7# q774862895

我有插件编辑器,但就是不知道怎样修改上面这段源码,才能让记分牌不显示。

使用道具 举报

Administrator

荻野埃及

Rank: 15Rank: 15Rank: 15Rank: 15Rank: 15

帖子
605
精华
0
声望
8563 点
金币
1495 Mold
被赞许
19 次
注册时间
2006-2-5
发表于 2010-8-8 10:09:02 |显示全部楼层
在所有ShowSyncHudMsg和set_hudmessage前加"//"双斜杠
好了不多解释,自己解决去

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

回顶部