Half-Life и Adrenaline Gamer форум
http://aghl.ru/forum/

AG mini (vote + game name) bug !!!
http://aghl.ru/forum/viewtopic.php?f=12&t=2568
Страница 1 из 1

Автор:  Kuma77 [ 02 окт 2016, 17:52 ]
Заголовок сообщения:  AG mini (vote + game name) bug !!!

Hi there , i have bugs on agmini
1- first one is game name eg : if gamemod is instagib then game name will be instagib and so .

but mine is emty there is no game name . but i try to fix that using amxx

Код:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta_util>

#define PLUGIN "AG GameName Fix"
#define VERSION "1.0"
#define AUTHOR "Kuma"

new pCvar_gamemode
new g_mod[32]

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   pCvar_gamemode = get_cvar_pointer("sv_ag_gamemode")
   get_pcvar_string(pCvar_gamemode, g_mod, charsmax(g_mod))
   register_forward(FM_GetGameDescription   , "fwd_GetGameDescription")
}
public fwd_GetGameDescription()
{
   new szFormat[32]
   formatex(szFormat, charsmax(szFormat), "%s", g_mod)
   forward_return(FMV_STRING, g_mod)
   return FMRES_SUPERCEDE
}

but when i use this code its hows me Agmini in game name not even gamemods name

2- second problem i think this problem is known becouse i saw it on other servers ! its about voting when players vote stalkx , map changing to different map .

Автор:  Lev [ 02 окт 2016, 21:48 ]
Заголовок сообщения:  Re: AG mini (vote + game name) bug !!!

1. Check other places where gamemode can be set, for example dproto.cfg
2. Setup amxx correctly.

Автор:  Kuma77 [ 03 окт 2016, 01:55 ]
Заголовок сообщения:  Re: AG mini (vote + game name) bug !!!

Lev писал(а):
well done , thx!

Lev писал(а):
1. Check other places where gamemode can be set, for example dproto.cfg
.
it was
Цитата:
Game_Name =
but when i remove it, same result =) can you explane more !

Автор:  Lev [ 03 окт 2016, 15:54 ]
Заголовок сообщения:  Re: AG mini (vote + game name) bug !!!

1. Remove AMXX and check if issue persists.

Автор:  Kuma77 [ 04 окт 2016, 02:38 ]
Заголовок сообщения:  Re: AG mini (vote + game name) bug !!!

Lev писал(а):
1. Remove AMXX and check if issue persists.
Solved , its all about dproto i just update to newest version.
Thank you !

Страница 1 из 1 Часовой пояс: UTC + 5 часов [ Летнее время ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/