server_changelevel

Синтаксис

forward server_changelevel(map[]);

Употреба

map
Map that the mod tries to change to

Описание

Called when the mod tries to change the map.

Забележка

This is *only* called if the mod itself handles the map change. The
server command "changelevel", which is used by many plugins, will not
trigger this forward. Unfortunately, this means that in practice this
forward can be unreliable and will not be called in many situations.

Забележка

AMXX 1.8.3 has added the engine_changelevel() function, which will utilize
the correct engine function to change the map, and therefore trigger
this forward.

Връщаща стойност

PLUGIN_CONTINUE to let the mod change the map
PLUGIN_HANDLED or higher to prevent the map change