<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 -> you will find the number of currently connected clients here</li>
<li>listofplayers.txt -> holds a list of all players currently connected</li>
<li>idlenow.txt -> 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>-> the plugin's version, obviously...</li>
<li><b>sm_spc_countplayersfile </b>-> File name for keeping track of the number of connected players. If set to "", the file will not be generated</li>
<li><b>sm_spc_listplayersfile </b>-> File name for generating the list of players. Again: "" means no file.</li>
<li><b>sm_spc_idlefile </b>-> File name for indicating when the server has no playsers. "" = no such file.</li>
</ul><br /><b><font size="3">Installation</font></b><br /><br />Plain & 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ł
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
[ANY] Simple Player Counter 0.5.3 (2016-09-13)
Temat rozp. Adminek AMXX.PL, 13.09.2016 20:13
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych