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] KARMA (Currently MySQL only) v1.0 - 7 DEC 2014


  • 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 07.12.2014 21:59

<!-- BEGIN TEMPLATE: postbit_external -->
<div>*** <b>Currently</b> <b>Karma only supports MySQL</b><br /><br />Karma is a system that I'm developing to allow players give each other praise or smite.<br /><br />Roadmap:<br /><br />- add translations<br />- add a addon that will smite players every time they get muted, gaged, silenced, kicked, etc.<br /><br /><br />For those whom want it, The MySQL Creation Script:<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">delimiter $$<br /><br />CREATE DATABASE `servers` /*!40100 DEFAULT CHARACTER SET latin1 */$$<br />&nbsp;<br />delimiter $$<br /><br />CREATE TABLE `karma` (<br />&nbsp; `id` int(11) NOT NULL AUTO_INCREMENT,<br />&nbsp; `accountid` int(11) NOT NULL,<br />&nbsp; `recent_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',<br />&nbsp; `positive_karma` int(11) NOT NULL DEFAULT '0',<br />&nbsp; `negative_karma` int(11) NOT NULL DEFAULT '0',<br />&nbsp; `positive_karma_expiry` bigint(20) NOT NULL DEFAULT '0',<br />&nbsp; `negative_karma_expiry` bigint(20) NOT NULL DEFAULT '0',<br />&nbsp; `last_seen` bigint(20) NOT NULL DEFAULT '0',<br />&nbsp; PRIMARY KEY (`id`,`accountid`)<br />) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci$$</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->I have not tested the creation script inside the plugin which should automatically create your database. You are probably best to use the creation script above to create the database.<br /><br /><br />You should go into karma.sp and change some variables to suit yourself.<br /><br />Stuff in <b>BOLD</b> that you may want to change in karma.sp / karma_addon_handler.sp:<br /><br />#define DATABASENAME &quot;<b>servers</b>&quot;<br />#define DATABASENAME_TABLE &quot;<b>karma</b>&quot;<br /><br />if your running CSGO, then change:<br />#define GGAME_CSGO <b>0</b><br />to<br />#define GGAME_CSGO <b>1</b><br /><br /><b><i>CSGO server owners should use our version of colors.inc included in our zip file</i></b><br /><br /><br /><br />Convars in your servers.cfg:<br /><br />// based on number of seconds<br />// 3600 = 1 hour<br />// 300 = 5 minutes<br /><b>karma_wait_time 3600</b><br /><br />karma_wait_time is applied to a player after they !smite or !praise someone, and make them wait that long before they can do it again.</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...attach/zip.gif"alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


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