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

ClasicXp level mod


  • 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 05.09.2013 14:45

<!-- BEGIN TEMPLATE: postbit_external -->
<div>Introduction:<br /><br />I always liked to play cs and also to gain something, an award, etc.. So I started playing on servers with levelmod but I was often disappointed by the plugin itself because he didn't have many options,etc.<br />So I thought, why do not I try to do something for my taste, maybe others also enjoy it. This is the little story behind the plugin.<br /><br />General aspects:<br /><br />-This is a simple levemod with 9 levels.<br />-Version is 0.2 beta. Once per round will start a contest. <br />-A hud message will appear on the screen with some characters. First player who type the characters will win some xp.<br />-A blacklist system is present.This sistem block a specified player from receiving xp. <br />-Has some commands like amx_givexp etc<br />-For every level you receive some guns.<br />-Nvault xp save.<br />-And more.....<br /><br />Part 1: levels<br />Levels are below:<br /><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">Level 1 -&gt;100 xp<br />Level 2 -&gt;500 xp<br />Level 3 -&gt;1000 xp&nbsp; &nbsp; &nbsp; &nbsp; <br />Level 4 -&gt;5000 xp<br />Level 5 -&gt;10000 xp<br />Level 6 -&gt;50000 xp<br />Level 7 -&gt;60000 xp<br />Level 8-&gt;90000 xp<br />Level 9 -&gt;100000 xp</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->You need 100 xp for level 1,500 xp for level 2,etc. Every player start from level 0 and from 0 xp.<br />As I said above every level has his guns and items. <br />Let's say that I make 100 xp during a round. My level wont increase until next spawn. This is to prevent receiving guns and items during a round.<br /><br />The guns for every level:<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">Level 1: fb and deagle.<br />Level 2 :2fb and deagle<br />Level 3: 2fb,he and deagle<br />Level 4: 2fb,he,sk and deagle<br />Level 5: deagle,fg,sk,he and kevlar+helmet<br />Level 6: deagle,2fg,sk,2he and kevlar+helmet<br />Level 7:awp,deagle,2fg,2sk,3he and kevlar+helmet<br />Level 8: for TS ak-47,deagle,3fg,3sk,3he andkevlar+helmet and for CT m4a1,deagle,3fg,3sk,3he and kevlar+helmet<br />Level 9: for TS ak47,awp,deagle,3fg,3sk,3he,kevlar+helmet and nvgs and for CT m4a1,awp,deagle,3fg,3sk,3he,kevlar+helmet,defuser and nvgs&quot;</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->This items are received at 10 seconds after spawn.<br />Because I didn't have an ideea for items I put something silly(I think) but you cand modify them how you want.(See Tutorials part)<br /><br />Part II : blacklist sistem<br /><br />First you need to open from your configs folder BlackList.ini<br />After that simply add the name or the steam id in the file. The one that have the name or the steam id won't receive xp and a connections message will be showed.<br /><br />Example:<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">; BlackList*<br />HamletEagle<br />Terminator :)<br />HappyDay<br />STEAM_0*****649</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->If you want to enable xp again for the player just delete or comment(//) his name or steam id.<br /><br />Part 3 : block name change<br /><br />I added a block name change options for prevent thelf of xp.<br />When a player type in his console name etc a message will appear: <br /><!-- BEGIN TEMPLATE: bbcode_quote_printable -->
<div style="margin:20px; margin-top:5px; ">
<div class="smallfont" style="margin-bottom:2px">Quote:</div>
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2">
<hr />

[ClasicXp]Name change is disabled on this server.

<hr />
</td>
</tr>
</table>
</div>
<!-- END TEMPLATE: bbcode_quote_printable -->Part 4 : commands<br /><br />With this plugin you can use the folllowing commands :<br /><br />Public commands:<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">/xp: show a chat message with your xp and your level:&quot;You have x xp and level x&quot;<br />/info : will show a motd with some informations.</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->Admin commands: (need rcon acces)<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">amx_givexp : give xp to a player(amx_givexp &quot;playername&quot; &quot;ammount&quot;) <br />amx_takexp : take xp from a player(amx_takexp &quot;playername&quot; &quot;ammount&quot;) <br />amx_xp : find a player xp (amx_xp &quot;playername&quot;)</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->Please read Know bugs part.<br /><br />Part 5: cvars <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">XP_Kill: xp/kill,default 20 <br />XP_Hs: xp/hs,default 40<br />XP_AWP: xp/awp kill,default 15<br />XP_plant: xp/planting the bomb,default 5<br />XP_defuse: xp/defusing the bomb,defult 5<br />XP_knife: xp/knife kil,defult 50<br />XP_he: xp/he grenade kill,default 10<br />XP_save : xp save. Turn on/off xp saving. If it is 0 when a player disconnect from server or when map is changed the xp will reset to 0. <br />advertise : show a connection message. The message looks like that:<br /><!-- BEGIN TEMPLATE: bbcode_quote_printable --><br /><div style="margin:20px; margin-top:5px; "><br />&nbsp; &nbsp; &nbsp; &nbsp; <div class="smallfont" style="margin-bottom:2px">Quote:</div><br />&nbsp; &nbsp; &nbsp; &nbsp; <table cellpadding="6" cellspacing="0" border="0" width="100%"><br />&nbsp; &nbsp; &nbsp; &nbsp; <tr><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <td class="alt2"><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <hr /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />[ClasicXp]Welcome name.<br />[ClasicXp]This server is running ClasicXp Level mod by Hamlet Eagle.<br />[ClasicXp]For more info type /info.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <hr /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </td><br />&nbsp; &nbsp; &nbsp; &nbsp; </tr><br />&nbsp; &nbsp; &nbsp; &nbsp; </table><br /></div><br /><!-- END TEMPLATE: bbcode_quote_printable -->reminder : show a hud with you xp and level.<br /><br />Now the cvars for the contest. All of this have this xp_contest_<br /><br />xp_contest_reptime // default 20.0,time to type the characters<br />xp_contest_repeatevent //default 100.0,time to repeat event<br />xp_contest_min_xp //default 100 ,min xp that a player can receive if he win.<br />xp_contest_max_xp&nbsp; //default 500 , max xp that a player can receive if he win.<br />xp_contest_hud //default 25,time that hudmessage will remain on the screen.<br /><br />I suggest you to leave the cvars at default setiing except xp_contest_min_xp and xp_contest_max_xp<br />The value of xp will be between this two cvars.</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><br />Part 6: nvault sistem<br /><br />The xp is saved at every disconnect and loaded at every connect in a nvault file called XpClasicMod. If you want to reset the xp from all players shut down you server and delete XpClasicMod.vault file from addons/amxmodx/data/vault<br /><br />Part 7 : the contest<br /><br />Once per round(as it is default,can be change by cvars) a contest will start. A hud message appear and players must type the characters showed in the hudmessage. First player which do that will receive some xp. <br /><br />Installation:<br /><br />Put levelmod.amxx in plugins folder.<br />Put levelmod.sma in scripting folder.<br />Open plugins.ini file and type levelmod.amxx<br />Put inf.txt file in your config folder.<br />Change the map to activate the plugin.<br /><br />Know bugs:<br /><br />1.When you give/take xp from a player his level is not update properly. <br />2............................................ ............................................. ...<br /><br />To do :<br />1. Add some classes that players can buy with xp.<br />2. Add a shop for every classes.<br />3. Add more levels.<br />4. Fix the bug from commands(see know bugs part).<br />5. Add a top15 for xp.<br />6 .Add more cvars.<br />7. Number 7 is reserved for further ideeas.<br /><br />Info: the code contain a lof of comments to be easly to understand. <br />Please note that this is a <b>beta</b> release.<br /><br />Tutorials:<br /><br />1.If you want to change the items go to this public Player_items and edit the lines starting with give_item. See <a href="http://forums.allied...ad.php?p=308210," target="_blank">http://forums.allied...p?p=308210,</a> may help you. <br />2.How to disable name change block ? In this version you can't but in the next one I'll add a cvar.<br /><br />Images: I'll add soon.<br /><br />If you will find any bugs(other than those present on Know bugs part) let me know. I'll fix them.</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/txt.gif" alt="File Type: txt" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...38;d=1378388725">inf.txt</a> (703 Bytes)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<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...?file_id=125355"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1378388863">Get Source</a> (Levelmod.sma - 20.0 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