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

[CS:S/CS:GO] Shop Plugin


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

Napisano 06.01.2017 15:35

<div>Hello everyone!:3<br />First of all I'm Japanese and I'm not good at English.<br /><br /><u><b>Overview</b></u><br /><br />This plugin can use a simple shop.<br />The only things you can use are the player skins and items that can be created individually.<br /><br />One example is &quot;Random Gold Box&quot;.<br />With this item you can earn random gold from 1 to 1000.<br /><br />Play Time : You can purchase items at Shop according to playing time.<br /> The price is set to the set price / 10.<br /><br /><u>How to add items</u><br /><br />-----------------------------------------------------------------------------------------------<br /><br /><b>In Shop_Plugin_v1.0.sp</b><br /><br /><i>#define MAX_ITEM 20+1</i><br />Increasing this value will increase the number of items that can be used.<br />-----------------------------------------------------------------------------------------------<br /><br /><b>In Item.sp</b><br /><br />CreateItem(Num, &quot;Name&quot;, &quot;Skin path&quot;, type, price, trade check);<br /><br />type:<br />1 = Player Skin,<br />2 = Normal Item<br /><br />trade check:<br />true = can trade<br />false = can't trade<br /><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"><font size="2"><br />public CreateItem(Num, String:ItemName[256], String:ItemModel[256], ItemNumber, ItemPrice, bool:itemtradeCheck)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; Item_Name[Num] = ItemName;<br />&nbsp; &nbsp; &nbsp; &nbsp; Item_Model[Num] = ItemModel;<br />&nbsp; &nbsp; &nbsp; &nbsp; Item_Number[Num] = ItemNumber;<br />&nbsp; &nbsp; &nbsp; &nbsp; Item_Price[Num] = ItemPrice;<br />&nbsp; &nbsp; &nbsp; &nbsp; Item_trade[Num] = itemtradeCheck;<br />}<br /></font></code><hr />
</div>-----------------------------------------------------------------------------------------------<br /><br /><u><b>Installing</b></u><br /><br />cstrikeaddonssourcemodscripting<br />Insert the All File.<br /><br /><br />This plugin uses a database.<br /><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">&quot;ShopDB&quot;<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;driver&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;mysql&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;host&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;localhost&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;database&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;ShopDB&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;user&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;root&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;pass&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;&quot;<br />}</code><hr />
</div><u><b>Admin Commands</b></u><br /><br /><b>sm_gold &quot;Name&quot; &quot;Amount&quot;</b> - Give Gold<br /> ex) <i>sm_gold Cron 1000</i> - give 1000 Gold<br /><br /><b>sm_item &quot;Name&quot; &quot;ItemNum&quot; &quot;Amount&quot;</b> - Give Item<br /> ex) <i>sm_item Cron 1 10</i> - Give [Num1 Item]×10<br /><br /><u><b>Client Commands</b></u><br /><br /><b>sm_shop</b> - Open Main Menu<br /><br /><b>sm_trade &quot;Name&quot; &quot;Amount&quot;</b> - trade Gold<br /> ex) <i>sm_trade Cron 1000</i> - give 1000 Gold<br /><br /><b>sm_trade2 &quot;Name&quot; &quot;ItemNum&quot; &quot;Amount&quot;</b> - trade Item<br /> ex) <i>sm_trade2 Cron 1 10</i> - give [Num1 Item]×10<br /><br /><i><b>CS:S Only</b><br />Nightvision Key(default N key) - Open Main Menu</i></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/zip.gif"alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...in_v1.0.zip</a>(6.4 KB)


</td>
</tr>
</table>
</fieldset>


</div>

Wyświetl pełny artykuł




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

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