<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hi,<br /> <br /><a href="http://store.steampo...d.com/app/2400/" target="_blank">"The Ship"</a> needs to be added to this forum's list of games.<br /><br /> All the versions of SourceMod I've tried to use with "The Ship" have had compatibility problems, including SourceMod 1.5.2 . <br /> <br />"The Ship" is not compatible with Metamod:Source 1.10.0, it is compatible with Metamod:Source 1.9.2 (<a href="http://www.sourcemm.net/downloads/mmsource-1.9.2-windows.zip" target="_blank">Windows</a>,<a href="http://www.sourcemm.net/downloads/mmsource-1.9.2-linux.tar.gz" target="_blank">Linux</a>,<a href="http://www.sourcemm.net/downloads/mmsource-1.9.2-mac.zip" target="_blank">Mac</a>).<br /><br /> 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.<br /><br /> 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.<br /><br /><b>Source Code</b><br /><br /> <!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">/* Plugin Template generated by Pawn Studio */<br />#include <sourcemod><br />public Plugin:myinfo = <br />{<br /> name = "The Ship's Console Vote Map Command Fix",<br /> author = "Joe9",<br /> description = "Makes The Ship's console votemap command work in SourceMod 1.5.2",<br /> version = "1.0",<br /> url = ""<br />}<br />public OnPluginStart()<br />{<br /> HookEvent("map_change_notification",changeMap)<br />}<br />public changeMap(Handle:event,const String:name[],bool:dontBroadcast)<br />{<br /> new String: map[20]<br /> GetEventString(event,"newMapName",map,20)<br /> ServerCommand("changelevel %s",map)<br />}</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></div>
<br /> <div style="padding:6px">
<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie...s/attach/sp.gif" alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="http://www.sourcemod...?file_id=127873"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1384729321">Get Source</a> (votemapFix.sp - 556 Bytes)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/smx.gif" alt="File Type: smx" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="https://forums.allie...38;d=1384729353">votemapFix.smx</a> (2.9 KB)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment -->
</table>
</fieldset>
</div>
<!-- END TEMPLATE: postbit_external -->
Wyświetl pełny artykuł
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
[The Ship] Vote Map Console Command Fix
Temat rozp. Adminek AMXX.PL, 18.11.2013 00:16
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych