<!-- 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 /> <br />delimiter $$<br /><br />CREATE TABLE `karma` (<br /> `id` int(11) NOT NULL AUTO_INCREMENT,<br /> `accountid` int(11) NOT NULL,<br /> `recent_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',<br /> `positive_karma` int(11) NOT NULL DEFAULT '0',<br /> `negative_karma` int(11) NOT NULL DEFAULT '0',<br /> `positive_karma_expiry` bigint(20) NOT NULL DEFAULT '0',<br /> `negative_karma_expiry` bigint(20) NOT NULL DEFAULT '0',<br /> `last_seen` bigint(20) NOT NULL DEFAULT '0',<br /> 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 "<b>servers</b>"<br />#define DATABASENAME_TABLE "<b>karma</b>"<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ł
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] KARMA (Currently MySQL only) v1.0 - 7 DEC 2014
Temat rozp. Adminek AMXX.PL, 07.12.2014 21:59
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych