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

[TF2] Custom Class Maker [BETA]


  • 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 23.11.2014 03:31

<!-- BEGIN TEMPLATE: postbit_external -->
<div>This plugin allows coders to create Custom Classes using a flexible API and Subplugin system (props to cookies) that allows you to create as many as you want.<br /><br />Please keep in mind that this is a Beta and will be subject to many changes as I improve it and the subplugin system.<br /><br />The entire plugin <u>is coded in the 1.7 Syntax</u> So you need compilers 1.7+ to install it.<br /><br /><u>This plugin requires knowledge of Sourcepawn to create custom Classes...</u><br /><br />Custom Class template is included!<br /><br />to access Custom classes, use <u><b>sm_ccm</b></u><br /><br />To get off the custom class, do <u><b>sm_offclass</b></u><br /><br />Natives+Forwards<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">native&nbsp;int&nbsp;CCM_RegisterClass</span><span style="color: #007700">(</span><span style="color: #0000BB">char</span><span style="color: #007700">[]&nbsp;</span><span style="color: #0000BB">NameOfClass</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">//use&nbsp;this&nbsp;in&nbsp;EVERY&nbsp;class&nbsp;subplugin,&nbsp;ok?&nbsp;<br />&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;Action&nbsp;CCM_OnModelTimer</span><span style="color: #007700">(</span><span style="color: #0000BB">int&nbsp;client</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">char&nbsp;ClassModel</span><span style="color: #007700">[</span><span style="color: #0000BB">64</span><span style="color: #007700">]);&nbsp;</span><span style="color: #FF8000">/*called&nbsp;every&nbsp;2&nbsp;seconds.&nbsp;YOU&nbsp;NEED&nbsp;THIS&nbsp;FORWARD,&nbsp;IF&nbsp;NOT&nbsp;THEN&nbsp;PLUGIN&nbsp;WILL&nbsp;BITCH&nbsp;AT&nbsp;YOU.*/&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;Action&nbsp;CCM_OnClassTeleport</span><span style="color: #007700">(</span><span style="color: #0000BB">int&nbsp;client</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">int&nbsp;teleporter</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">bool&nbsp;</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">result</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">//obviously&nbsp;when&nbsp;player&nbsp;teleports&nbsp;as&nbsp;a&nbsp;custom&nbsp;class&nbsp;<br />&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;Action&nbsp;CCM_OnMakeClass</span><span style="color: #007700">(</span><span style="color: #0000BB">int&nbsp;client</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">/*called&nbsp;when&nbsp;a&nbsp;player&nbsp;becomes&nbsp;a&nbsp;custom&nbsp;class*/&nbsp;<br />&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;void&nbsp;CCM_AddToDownloads</span><span style="color: #007700">();&nbsp;</span><span style="color: #FF8000">//called&nbsp;during&nbsp;OnMapStart()&nbsp;<br />&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;void&nbsp;CCM_OnClassResupply</span><span style="color: #007700">(</span><span style="color: #0000BB">int&nbsp;client</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">/*called&nbsp;when&nbsp;a&nbsp;player&nbsp;resupply&nbsp;as&nbsp;a&nbsp;custom&nbsp;class*/&nbsp;<br />&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;void&nbsp;CCM_OnClassEquip</span><span style="color: #007700">(</span><span style="color: #0000BB">int&nbsp;client</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">/*called&nbsp;when&nbsp;a&nbsp;player&nbsp;is&nbsp;equipped&nbsp;as&nbsp;custom&nbsp;class*/&nbsp;<br />&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;void&nbsp;CCM_OnClassAirblasted</span><span style="color: #007700">(</span><span style="color: #0000BB">int&nbsp;client</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">int&nbsp;airblaster</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">/*called&nbsp;when&nbsp;a&nbsp;custom&nbsp;class&nbsp;player&nbsp;is&nbsp;airblasted*/&nbsp;<br />&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;void&nbsp;CCM_OnClassDoAirblast</span><span style="color: #007700">(</span><span style="color: #0000BB">int&nbsp;airblaster</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">int&nbsp;client</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">/*called&nbsp;when&nbsp;a&nbsp;custom&nbsp;class&nbsp;player&nbsp;airblasts&nbsp;a&nbsp;player*/&nbsp;<br />&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;void&nbsp;CCM_OnClassKillBuilding</span><span style="color: #007700">(</span><span style="color: #0000BB">int&nbsp;attacker</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">int&nbsp;building</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">/*called&nbsp;when&nbsp;a&nbsp;custom&nbsp;class&nbsp;player&nbsp;destroys&nbsp;buildings*/&nbsp;<br />&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;void&nbsp;CCM_OnClassChangeClass</span><span style="color: #007700">(</span><span style="color: #0000BB">int&nbsp;client</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">/*called&nbsp;when&nbsp;a&nbsp;custom&nbsp;class&nbsp;player&nbsp;changes&nbsp;class*/&nbsp;<br />&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;void&nbsp;CCM_OnClassKill</span><span style="color: #007700">(</span><span style="color: #0000BB">int&nbsp;attacker</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">int&nbsp;client</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">/*called&nbsp;when&nbsp;a&nbsp;custom&nbsp;class&nbsp;player&nbsp;kills&nbsp;someone*/&nbsp;<br />&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;void&nbsp;CCM_OnClassKillDomination</span><span style="color: #007700">(</span><span style="color: #0000BB">int&nbsp;attacker</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">int&nbsp;client</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">/*called&nbsp;when&nbsp;a&nbsp;custom&nbsp;class&nbsp;player&nbsp;dominates&nbsp;someone*/&nbsp;<br />&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;void&nbsp;CCM_OnClassKillRevenge</span><span style="color: #007700">(</span><span style="color: #0000BB">int&nbsp;attacker</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">int&nbsp;client</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">/*called&nbsp;when&nbsp;a&nbsp;custom&nbsp;class&nbsp;player&nbsp;gets&nbsp;revenge*/&nbsp;<br />&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;void&nbsp;CCM_OnClassKilled</span><span style="color: #007700">(</span><span style="color: #0000BB">int&nbsp;client</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">int&nbsp;attacker</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">/*called&nbsp;when&nbsp;a&nbsp;custom&nbsp;class&nbsp;player&nbsp;is&nbsp;killed*/&nbsp;<br />&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;void&nbsp;CCM_OnClassUbered</span><span style="color: #007700">(</span><span style="color: #0000BB">int&nbsp;ubered</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">int&nbsp;medic</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">/*called&nbsp;when&nbsp;a&nbsp;custom&nbsp;class&nbsp;player&nbsp;is&nbsp;ubered*/&nbsp;<br />&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;void&nbsp;CCM_OnClassDeployUber</span><span style="color: #007700">(</span><span style="color: #0000BB">int&nbsp;medic</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">int&nbsp;ubered</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">/*called&nbsp;when&nbsp;a&nbsp;custom&nbsp;class&nbsp;player&nbsp;deploys&nbsp;uber*/&nbsp;<br />&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;void&nbsp;CCM_OnClassSelected</span><span style="color: #007700">(</span><span style="color: #0000BB">int&nbsp;client</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">/*called&nbsp;when&nbsp;a&nbsp;player&nbsp;selects&nbsp;a&nbsp;custom&nbsp;class*/&nbsp;<br />&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;void&nbsp;CCM_OnClassDeselected</span><span style="color: #007700">(</span><span style="color: #0000BB">int&nbsp;client</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">/*called&nbsp;when&nbsp;a&nbsp;player&nbsp;gets&nbsp;off&nbsp;their&nbsp;custom&nbsp;class*/&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable -->ChangeLog<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">Version&nbsp;1.0&nbsp;BETA&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">11</span><span style="color: #007700">/</span><span style="color: #0000BB">22</span><span style="color: #007700">/</span><span style="color: #0000BB">2014&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">Release</span><span style="color: #007700">;&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --></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...ssMaker.zip</a>(23.0 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie...attach/smx.gif"alt="File Type: smx" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...93">ccm.smx</a>(13.7 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/sp.gif"alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="http://www.sourcemod...26"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1416709893">GetSource</a> (ccm.sp - 18.2 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie...attach/inc.gif"alt="File Type: inc" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...93">ccm.inc</a>(10.8 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/sp.gif"alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="http://www.sourcemod...28"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1416709899">GetSource</a> (ccmtemplate.sp - 2.7 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