Everybody know that when you change the hostname in the middle of the game, it won't show to the players until they reconnect, or map change.
How can i do this ? To instantly update the server hostname, in order to show the changed hostname immediately to the online players?
The function will be used for a war servers plugin. Here is my actual function
PHP Code:
replace(generalsay, sizeof (generalsay) - 1, ".start ", "");
new tag1[16], tag2[16];
strtok(generalsay, tag1, sizeof (tag1) - 1, tag2, sizeof (tag2) - 1, '+');
client_print(0, print_chat, "Tag1: %s, Tag2: %s", tag1, tag2);
client_print(0, print_chat, "Tag1: %s, Tag2: %s", tag1, tag2);
client_print(0, print_chat, "Tag1: %s, Tag2: %s", tag1, tag2);
new hhhh[32];
formatex(hhhh, sizeof (hhhh) - 1, "%L %s vs. %s", LANG_SERVER, "NUME_BOT", tag1, tag2);
set_cvar_string("hostname", hhhh);
And the start command is in say_chat
.start CLAN1+CLAN2
and the clans splitted by strtok with the aid of that plus.
Thank you very much for your support and your time.