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

HideNSeek Rules


  • 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 04.01.2014 06:31

<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hey, I'm a very new coder, and I figured I'd give it a try to create a rules plugin for HideNSeek. I'm lookin g to share my plugin because I think it turned out pretty well, but I'm also looking for feedback to improve my work.<br /><br />Here is the code for my plugin:<br /><br /><br />/* Plugin generated by AMXX-Studio */<br /><br />#include &lt;amxmodx&gt;<br />#include &lt;hamsandwich&gt;<br />#include &lt;cstrike&gt;<br /><br />#define PLUGIN &quot;HideNSeekRules&quot;<br />#define VERSION &quot;3.0&quot;<br />#define AUTHOR &quot;Qvantry&quot;<br /><br />#define PREFIX &quot;Your website here&quot;<br /><br /><br />public plugin_init() {<br /> register_plugin(PLUGIN, VERSION, AUTHOR)<br /> <br /> register_clcmd(&quot;say /rules&quot;, &quot;RoundStart&quot;);<br /> register_concmd(&quot;rules&quot;, &quot;ShowRulesConsole&quot;);<br /> RegisterHam(Ham_Spawn, &quot;player&quot;, &quot;CT_PlayerSpawn&quot;, 1);<br />}<br /><br />public client_putinserver(id)<br />{<br /> set_task(1.0, &quot;ConnectShowRules&quot;, id)<br />}<br /><br />public ConnectShowRules(id)<br />{<br /> new iName[64];<br /> get_user_name(id, iName, 33)<br /> <br /> set_hudmessage(255, 127, 0, 0.055, 0.2, 0, 6.0, 12.0)<br /> show_hudmessage(id, &quot;Hi %s and welcome to %s^nIf you don't follow these rules you will be punished.^n ^n1. Obey the rules!^n2. No hacking!^n3. Spamming and/or yelling!^n4. No advertising!^n5. No funnyjumping(CT)!^n6. No free killing!^n7. No bad disconnecting!^n8. No underblocking!^n9. No understabing!^n10. Hiders are allowed to camp for 60 seconds!^n11. Do NOT retry if you die early!^n12. No spawnkilling!^n ^nVisit our website at your website here for more info!&quot;, iName, PREFIX)<br />}<br /><br />public RoundStart(id)<br />{<br /> new iName[64];<br /> get_user_name(id, iName, 33)<br /> <br /> set_hudmessage(255, 127, 0, 0.055, 0.2, 0, 6.0, 9.5)<br /> show_hudmessage(id, &quot;If you don't follow these rules you will be punished.^n ^n1. Obey the rules!^n2. No hacking!^n3. Spamming and/or yelling!^n4. No advertising!^n5. No funnyjumping(CT)!^n6. No free killing!^n7. No bad disconnecting!^n8. No underblocking!^n9. No understabing!^n10. Hiders are allowed to camp for 60 seconds!^n11. Do NOT retry if you die early!^n12. No spawnkilling!^n ^nVisit our website at your website here for more info!&quot;, iName, PREFIX)<br />}<br /><br />public CT_PlayerSpawn(id)<br /> if(cs_get_user_team(id) == CS_TEAM_CT)<br /> set_task(0.5, &quot;RoundStart&quot;, id)<br /> else return;<br /><br />public ShowRulesConsole(id)<br />{<br /> <br /> console_print(id,&quot;If you don't follow these rules you will be punished!&quot;);<br /> console_print(id,&quot;1. Obey the rules!&quot;);<br /> console_print(id,&quot;2. No hacking!&quot;);<br /> console_print(id,&quot;3. No advertising!&quot;);<br /> console_print(id,&quot;4. No funnyjumping(CT)!&quot;);<br /> console_print(id,&quot;5. No free killing!&quot;);<br /> console_print(id,&quot;6. No bad disconnecting!&quot;);<br /> console_print(id,&quot;7. No underblocking!&quot;);<br /> console_print(id,&quot;8. No understabing!&quot;);<br /> console_print(id,&quot;9. Hiders are allowed to camp for 60 seconds!&quot;);<br /> console_print(id,&quot;10. Do NOT retry if you die early in the round!&quot;);<br /> console_print(id,&quot;11. No spawnkilling(10seconds)!&quot;);<br /> console_print(id,&quot;12. Respect the admins!&quot;);<br />}</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/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=129164"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1388813381">Get Source</a> (HideNSeekRules.sma - 2.7 KB)

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


<a href="https://forums.allie...38;d=1388813398">HideNSeekRules.amxx</a> (2.1 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