Raised This Month: $51 Target: $400
 12% 

[The Ship] Vote Map Console Command Fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Joe9
New Member
Join Date: Nov 2011
Plugin ID:
3972
Plugin Version:
1.00
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Fixes "The Ship's" console votemap command by using the changelevel command.
    Old 11-17-2013 , 18:16   [The Ship] Vote Map Console Command Fix
    Reply With Quote #1

    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)
    }
    Attached Files
    File Type: sp Get Plugin or Get Source (votemapFix.sp - 1069 views - 556 Bytes)
    File Type: smx votemapFix.smx (2.9 KB, 470 views)

    Last edited by Joe9; 11-17-2013 at 18:18.
    Joe9 is offline
    Refalm
    Junior Member
    Join Date: Apr 2009
    Old 06-13-2014 , 16:58   Re: [The Ship] Vote Map Console Command Fix
    Reply With Quote #2

    Thank you so much, I love you
    Refalm is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 13:44.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode