<div><font color="Blue"><b><u>If not shooting gun/Punish v1.0</u></b></font><br /><br /><b><u>Description:</u></b><br />This plugin punishes everyone who does not make a shot in the game after a certain time elapsed.<br /><br /><b><u>Cvars:</u></b><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">amx_time_no_shoot </span><span style="color: #DD0000">"90" </span><span style="color: #FF8000">// seconds left
<br /></span><span style="color: #0000BB">amx_warning_time </span><span style="color: #DD0000">"15" </span><span style="color: #FF8000">// seconds remaining to see the warning
<br /></span><span style="color: #0000BB">amx_warning_type </span><span style="color: #DD0000">"5" </span><span style="color: #FF8000">// 0 = none / 1 = console / 2 = console dev / 3 = chat / 4 = center / 5 = hud
<br /></span><span style="color: #0000BB">amx_warning_msg </span><span style="color: #DD0000">"[AMXX] In %d seconds to be %p if you do not shoot the gun."</span><span style="color: #007700">) </span><span style="color: #FF8000">// %d is time / %p is type punish
<br /></span><span style="color: #0000BB">amx_punish_type </span><span style="color: #DD0000">"4" </span><span style="color: #FF8000">// 1 = kick / 2 = ban / 3 = slay / 4 = slap
<br /></span><span style="color: #0000BB">amx_kick_msg </span><span style="color: #DD0000">"Kicked for not shooting gun."
<br /></span><span style="color: #0000BB">amx_ban_msg </span><span style="color: #DD0000">"Banned %pm Reason: not shooting gun." </span><span style="color: #FF8000">// %pm is time (permanent or minutes)
<br /></span><span style="color: #0000BB">amx_ban_time </span><span style="color: #DD0000">"30" </span><span style="color: #FF8000">// 0 = permanent
<br /></span><span style="color: #0000BB">amx_slap_dmg </span><span style="color: #DD0000">"10" </span><span style="color: #FF8000">// slap damage
<br /></span><span style="color: #0000BB">amx_knife_attack </span><span style="color: #DD0000">"1" </span><span style="color: #FF8000">// 0 = off / 1 = on (restart seconds left)
<br /></span><span style="color: #0000BB">amx_grenade_attack </span><span style="color: #DD0000">"0"
<br /></span><span style="color: #0000BB">amx_c4_attack </span><span style="color: #DD0000">"0"
<br /></span><span style="color: #0000BB">amx_immunity_flags </span><span style="color: #DD0000">"abcdefghijklmnopqrst"
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div><b><u>Modules:</u></b><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 <amxmodx>
<br />#include <amxmisc>
<br />#include <fakemeta_util>
<br />#include <hamsandwich>
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div><b><u>Credits:</u></b><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">Copper - idea<br />Brad - get_players, has_flag<br />Bugsy - IN_ATTACK<br />totopizza - formatex</code><hr />
</div><b><u>Changelog:</u></b><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 - Release 17/Jul/2016</code><hr />
</div><b><u>This plugin running in:</u></b> <a href="http://www.gametrack...rt=&order="target="_blank">[here]</a><br /><br /><b><u>Note:</u></b><br />This is my first attempt to make a plugin as stable as possible, if you find an bug or can optimize the code, all suggestions are welcome, if all goes well in the future, it can provide support lang.</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/sma.gif"alt="File Type: sma" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="http://www.amxmodx.o...45"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1468734787">GetSource</a> (if_not_shooting_punish.sma - 5.5 KB)
</td>
</tr>
</table>
</fieldset>
</div>
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

If not shooting gun/Punish v1.0
Temat rozp. Adminek AMXX.PL, 17.07.2016 07:10
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych