Quote:
Originally Posted by nea
because 'say nextmap' not hooked by plugin this plugin, the plugin who hook it is nextmap.amxx
u can edit this message in nextmap.amxx
here's the code u can change in nextmap.sma
PHP Code:
..
public sayNextMap()
{
new name[32]
getNextMapName(name, charsmax(name))
client_print(0, print_chat, "%L %s", LANG_PLAYER, "NEXT_MAP", name)
}
..
change this code to :
PHP Code:
..
public sayNextMap()
{
new name[32]
getNextMapName(name, charsmax(name))
client_print_color(0,print_team_red, "^4%L ^3%s",LANG_PLAYER, "NEXT_MAP", name)
}
..
so now it must be colored.
|
Thanks you , but i still need one more thing
look to this code
PHP Code:
if(key == 1)
{
g_bChangeInNew = true
new best = 0
if (!g_yesNoVote)
{
new g_voteCount[4]
for (new a = 0; a < 2; ++a)
if (g_voteCount[a] > g_voteCount[best])
best = a
}
set_cvar_string("amx_nextmap", g_optionName[best])
ColorChat(0,GREY, "^4[ZP]^1 This's the last round, The next map will be^4 %s", g_optionName[best])
return PLUGIN_HANDLED
}
This code from adminvote that i edited, ok ?
after map voted, the result is g_optionName[best] , well ?
i want when this vote end, see in nextmap " = g_optionName[best]
well ?
i added this code
PHP Code:
set_cvar_string("amx_nextmap", g_optionName[best])
the problem , the result is ; playing map, not the next , i want to type next map that came from admin vote (g_optionName[best])
i can't understand why it give name of map i playing , not the next
do you have any idea for that?