Skocz do zawartości

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.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

[The Ship] Vote Map Console Command Fix


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 490
  • Lokalizacja:AMXX.PL
Offline

Napisano 18.11.2013 00:16

<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hi,<br /> <br /><a href="http://store.steampo...d.com/app/2400/" target="_blank">&quot;The Ship&quot;</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 &quot;The Ship&quot; have had compatibility problems, including SourceMod 1.5.2 . <br /> <br />&quot;The Ship&quot; 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 &quot;The Ship&quot;. SourceMod also prevents &quot;The Ship's&quot; console votemap command from changing the map to the voted for map.<br /><br /> The changelevel command does work. So this plugin simply fixes &quot;The Ship's&quot; votemap console command by making &quot;The Ship&quot; 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 &lt;sourcemod&gt;<br />public Plugin:myinfo = <br />{<br />&nbsp;name = &quot;The Ship's Console Vote Map Command Fix&quot;,<br />&nbsp;author = &quot;Joe9&quot;,<br />&nbsp;description = &quot;Makes The Ship's console votemap command work in SourceMod 1.5.2&quot;,<br />&nbsp;version = &quot;1.0&quot;,<br />&nbsp;url = &quot;&quot;<br />}<br />public OnPluginStart()<br />{<br />&nbsp;HookEvent(&quot;map_change_notification&quot;,changeMap)<br />}<br />public changeMap(Handle:event,const String:name[],bool:dontBroadcast)<br />{<br />&nbsp;new String: map[20]<br />&nbsp;GetEventString(event,&quot;newMapName&quot;,map,20)<br />&nbsp;ServerCommand(&quot;changelevel %s&quot;,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ł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych