Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

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

Admin Activities (Attendance Plugin)


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

Napisano 16.12.2015 20:41

<div><b><font color="DarkOrange">Special Thanks:</font></b><br /><br /><font color="Green">Well, Before introducing this plugin, I would like to give credit to @EthicalHacker007 because this plugin is made by him, not by me, idea was just mine, he made it for me and now I'm just presenting it to everyone.</font><br /><br /><font color="DarkOrange"><b>Description:</b></font><br /><br /><font color="Green">Simply, this plugin allow us, to record the admins activities that on which date and time they joined and what time they left, what was the admin name and what was his steam id, means you will be able to record admins status, even with any nicks he join, but you will be able to record every admins activity, so just you can keep monitoring on your admins team ..!!</font><br /><br /><b><font color="DarkOrange">Activity Which Will Be Recorded, Will Be In This Manner:</font></b><br /><font color="Red"><br />&quot;Format : [ Date ] [ Admin Name ] [ STEAM ID ] [ Join Time ] [ Disconnect Time ]&quot;<br /></font><br /><font color="DarkOrange"><b>All Monitored Stuff Will Be Present In:</b></font><br /> <br /><font color="Red">Root&gt;cstrike&gt;addons&gt;amxmodx&gt;configs&gt;admin_act ivities.ini</font><br /><b><br /><font color="DarkOrange">Will Monitor Flag:</font></b><br /><br /><font color="Red">ADMIN_KICK</font><br /><br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #FF8000">#include&nbsp;&lt;&nbsp;amxmodx&nbsp;&gt;&nbsp;&nbsp;
<br />#include&nbsp;&lt;&nbsp;amxmisc&nbsp;&gt;&nbsp;&nbsp;
<br />
<br />#define&nbsp;ADMIN_ACCES&nbsp;ADMIN_KICK&nbsp;&nbsp;
<br />
<br /></span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">g_szName&nbsp;</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">33&nbsp;</span><span style="color: #007700">]&nbsp;,&nbsp;</span><span style="color: #0000BB">g_iFile&nbsp;</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">128&nbsp;</span><span style="color: #007700">]&nbsp;&nbsp;
<br />new&nbsp;const&nbsp;</span><span style="color: #0000BB">g_szFileName&nbsp;</span><span style="color: #007700">[&nbsp;]&nbsp;&nbsp;=&nbsp;&nbsp;</span><span style="color: #DD0000">"admin_activities.ini"&nbsp;&nbsp;
<br /></span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">o</span><span style="color: #007700">,</span><span style="color: #0000BB">m</span><span style="color: #007700">,</span><span style="color: #0000BB">s</span><span style="color: #007700">,</span><span style="color: #0000BB">o1</span><span style="color: #007700">,</span><span style="color: #0000BB">m1</span><span style="color: #007700">,</span><span style="color: #0000BB">s1&nbsp;&nbsp;
<br /></span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">g_szAuthId&nbsp;</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">33&nbsp;</span><span style="color: #007700">]&nbsp;&nbsp;
<br />
<br />
<br />public&nbsp;</span><span style="color: #0000BB">plugin_init&nbsp;</span><span style="color: #007700">(&nbsp;)&nbsp;{&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">register_plugin&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">"Admin&nbsp;Activities"&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"0.1"&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"HamletEagle"&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />}&nbsp;&nbsp;
<br />
<br />public&nbsp;</span><span style="color: #0000BB">plugin_cfg&nbsp;</span><span style="color: #007700">(&nbsp;)&nbsp;{&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">Dir&nbsp;</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">66&nbsp;</span><span style="color: #007700">]&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">get_configsdir&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">Dir&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">sizeof&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">Dir&nbsp;</span><span style="color: #007700">)&nbsp;-</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">formatex&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">g_iFile&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">sizeof&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">g_iFile&nbsp;</span><span style="color: #007700">)&nbsp;-</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"%s/%s"&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Dir&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">g_szFileName&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!</span><span style="color: #0000BB">file_exists&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">g_iFile&nbsp;</span><span style="color: #007700">)&nbsp;)&nbsp;{&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">write_file&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">g_iFile&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">";Here&nbsp;you&nbsp;can&nbsp;view&nbsp;your&nbsp;admins&nbsp;online&nbsp;time"&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">write_file&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">g_iFile&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">";Format&nbsp;:&nbsp;[&nbsp;Date&nbsp;]&nbsp;[&nbsp;Admin&nbsp;Name&nbsp;]&nbsp;[&nbsp;STEAM&nbsp;ID&nbsp;]&nbsp;&nbsp;[&nbsp;Join&nbsp;Time&nbsp;]&nbsp;[&nbsp;Disconnect&nbsp;Time&nbsp;]"&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />}&nbsp;&nbsp;
<br />
<br />
<br />
<br />public&nbsp;</span><span style="color: #0000BB">client_putinserver&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">)&nbsp;{&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;</span><span style="color: #0000BB">get_user_flags&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">)&nbsp;&amp;&nbsp;</span><span style="color: #0000BB">ADMIN_ACCES&nbsp;</span><span style="color: #007700">)&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">GetTime&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />}&nbsp;&nbsp;
<br />
<br />
<br />
<br />public&nbsp;</span><span style="color: #0000BB">client_disconnect&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">)&nbsp;{&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;</span><span style="color: #0000BB">get_user_flags&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">)&nbsp;&amp;&nbsp;</span><span style="color: #0000BB">ADMIN_ACCES&nbsp;</span><span style="color: #007700">)&nbsp;{&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">GetTime&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">2&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">WriteFile&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;
<br />}&nbsp;&nbsp;
<br />
<br />public&nbsp;</span><span style="color: #0000BB">GetTime&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">value&nbsp;</span><span style="color: #007700">)&nbsp;{&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;</span><span style="color: #0000BB">value&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">time&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">o&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">m&nbsp;</span><span style="color: #007700">,</span><span style="color: #0000BB">s&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;</span><span style="color: #0000BB">value&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">2&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">time&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">o1&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">m1&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">s1&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />}&nbsp;&nbsp;
<br />
<br />public&nbsp;&nbsp;</span><span style="color: #0000BB">WriteFile&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;{&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">iYear</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">iMonth</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">iDay</span><span style="color: #007700">;&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #0000BB">iYear</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">iMonth</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">iDay</span><span style="color: #007700">);&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">iLine&nbsp;</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">256&nbsp;</span><span style="color: #007700">]&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">get_user_name&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">g_szName&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">sizeof&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">g_szName&nbsp;</span><span style="color: #007700">)&nbsp;-</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">get_user_authid&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">g_szAuthId&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">sizeof&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">g_szAuthId&nbsp;</span><span style="color: #007700">)&nbsp;-&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">formatex&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">iLine&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">sizeof&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">iLine&nbsp;</span><span style="color: #007700">)&nbsp;-&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"[&nbsp;%i:%i:%i&nbsp;]&nbsp;[&nbsp;%s&nbsp;]&nbsp;[&nbsp;%s&nbsp;]&nbsp;[&nbsp;%i:%i:%i&nbsp;]&nbsp;[&nbsp;%i:%i:%i&nbsp;]&nbsp;"&nbsp;</span><span style="color: #007700">,</span><span style="color: #0000BB">iYear</span><span style="color: #007700">,</span><span style="color: #0000BB">iMonth</span><span style="color: #007700">,</span><span style="color: #0000BB">iDay&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">g_szName&nbsp;&nbsp;</span><span style="color: #007700">,</span><span style="color: #0000BB">g_szAuthId</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">o</span><span style="color: #007700">,</span><span style="color: #0000BB">m</span><span style="color: #007700">,</span><span style="color: #0000BB">s&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">o1</span><span style="color: #007700">,</span><span style="color: #0000BB">m1</span><span style="color: #007700">,</span><span style="color: #0000BB">s1&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">write_file&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">g_iFile&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">iLine&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;
<br />}&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div></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...ttach/amxx.gif"alt="File Type: amxx" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...vities.amxx</a>(3.5 KB)


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

<a href="http://www.amxmodx.o...64"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1450298428">GetSource</a> (admin_activities.sma - 1.8 KB)

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


<a href="https://forums.allie...ivities.zip</a>(4.4 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