<!-- BEGIN TEMPLATE: postbit_external -->
<div><font color="Orange"><b><font size="6"><div align="center">Simple Surf Vip v1.0</div></font></b></font><br /><br /><br /><b>-</b><font color="red"><font size="4">Description</font></font><b>-</b><br /><br />This is a Surf Vip plugin made for surf servers. In this plugin i made 2 different codes, one mainly made for a Surf SpeedRun server and the other is for any Surf Server. There is no menu for weapons, there's no restrictions and etc...But on spawn or round start, this plugin gives you 3 nades all kind. This plugin got a VIP tag before your name to make you feel as a VIP and be a cool guy.<br /><br />I did 2 plugins. One is the Surf Vip and the other one is Surf Vip but for SpeedRun servers wich mostly the basic stuff for a vip on a speedrun server. It got VIP on score board and a VIP skin.<br /><br /><br /><b>-</b><font color="red"><font size="4">Cvars</font></font><b>-</b><br /><br /><b>Main:</b><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">surfvip_hp_per_hs "30" <b>-</b> Health added with a head shot kill from vip. Default 30.<br />surfvip_hp_per_kill "15" <b>-</b> Health added with a normal kill from vip. Default 15.<br />surfvip_money_per_hs "500" <b>-</b> Money added for headshot kill from vip. Default 500.<br />surfvip_money_per_kill "200" <b>-</b> Money added for normal kill from vip. Default 200.</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><b>-</b><font color="red"><font size="4">Commands</font></font><b>-</b><br /><br /><b>For the 2 VIP Plugins:</b><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">/vip <b>-</b> To show from chat all vips online separated by a ','<br />/vips <b>-</b> To show from chat all vips online separated by a ','<br /><br />/wantvip <b>-</b> To let an MOTD come up with all the information needed to get VIP.<br />/viphelp <b>-</b> To let an MOTD come up with all the information needed to get VIP.</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><b>-</b><font color="red"><font size="4">Installation</font></font><b>-</b><br /><br />Put the <b>.amxx</b> in cstrike/addons/amxmodx/plugins<br />-Then in cstrike/addons/amxmodx/configs/plugins.ini<br /> You will type:<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"></span><span style="color: #007700">; </span><span style="color: #0000BB">Custom </span><span style="color: #007700">- </span><span style="color: #0000BB">Add 3rd party plugins here</span><span style="color: #007700">.<br /><br /></span><span style="color: #0000BB">SurfVip</span><span style="color: #007700">.</span><span style="color: #0000BB">amxx<br /> </span><span style="color: #007700">or<br /></span><span style="color: #0000BB">SurfSpeedRunVip</span><span style="color: #007700">.</span><span style="color: #0000BB">amxx
<br /></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable -->Then put the <b>.txt</b> file in cstrike/addons<br /><br /><b>-</b><font color="red"><font size="4">Requirements</font></font><b>-</b><br /><br /><b>Main:</b><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"></span><span style="color: #FF8000">#include < amxmodx ><br />#include < amxmisc ><br />#include < fakemeta ><br />#include < fun ><br />#include < geoip ><br />#include < cstrike ><br />#include < colorchat ><br />#include < hamsandwich >
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><b>SpeedRun VIP:</b><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"></span><span style="color: #FF8000">#include < amxmodx ><br />#include < amxmisc ><br />#include < geoip ><br />#include < cstrike ><br />#include < colorchat >
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><b>-</b><font color="red"><font size="4">ScreenShots</font></font><b>-</b><br /><br /><img src="http://imageshack.us...ing/94/axdg.jpg" border="0" alt="" /><br /><img src="http://imageshack.us/scaled/landing/845/ntcy.jpg" border="0" alt="" /><br /><img src="http://imageshack.us/scaled/landing/853/8lsv.jpg" border="0" alt="" /><br /><img src="http://imageshack.us/scaled/landing/27/zhib.jpg" border="0" alt="" /><br /><img src="http://imageshack.us/scaled/landing/594/ugk8.jpg" border="0" alt="" /><br /><br /><br /><br /><b>-</b><font color="red"><font size="4">Notes</font></font><b>-</b><br /><br />Note that if you are getting the Surf Vip that you can change the VIPs spawn health by changing the following line or number from the line:<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"></span><span style="color: #FF8000">/* Here you can edit the '100' to w/e you want the VIP to have at spawn or round start. It's his health */<br />#define VIP_HEALTH ( 100 )
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable -->If you don't like the default VIP skin in the SpeedRun vip plugin. You can change it by following the steps i will tell you now.<br /><br /><b>Step 1:</b><br />Open the .sma and edit it by following the next step.<br /><br /><b>Step 2:</b><br />Once you have opened the .sma go to these lines of it:<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"></span><span style="color: #007700">public </span><span style="color: #0000BB">plugin_precache</span><span style="color: #007700">( ) <br />{<br /> </span><span style="color: #0000BB">precache_model</span><span style="color: #007700">( </span><span style="color: #DD0000">"models/player/vip/vip.mdl" </span><span style="color: #007700">)<br /><br /> return </span><span style="color: #0000BB">PLUGIN_CONTINUE<br /></span><span style="color: #007700">}<br /><br />public </span><span style="color: #0000BB">VipModel</span><span style="color: #007700">( </span><span style="color: #0000BB">id</span><span style="color: #007700">, </span><span style="color: #0000BB">level</span><span style="color: #007700">, </span><span style="color: #0000BB">cid </span><span style="color: #007700">) <br />{<br /> if ( </span><span style="color: #0000BB">get_user_flags</span><span style="color: #007700">( </span><span style="color: #0000BB">id </span><span style="color: #007700">) & </span><span style="color: #0000BB">VIP_ACCESS </span><span style="color: #007700">) <br /> {<br /> new </span><span style="color: #0000BB">CsTeams</span><span style="color: #007700">:</span><span style="color: #0000BB">userTeam </span><span style="color: #007700">= </span><span style="color: #0000BB">cs_get_user_team</span><span style="color: #007700">( </span><span style="color: #0000BB">id </span><span style="color: #007700">)<br /> if( </span><span style="color: #0000BB">userTeam </span><span style="color: #007700">== </span><span style="color: #0000BB">CS_TEAM_CT </span><span style="color: #007700">) <br /> {<br /> </span><span style="color: #0000BB">cs_set_user_model</span><span style="color: #007700">( </span><span style="color: #0000BB">id</span><span style="color: #007700">, </span><span style="color: #DD0000">"vip" </span><span style="color: #007700">)<br /> }<br /> else <br /> {<br /> </span><span style="color: #0000BB">cs_reset_user_model</span><span style="color: #007700">( </span><span style="color: #0000BB">id </span><span style="color: #007700">)<br /> }<br /> }<br /> return </span><span style="color: #0000BB">PLUGIN_CONTINUE<br /></span><span style="color: #007700">}
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><b>Step 3:</b><br />Once you have went to those lines, you will see first the plugin_precache. Once you see it, you have to change the file to the file name your model in. Example: <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"></span><span style="color: #007700">public </span><span style="color: #0000BB">plugin_precache</span><span style="color: #007700">( ) <br />{<br /> </span><span style="color: #0000BB">precache_model</span><span style="color: #007700">( </span><span style="color: #DD0000">"models/player/yourmodel/yourmodel.mdl" </span><span style="color: #007700">)<br /><br /> return </span><span style="color: #0000BB">PLUGIN_CONTINUE<br /></span><span style="color: #007700">}
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><b>Step 4:</b><br />Once you have changed what i told you in Step 3 well we are almost done. Now we will go to VipModel. You have to change the "vip" to the model file you have. Example: <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"></span><span style="color: #007700">public </span><span style="color: #0000BB">VipModel</span><span style="color: #007700">( </span><span style="color: #0000BB">id</span><span style="color: #007700">, </span><span style="color: #0000BB">level</span><span style="color: #007700">, </span><span style="color: #0000BB">cid </span><span style="color: #007700">) <br />{<br /> if ( </span><span style="color: #0000BB">get_user_flags</span><span style="color: #007700">( </span><span style="color: #0000BB">id </span><span style="color: #007700">) & </span><span style="color: #0000BB">VIP_ACCESS </span><span style="color: #007700">) <br /> {<br /> new </span><span style="color: #0000BB">CsTeams</span><span style="color: #007700">:</span><span style="color: #0000BB">userTeam </span><span style="color: #007700">= </span><span style="color: #0000BB">cs_get_user_team</span><span style="color: #007700">( </span><span style="color: #0000BB">id </span><span style="color: #007700">)<br /> if( </span><span style="color: #0000BB">userTeam </span><span style="color: #007700">== </span><span style="color: #0000BB">CS_TEAM_CT </span><span style="color: #007700">) <br /> {<br /> </span><span style="color: #0000BB">cs_set_user_model</span><span style="color: #007700">( </span><span style="color: #0000BB">id</span><span style="color: #007700">, </span><span style="color: #DD0000">"yourmodel" </span><span style="color: #007700">)<br /> }<br /> else <br /> {<br /> </span><span style="color: #0000BB">cs_reset_user_model</span><span style="color: #007700">( </span><span style="color: #0000BB">id </span><span style="color: #007700">)<br /> }<br /> }<br /> return </span><span style="color: #0000BB">PLUGIN_CONTINUE<br /></span><span style="color: #007700">}
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable -->The name has to be the same as the name you puted in the plugin_precache.<br /><br /><b>-</b><font color="red"><font size="4">Credits</font></font><b>-</b><br /><ul><li>- <b>Allied-Gamers people for testing the plugins. </b><ul><li> zz</li>
<li> Trip</li>
<li> Nguyan</li>
<li> Smurfff</li>
<li> [Ian-kun³]</li>
<li> GENiX714</li>
<li> MrShakuRR</li>
<li> TeddyBear</li>
<li> Octavia</li>
<li> Player 2</li>
</ul></li>
<li>- <b>Kamelot for helping with MoneyBonus.</b></li>
</ul><br /><a href="http://www.game-moni...38;game=cstrike" target="_blank">Servers using this plugin!</a><br /><br /><b>-</b><font color="red"><font size="4">ChangeLog</font></font><b>-</b><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"><b><u>v1.0</u></b><br /><b>*</b> Released.</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><b>-</b><font color="red">Thank you, Baws.</font></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/inc.gif" alt="File Type: inc" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="https://forums.allie...38;d=1381529670">colorchat.inc</a> (2.3 KB)
</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=126705"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1381529695">Get Source</a> (SurfSpeedRunVip.sma - 4.9 KB)
</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=126706"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1381529699">Get Source</a> (SurfVip.sma - 10.1 KB)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- 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=1381531431">vipinfo.txt</a> (1.0 KB)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- 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...38;d=1381531510">Surf Vip Plugins.zip</a> (5.0 KB)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment -->
</table>
</fieldset>
</div>
<!-- END TEMPLATE: postbit_external -->
Wyświetl pełny artykuł
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.
|
Guest Message by DevFuse
Surf Vip v1.0
Temat rozp. Adminek AMXX.PL, 11.10.2013 23:15
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych