<!-- BEGIN TEMPLATE: postbit_external -->
<div><div align="center"><font size="6"><font color="#FF0000">AMXX Lottery</font></font></div><font size="4"><font color="#0000CD"> Plugin description</font></font><ul><li> This plugin enables a "lottery" in your server. Every <x> seconds (cvar) a menu will be displayed to all players to let then choose if they want to participate in the lottery.</li>
</ul><br /><font size="4"><font color="#0000CD"> ¿How does the lottery works?</font></font><ul><li> Players who accepted to participate will have to enter a number from 1 to <x> (cvar). Then wait until the lottery time ends and see if they won.</li>
<li> Reward for winning is <x> $ (cvar).</li>
</ul><br /><font size="4"><font color="#0000CD"> Cvars</font></font><ul><li> lottery_enable <1|0> - Enables/Disables the lottery.</li>
<li> lottery_interval <#> - The interval in seconds for lotteries. (Default: 900.0 = 15 minutes)</li>
<li> lottery_duration <#> - Duration of the lottery in seconds. (Default: 20.0)</li>
<li> lottery_options <#> - How many options do the players have for choose. (Higher = Harder to win, Default: 20)</li>
<li> lottery_reward <#> - Reward in $ for winners. (Default: 5000) </li>
</ul><br /><font size="4"><font color="#0000CD"> ¿Do you want your own reward?</font></font><ul><li> Open the source file, find the line 142, then:<br /><!-- BEGIN TEMPLATE: bbcode_php_printable -->
<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">// Here goes the award
<br /></span><span style="color: #0000BB">cs_set_user_money</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">, </span><span style="color: #0000BB">cs_get_user_money</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">) + </span><span style="color: #0000BB">reward</span><span style="color: #007700">);
<br />
<br /></span><span style="color: #FF8000">// Ex: Give ammopacks in zombie plague
<br />// zp_set_user_ammo_packs(id, zp_get_user_ammopacks(id) + reward);
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --></li>
</ul><br /><font size="3">Plugin requested by: <a href="https://forums.allie...ad.php?t=243784" target="_blank">Alphad</a></font></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/sma.gif" alt="File Type: sma" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="http://www.amxmodx.o...?file_id=135442"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1404938139">Get Source</a> (amx_lottery.sma - 5.5 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
AMXX Lottery
Temat rozp. Adminek AMXX.PL, 09.07.2014 21:36
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych