Amaroq7 / SPMod

SourcePawn Scripting Engine for Half-Life 1 based games
GNU General Public License v3.0
27 stars 12 forks source link

Add ChangeLevel native & OnMapChange forward #21

Closed nulxrd closed 6 years ago

nulxrd commented 6 years ago

Description

Add ChangeLevel native & OnMapChange forward

Motivation and Context

I added the native and forward so that it was possible correctly to change the map

How has this been tested?

public void OnClientPutInServer()
{
    ChangeLevel("cs_militia");
}
public PluginReturn OnMapChange(const char[] map) {
    printToServer("map %s", map);
    return PluginStop;
}

Screenshots (if appropriate):

screenshot_1

Types of changes

Checklist: