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] shavit's simple bhop timer (1.0b 28/June/2015)


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

Napisano 28.06.2015 11:46

<div><b><font size="1">useless</font> <font size="4"><u>About</u></font></b><br />I was playing CS:GO. Every server I played in had that shitty discontinued timer that zipcore combined.<br />I remembered how at CS:S' times everything was so damn cool without all this weird useless stuff for a server, so I started developing my own bhop timer, stayed up at nights and stuff, got to a point I can release it, in 3 days since I started.<br /><br /><font size="3"><b>Notes:<br /></b></font>NO TRANSLATIONS. I don't like going to servers and seeing the whole chat in XXX (non-English) language and I don't even speak it.<br />And, unlike <a href="https://forums.allie...d.php?t=189751" target="_blank">alongub's timer</a>, this one won't lag the hell out of your server when a player joins/finishes the map if there are too many records.<br /><br /><b><font size="3">Requirements:<br /></font></b>A MySQL database. Preferred to be hosted at the same machine/network the game server is hosted at, but not required - will just speed up some internal stuff.<br />Basic English understanding, so you'll know what am I saying in this thread.<br />SourceMod 1.7 and above. I don't use the dev snapshots in my servers so I don't know if the timer will work with them.<br /><br /><font size="3"><b>Installation:<br /></b></font>1. Add a database entry in addons/sourcemod/configs/databases.cfg, call it &quot;shavit&quot;<br />Example:<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;Databases&quot;<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;driver_default&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;mysql&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; // When specifying &quot;host&quot;, you may use an IP address, a hostname, or a socket file path<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;default&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;driver&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;default&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;host&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;localhost&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;database&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;sourcemod&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;user&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;root&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;pass&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //&quot;timeout&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;0&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //&quot;port&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;0&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;shavit&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;driver&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;mysql&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;host&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;localhost&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;database&quot;&nbsp; &nbsp; &nbsp; &quot;shavit&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;user&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;root&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;pass&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />}</code><hr />
</div>2. Copy the desired .smx files to your plugins (addons/sourcemod/plugins) folder<br />3. Restart your server.<br /><br />Required plugins:<br />shavit-core - no other plugin will work without it.<br />shavit-zones - wouldn't really call it <i>required</i> but it's actually needed to get your timer to start/finish.<br /><br /><font size="3"><b>Core plugin features: (shavit-core)<br /></b></font>Autobhop (pretty much required in CS:GO sadly to play)<br />Stamina reset (will work in CS:S only, use sv_staminalandcost 0 and sv_staminajumpcost 0 in CS:GO)<br />Initializes 2 styles - forwards and sideways. You can easily add more by editing the plugin - I can make a tutorial soon that I'll show how to do that.<br />Cvar enforcer. Forces sv_airaccelerate to 2000 (&quot;legit bhop server owners&quot; recompile and make it 100) and sv_enablebunnyhopping to 1.<br />Counts jumps, stores players' times.<br />Saves players' data to a MySQL table. (ip, country, name and SteamID3)<br />Has an API for developers. (check shavit.inc)<br /><br />Commands for shavit-core:<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">13:19:26 sm cmds shavit-core<br />13:19:26 [SM] Listing commands for: [shavit] Core<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [Name]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [Type]&nbsp; [Help]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_diff&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; Choose your bhop style.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_difficulty&nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; Choose your bhop style.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_forwards&nbsp; &nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; Style shortcut: Forwards<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; Style shortcut: Forwards<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_normal&nbsp; &nbsp; &nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; Style shortcut: Forwards<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_r&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; Start your timer.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_restart&nbsp; &nbsp; &nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; Start your timer.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_s&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; Choose your bhop style.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_s&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; Start your timer.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_sideways&nbsp; &nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; Style shortcut: Sideways<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_start&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; Start your timer.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_stop&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; Stop your timer.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_style&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; Choose your bhop style.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_styles&nbsp; &nbsp; &nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; Choose your bhop style.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_sw&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; Style shortcut: Sideways</code><hr />
</div><font size="3"><b>Other modules:<br />shavit-wr:</b></font><br />Adds player records.<br />Has integration with the admin menu, allows admins to delete times for any reason. (RCON access required)<br />Includes a menu for both forwards/sideways styles, shows up to 100 records. Not based on a cache and is working with fast threaded queries for minimal server lag and stress on the database.<br />Shows a message on map finish. (Sends to all server only if it's a new time) Includes time differences. (e.g. +0.12s/-0.30s)<br /><br />Has an API for developers. (check shavit.inc)<br /><br />Commands for shavit-wr:<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">13:21:53 sm cmds shavit-wr<br />13:21:53 [SM] Listing commands for: [shavit] World Records<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [Name]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [Type]&nbsp; [Help]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_delete&nbsp; &nbsp; &nbsp; &nbsp; admin&nbsp; &nbsp; &nbsp; &nbsp; Opens a record deletion menu interface<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_deleteall&nbsp; &nbsp; &nbsp; admin&nbsp; &nbsp; &nbsp; &nbsp; Deletes all the records<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_deleterecord&nbsp; admin&nbsp; &nbsp; &nbsp; &nbsp; Opens a record deletion menu interface<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_deleterecords&nbsp; admin&nbsp; &nbsp; &nbsp; &nbsp; Opens a record deletion menu interface<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_worldrecord&nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_worldrecordsw&nbsp; console&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_wr&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_wrsw&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console</code><hr />
</div><b><font size="3">shavit-hud:</font></b><br />Shows timer stats to you or whoever you are spectating. (<a href="http://i.imgur.com/WrL3JIB.png" target="_blank">Screenshot</a>) Colored properly in CS:GO, white text in CS:S.<br /><br />Commands for shavit-hud:<br />None<br /><br /><b><font size="3">shavit-zones:</font></b> (A BIG BIG THANK YOU to blacky! <a href="https://forums.allie...d.php?t=222822" target="_blank">This is amazing</a>, would be impossible without you!)<br />Lets admins with RCON access setup map zones. (Start zone, end zone and glitch [aka stop timer/respawn player])<br />Has a friendly interface and shows you the map zone before you set it up. (<a href="http://i.imgur.com/xxnipCK.jpg" target="_blank">Screenshot</a>)<br />Has an API for developers. (check shavit.inc)<br /><br />Commands for shavit-zones:<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">13:31:27 sm cmds shavit-zones<br />13:31:27 [SM] Listing commands for: [shavit] Map Zones<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [Name]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [Type]&nbsp; [Help]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_deletezone&nbsp; &nbsp; admin&nbsp; &nbsp; &nbsp; &nbsp; Delete a mapzone<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_mapzones&nbsp; &nbsp; &nbsp; admin&nbsp; &nbsp; &nbsp; &nbsp; Opens the mapzones menu<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_zones&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; admin&nbsp; &nbsp; &nbsp; &nbsp; Opens the mapzones menu</code><hr />
</div><b><font size="3">shavit-misc:</font></b><br />Hides every command from chat. Prevents spam.<br />Lets players see who is spectating them using a command.<br />Allows players to move to the spectators' team.<br />Announces players about a new world record.<br />Adds sm_hide, letting players hide each other to prevent field of view blockage.<br />Disables prespeeding in the start zone. (280 speed - max)<br />Gives everyone god mode, preventing them from dying.<br />Auto cleans weapons on ground - not for now, I just force the cvar that does it in CS:GO, I'll find a solution for CS:S when I'll actually care about this old game.<br /><br />Commands for shavit-misc:<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">13:35:30 sm cmds shavit-misc<br />13:35:30 [SM] Listing commands for: [shavit] Miscellaneous<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [Name]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [Type]&nbsp; [Help]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_hide&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; Toggle players' hiding.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_spec&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; Moves you to the spectators' team. Usage: sm_spec [target]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_specs&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; Show a list of spectators.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_spectate&nbsp; &nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; Moves you to the spectators' team. Usage: sm_spec [target]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_spectators&nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; Show a list of spectators.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sm_unhide&nbsp; &nbsp; &nbsp; &nbsp; console&nbsp; &nbsp; &nbsp; Toggle players' hiding.</code><hr />
</div>Developers API:<br />I have included an API for developers, so they can make their own modules. Include the shavit.inc file to your plugin and start working!<br /><br />Want ANY new feature? (except for new styles, I only play forwards/sideways) Let me know and I'll consider it.<br />You're welcome to request CVars, natives or w/e you want.<br /><br />Another note:<br />Before asking me to add a new feature or &quot;fix&quot; something, it's probably something that the game engine already has and it's just a cvar, so do researches before asking me.</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...>shavit.zip</a> (85.9 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