Skocz do zawartości

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

Custom Player Skins


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

Napisano 20.05.2014 18:49

<!-- BEGIN TEMPLATE: postbit_external -->
<div><b><font size="6">Custom Player Skins</font></b><br />Allows other plugins to easily bonemerge a player skin to a player, with out worrying about deleting the skin on player_death, etc.<br /><font color="Red">Mere warning for those who ask if this will work in tf2, the answer is no, nor am i going to make a version that works for tf2.</font><br /><br /><b><font size="5">Natives</font></b><br />Inside cps.inc:<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">/**<br />&nbsp;* Sets the client's skin from the given path.<br />&nbsp;*<br />&nbsp;* @param client&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Client index<br />&nbsp;* @param model&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; User input for model path<br />&nbsp;* @noreturn <br />&nbsp;* @error&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Invalid client.<br />&nbsp;*/<br />native CPS_SetSkin( client, String:model[] );<br /><br />/**<br />&nbsp;* Gets the client's skin entity reference.<br />&nbsp;*<br />&nbsp;* @param client&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Client index<br />&nbsp;* @return&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Returns the entity reference of the player's skin, INVALID_ENT_REFERENCE if there is no skin.<br />&nbsp;* @error&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Invalid client.<br />&nbsp;*/<br />native CPS_GetSkin( client );<br /><br />/**<br />&nbsp;* Removes and resets the player and their skin.<br />&nbsp;*<br />&nbsp;* @param client&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Client index<br />&nbsp;* @noreturn<br />&nbsp;* @error&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Invalid client.<br />&nbsp;*/<br />native CPS_RemoveSkin( client );</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><br /><b><font size="5">Planned Features</font></b><ul><li>Since multiple plugins can use this, the skin should delete when a new one is created, right now plugins will have to delete the skin manually.</li>
<li>More natives to color/alpha, change bodygroups and 'skin' properties, although most of these features can be implemented via CPS_GetSkin( ) and setting those manually.</li>
</ul><br /><b><font size="5">Plugins</font></b><br />Random Player Skins (FoF, CS:GO)<br /><br /><b><font size="5">Downloads</font></b><br /><a href="https://github.com/M...PlayerSkins.smx" target="_blank">Plugin</a><br /><a href="https://raw.githubusercontent.com/MitchDizzle/Custom-Player-Skins/master/scripting/CustomPlayerSkins.sp" target="_blank">Source</a><br /><a href="https://raw.githubusercontent.com/MitchDizzle/Custom-Player-Skins/master/scripting/include/cps.inc" target="_blank">Include File</a><br /><br /><a href="https://github.com/MitchDizzle/Custom-Player-Skins" target="_blank">GitHub Link</a><br /><br /><b><font size="5"><font color="red">PLEASE READ!</font></font></b><br />This is Pre-Alpha, as in i just made this all in one day, and have yet to test it. I have no idea if it will work, this is just to put the module out there, I will be releasing a SubPlugin that will actually do stuff later on. Please note that right now this will do absolutely nothing when you put it on your server, this is for Developers to use to make custom skins.</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