mirror of
https://github.com/accelerator74/l4dtoolz.git
synced 2025-09-19 12:16:18 +08:00
Update l4dtoolz_mm.cpp
This commit is contained in:
@ -99,7 +99,7 @@ void l4dtoolz::OnChangeUnreserved ( IConVar *var, const char *pOldValue, float f
|
|||||||
if(new_value != old_value) {
|
if(new_value != old_value) {
|
||||||
if(new_value == 1) {
|
if(new_value == 1) {
|
||||||
write_signature(unreserved_ptr, unreserved_new);
|
write_signature(unreserved_ptr, unreserved_new);
|
||||||
engine->ServerCommand("sv_allow_lobby_connect_only 0");
|
engine->ServerCommand("sv_allow_lobby_connect_only 0\n");
|
||||||
} else {
|
} else {
|
||||||
write_signature(unreserved_ptr, unreserved_org);
|
write_signature(unreserved_ptr, unreserved_org);
|
||||||
}
|
}
|
||||||
@ -160,7 +160,7 @@ bool l4dtoolz::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool
|
|||||||
if(tmp_player) {
|
if(tmp_player) {
|
||||||
get_original_signature(tmp_player, players_new, players_org);
|
get_original_signature(tmp_player, players_new, players_org);
|
||||||
write_signature(tmp_player, players_new);
|
write_signature(tmp_player, players_new);
|
||||||
engine->ServerCommand("maxplayers 32");
|
engine->ServerCommand("maxplayers 32\n");
|
||||||
engine->ServerExecute();
|
engine->ServerExecute();
|
||||||
write_signature(tmp_player, players_org);
|
write_signature(tmp_player, players_org);
|
||||||
free(players_org);
|
free(players_org);
|
||||||
|
Reference in New Issue
Block a user