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

[ANY] Simple Player Counter 0.5.3 (2016-09-13)


  • 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 476
  • Lokalizacja:AMXX.PL
Offline

Napisano 13.09.2016 20:13

<div><b><font size="4">Simple Player Counter</font></b><br /><br />This is a simple plugin (my first one! :-) serving a very specific purpose: it keeps track of the players that are currently playing on a server by maintaining zero to three files:<ul><li>numberofplayers.txt -&gt; you will find the number of currently connected clients here</li>
<li>listofplayers.txt -&gt; holds a list of all players currently connected</li>
<li>idlenow.txt -&gt; indicates when no one is connected</li>
</ul><br />Why would you need that? Well - you don't necessarily, I think. For me, I was looking for a simple way to check my server's activity by just logging in via SSH and looking into some files (so you don't have to start the game itself). I also use the idlenow.txt file to automatically update the server when no one is connected.<br /><br />Maybe there are other, even more simple ways to check how many clients are connected (and that can also be used in an automatic update script running periodically)? I don't really know, to be honest. But for me this was kind of fun to write my first SourceMod plugin, so here we are! :)<br /><br /><b><font size="3">CVars</font></b><ul><li><b>sm_spc_version </b>-&gt; the plugin's version, obviously...</li>
<li><b>sm_spc_countplayersfile </b>-&gt; File name for keeping track of the number of connected players. If set to &quot;&quot;, the file will not be generated</li>
<li><b>sm_spc_listplayersfile </b>-&gt; File name for generating the list of players. Again: &quot;&quot; means no file.</li>
<li><b>sm_spc_idlefile </b>-&gt; File name for indicating when the server has no playsers. &quot;&quot; = no such file.</li>
</ul><br /><b><font size="3">Installation</font></b><br /><br />Plain &amp; easy: put the <i>simpleplayercounter.smx</i> into your SourceMod config folder and Bob's your uncle. If you want to rename or disable one or more of the files described above, just edit the file <i>.../cfg/sourcemod/plugin.simpleplayercounter.cfg</i> (after having loaded the plugin at least once).<br /><br /><b><font size="3">Download</font></b><br /><br /><b>You will always find the most recent version on GitHub!</b><br /><a href="https://github.com/a...player_counter"target="_blank">https://github.com/a...unter</a></div>


<br /> <div style="padding:6px">








<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<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...counter.smx</a>(5.6 KB)


</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/sp.gif"alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="http://www.sourcemod...96"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1473793920">GetSource</a> (simpleplayercounter.sp - 4.6 KB)


</td>
</tr>
</table>
</fieldset>


</div>

Wyświetl pełny artykuł




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

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