Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

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

[ZR] Commander for zombie escape (Alpha version still under construction)


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

Napisano 04.12.2015 22:49

<div><font color="Red"><font size="4">Warning: This is a Alpha version still in construction and only have the basic for a commander plugin.</font></font><font size="4"><br /></font><br /><br /><b><u>Description:</u></b><br /><br />This plugin was throght to prevent door hugging and incentivate more players defending in zombie escape. Probably the best form is creating a commander adapted to the zombiemod that can tell when defend and where to the players, with special chat messages, markers, sounds and more. The commander can be selected in the round start and cant be a mother zombie.<br /><br /><br /><b><u>Requeriments:</u></b><br /><br /><a href="https://forums.allie...play.php?f=132"target="_blank">Zombiereloaded</a><br /><br /><br /><b><u>Natives and forwards:</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">#if&nbsp;defined&nbsp;_zrcommander_included<br />&nbsp;&nbsp;#endinput<br />#endif<br />#define&nbsp;_zrcommander_included<br /><br />/**<br />&nbsp;*&nbsp;Checks&nbsp;if&nbsp;any&nbsp;commander&nbsp;exist<br />&nbsp;*<br />&nbsp;*&nbsp;@true&nbsp;on&nbsp;match&nbsp;,&nbsp;false&nbsp;if&nbsp;not<br />&nbsp;*/<br /></span><span style="color: #0000BB">native&nbsp;bool&nbsp;zrc_exist</span><span style="color: #007700">();<br /><br /></span><span style="color: #FF8000">/**<br />&nbsp;*&nbsp;returns&nbsp;if&nbsp;client&nbsp;is&nbsp;commander<br />&nbsp;*<br />&nbsp;*&nbsp;@param&nbsp;client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;client&nbsp;to&nbsp;run&nbsp;the&nbsp;check&nbsp;on<br />&nbsp;*&nbsp;@true&nbsp;on&nbsp;match,&nbsp;false&nbsp;if&nbsp;not&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;*********************************************************/<br /></span><span style="color: #0000BB">native&nbsp;bool&nbsp;zrc_is</span><span style="color: #007700">(</span><span style="color: #0000BB">client</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/**<br />&nbsp;*&nbsp;Set&nbsp;a&nbsp;client&nbsp;as&nbsp;commander<br />&nbsp;*<br />&nbsp;*&nbsp;@param&nbsp;client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;client&nbsp;to&nbsp;set&nbsp;as&nbsp;commander<br />&nbsp;*&nbsp;@NoReturn<br />&nbsp;*/<br /></span><span style="color: #0000BB">native&nbsp;int&nbsp;zrc_set</span><span style="color: #007700">(</span><span style="color: #0000BB">client</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/**<br />&nbsp;*&nbsp;Removes&nbsp;the&nbsp;current&nbsp;commander&nbsp;if&nbsp;he&nbsp;exists<br />&nbsp;*<br />&nbsp;*&nbsp;@param&nbsp;client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;commander&nbsp;client&nbsp;to&nbsp;remove<br />&nbsp;*&nbsp;@NoReturn&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;*/<br /></span><span style="color: #0000BB">native&nbsp;int&nbsp;zrc_remove</span><span style="color: #007700">(</span><span style="color: #0000BB">client</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/**<br />&nbsp;*&nbsp;Called&nbsp;when&nbsp;a&nbsp;commander&nbsp;has&nbsp;been&nbsp;created.<br />&nbsp;*<br />&nbsp;*&nbsp;@param&nbsp;client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Client&nbsp;that&nbsp;has&nbsp;been&nbsp;commander.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;*/<br /></span><span style="color: #0000BB">forward&nbsp;void&nbsp;zrc_OnCommanderCreated</span><span style="color: #007700">(</span><span style="color: #0000BB">client</span><span style="color: #007700">);&nbsp;<br /><br /></span><span style="color: #FF8000">/**<br />&nbsp;*&nbsp;Called&nbsp;when&nbsp;a&nbsp;player&nbsp;is&nbsp;about&nbsp;to&nbsp;be&nbsp;commander.<br />&nbsp;*<br />&nbsp;*&nbsp;@param&nbsp;client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Client&nbsp;index.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;*&nbsp;@return&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Plugin_Changed&nbsp;to&nbsp;apply&nbsp;new&nbsp;values,&nbsp;Plugin_Continue&nbsp;to&nbsp;allow&nbsp;as&nbsp;is&nbsp;and&nbsp;&gt;=&nbsp;Plugin_Handled&nbsp;to&nbsp;block&nbsp;<br />&nbsp;*/<br /></span><span style="color: #0000BB">forward&nbsp;Action&nbsp;zrc_OnCommanderCreate</span><span style="color: #007700">(</span><span style="color: #0000BB">client</span><span style="color: #007700">);&nbsp;<br /><br /></span><span style="color: #FF8000">/**<br />&nbsp;*&nbsp;Called&nbsp;when&nbsp;a&nbsp;commander&nbsp;left&nbsp;the&nbsp;commander&nbsp;position.<br />&nbsp;*<br />&nbsp;*&nbsp;@param&nbsp;client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Client&nbsp;index.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;*/<br /></span><span style="color: #0000BB">forward&nbsp;void&nbsp;zrc_OnCommanderLeft</span><span style="color: #007700">(</span><span style="color: #0000BB">client</span><span style="color: #007700">);&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div><br /><b><u>Todo list:</u></b><br /><br />-Modular plugin<br />-Commander cant be a mother zombie<br />-Nominate a commander in the round start<br />-Create a top with the best commanders<br />-Can create markers and gets an icon above his head<br />-Markers will be:<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">Defend<br />Attack<br />Fallback</code><hr />
</div>-Players which follow his orders get awarded by points<br />-The commanders get points based on how much players survived<br />-Add a feature to the plugin for make that all the humans <a href="https://forums.allie...d.php?t=253758"target="_blank">look at a point</a> that the commander determine for a better communication of where they should defend.<br /><br /><br /><b><u>Credits:</u></b><br /><br />Original idea by zipcore<br /><br /><br /><b><u>Download:</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"><b>The main project -&gt; <a href="http://git.tf/Franc1sco/ZR-Commander"target="_blank">http://git.tf/Franc1...ommander</a><br />Code changes -&gt; <a href="http://git.tf/Franc1sco/ZR-Commander/commits/master" target="_blank">http://git.tf/Franc1...s/master</a><br />Direct download link -&gt; <a href="http://git.tf/Franc1sco/ZR-Commander/repository/archive.zip?ref=master" target="_blank">http://git.tf/Franc1...></b></code><hr />
</div><br />Suggestions are extremely appreciated :up:</div>

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych