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] Player Reputations v1.0.0


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

Napisano 16.04.2016 07:22

<div><font face="Impact"><div align="center"><font size="6">[ANY] Player Reputations</font></div></font><br /><div align="center"><font size="2"><i>v1.0.0</i></font></div><br /><b><font size="4">Description:</font></b><br /><br />This plugin allows players to rate each other creating a system of reputation.<br />Originally meant to be used as a reputation system for trade servers to show who are regular sellers/buyers.<br />I decided to release this because I haven't done much in terms of public plugins so I want to release some stuff and more are coming soon :)<br /><br />Hasn't really had extensive testing so any bug testers are welcome and appreciated.<br /><br />Been working on a custom web page to display reputations and I'll most likely release that later if there is a want for one.<br />Meanwhile: <a href="http://arcticgaming....eputations.php"target="_blank">http://arcticgaming....ions.php</a><br /><br /><b><font size="4">Commands:</font></b><ul><li><b>sm_rep &lt;client&gt;</b> - Displays a client's reputation</li>
<li><b>sm_updaterep &lt;client&gt; [amount] &lt;reason&gt;</b> - Updates a reputation to a client</li>
<li><b>sm_addrep &lt;client&gt; [amount] &lt;reason&gt;</b> - Adds reputation to a client</li>
</ul><br /><b><font size="4">Admin Commands:</font></b><ul><li><b>sm_clearrep &lt;client&gt;</b> - Clears a client's reputation (Root Admin by default)</li>
</ul><br /><b><font size="4">Cvars:</font></b><ul><li><b>sm_can_multiple_rep (0)</b> - If enabled (1) then users are allowed to give multiple ratings to the same user</li>
<li><b>sm_can_update_rep (1)</b> - If enabled (1) then users are allowed to update previous ratings to a user (Only works with sm_can_multiple_rep set to 0)</li>
<li><b>sm_min_rep (-10)</b> - Lowest rating amount a player can give (Must be lower than sm_max_rep)</li>
<li><b>sm_max_rep (10)</b> - Highest rating amount a player can give (Must be higher than sm_min_rep)</li>
<li><b>sm_chat_prefix (1)</b> - If enabled (1) then a chat prefix will be shown with rep amount (Will change method later)</li>
<li><b>sm_connect_announce (1)</b> - If enabled (1) then an announcement with rep amount will be shown on client connect</li>
<li><b>sm_rep_reasons (1)</b> - If enabled (1) then reasons can be used in ratings</li>
</ul><br /><b><font size="4">API:</font></b><br /><br />Not much for now but you can grab a player's reputation count<br /><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">/**<br />&nbsp;* Gets a client's reputation<br />&nbsp;*<br />&nbsp;* @param client&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Client index.<br />&nbsp;* @return&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Returns reputation amount<br />&nbsp;*<br />&nbsp;* @error&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Invalid client<br />&nbsp;*/<br />native Reputation_GetRep(int client);</code><hr />
</div><b><font size="4">Installation:</font></b><br /><br />This plugin requires a MySQL database. It will look for a configuration named &quot;reputation&quot;. Example:<br /><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">&nbsp; &nbsp; &quot;reputation&quot;<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;driver&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;mysql&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;host&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;example.com&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;database&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;example_database&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;user&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;exampleuser&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;pass&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;examplepassword&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; //&quot;timeout&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;0&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;port&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;3306&quot;<br />&nbsp; &nbsp; }</code><hr />
</div><b><font size="4">Changelog:</font></b><br /><br /><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">v1.0.0 - Initial Release</code><hr />
</div><b><font size="4">Credits:</font></b><br /><br />Mathiaas - Bug Testing<br />August- Annoying me non-stop<br />Anyone I forgot I am sorry, please let me now<br /><br /><b><font size="4">Download:</font></b></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/inc.gif"alt="File Type: inc" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...utation.inc</a>(275 Bytes)


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


<a href="https://forums.allie...rs_csgo.inc</a>(15.5 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...24"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1460789001">GetSource</a> (reputation.sp - 17.3 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