Hi,
"The Ship" needs to be added to this forum's list of games.
All the versions of SourceMod I've tried to use with "The Ship" have had compatibility problems, including SourceMod 1.5.2 .
"The Ship" is not compatible with Metamod:Source 1.10.0, it is compatible with Metamod:Source 1.9.2 (
Windows,
Linux,
Mac).
The SourceMod GUI map vote commands have compatibility problems which prevent them from being usable in "The Ship". SourceMod also prevents "The Ship's" console votemap command from changing the map to the voted for map.
The changelevel command does work. So this plugin simply fixes "The Ship's" votemap console command by making "The Ship" use the changelevel command when a map vote is sucessful.
Source Code
Code:
/* Plugin Template generated by Pawn Studio */
#include <sourcemod>
public Plugin:myinfo =
{
name = "The Ship's Console Vote Map Command Fix",
author = "Joe9",
description = "Makes The Ship's console votemap command work in SourceMod 1.5.2",
version = "1.0",
url = ""
}
public OnPluginStart()
{
HookEvent("map_change_notification",changeMap)
}
public changeMap(Handle:event,const String:name[],bool:dontBroadcast)
{
new String: map[20]
GetEventString(event,"newMapName",map,20)
ServerCommand("changelevel %s",map)
}