Advertisement
Shiny_

Untitled

Jan 12th, 2021
1,580
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.85 KB | None | 0 0
  1.         pConsole->AddVariable("maxplayers", CON_VARTYPE_INT, 0, &iMaxPlayers);
  2.         pConsole->AddVariable("port", CON_VARTYPE_INT, 0, &iListenPort);
  3.         pConsole->AddStringVariable("bind", 0, gServerSettings.szBindIp);
  4.         pConsole->AddVariable("lanmode",CON_VARTYPE_BOOL,0, &bLanModeEnable);
  5.         pConsole->AddVariable("query",CON_VARTYPE_BOOL, 0, &bAllowQuery);
  6.  
  7. #ifdef RAKRCON
  8.         pConsole->AddVariable("rcon_port", CON_VARTYPE_INT, 0, &iRconPort);
  9.         pConsole->AddVariable("rcon_maxadmins", CON_VARTYPE_INT, 0, &iRconMaxAdmins);
  10.         pConsole->AddStringVariable("rcon_bind", 0, NULL);
  11. #endif
  12.  
  13. #ifdef LINUX
  14.     pConsole->AddVariable("output",CON_VARTYPE_BOOL,0,&bOutputEnable);
  15. #endif
  16.  
  17.     pConsole->AddVariable("timestamp",CON_VARTYPE_BOOL,0,&bEnableTimestamp);
  18.     pConsole->AddStringVariable("password", 0, NULL, ServerPasswordChanged);
  19.     pConsole->AddStringVariable("hostname", 0, "SA:MP Server");
  20.     pConsole->AddStringVariable("mapname", CON_VARFLAG_RULE, "San Andreas");
  21.     pConsole->AddStringVariable("weburl", CON_VARFLAG_RULE, "www.sa-mp.com");
  22.     pConsole->AddStringVariable("rcon_password", 0, "changeme");
  23.     pConsole->AddStringVariable("gravity", CON_VARFLAG_RULE, "0.008");
  24.     pConsole->AddStringVariable("weather", CON_VARFLAG_RULE, "10");
  25.     //pConsole->AddStringVariable("tirepopping", CON_VARFLAG_RULE, "0");
  26.     pConsole->AddStringVariable("gamemodetext", 0, "Unknown");
  27.     pConsole->AddStringVariable("filterscripts", 0, "");
  28.     pConsole->AddStringVariable("plugins", 0, "");
  29.     pConsole->AddStringVariable("nosign", 0, "");
  30.     pConsole->AddVariable("anticheat",CON_VARTYPE_BOOL, /* CON_VARFLAG_RULE */ 0, &bEnableAC);
  31.     pConsole->AddVariable("instagib", CON_VARTYPE_BOOL, CON_VARFLAG_RULE, &bEnableInstagib, ServerInstagibChanged);
  32.     pConsole->AddVariable("myriad", CON_VARTYPE_BOOL, 0, &bGameMod);
  33.     pConsole->AddStringVariable("version", CON_VARFLAG_RULE | CON_VARFLAG_READONLY, SAMP_VERSION);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement