<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">"Databases"<br />{<br /> "driver_default" "mysql"<br /> <br /> // When specifying "host", you may use an IP address, a hostname, or a socket file path<br /> <br /> "default"<br /> {<br /> "driver" "default"<br /> "host" "localhost"<br /> "database" "sourcemod"<br /> "user" "root"<br /> "pass" ""<br /> //"timeout" "0"<br /> //"port" "0"<br /> }<br /> <br /> "shavit"<br /> {<br /> "driver" "mysql"<br /> "host" "localhost"<br /> "database" "shavit"<br /> "user" "root"<br /> "pass" ""<br /> }<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 ("legit bhop server owners" 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 /> [Name] [Type] [Help]<br /> sm_diff console Choose your bhop style.<br /> sm_difficulty console Choose your bhop style.<br /> sm_forwards console Style shortcut: Forwards<br /> sm_n console Style shortcut: Forwards<br /> sm_normal console Style shortcut: Forwards<br /> sm_r console Start your timer.<br /> sm_restart console Start your timer.<br /> sm_s console Choose your bhop style.<br /> sm_s console Start your timer.<br /> sm_sideways console Style shortcut: Sideways<br /> sm_start console Start your timer.<br /> sm_stop console Stop your timer.<br /> sm_style console Choose your bhop style.<br /> sm_styles console Choose your bhop style.<br /> sm_sw console 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 /> [Name] [Type] [Help]<br /> sm_delete admin Opens a record deletion menu interface<br /> sm_deleteall admin Deletes all the records<br /> sm_deleterecord admin Opens a record deletion menu interface<br /> sm_deleterecords admin Opens a record deletion menu interface<br /> sm_worldrecord console <br /> sm_worldrecordsw console <br /> sm_wr console <br /> sm_wrsw 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 /> [Name] [Type] [Help]<br /> sm_deletezone admin Delete a mapzone<br /> sm_mapzones admin Opens the mapzones menu<br /> sm_zones admin 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 />
<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 /> [Name] [Type] [Help]<br /> sm_hide console Toggle players' hiding.<br /> sm_spec console Moves you to the spectators' team. Usage: sm_spec [target]<br /> sm_specs console Show a list of spectators.<br /> sm_spectate console Moves you to the spectators' team. Usage: sm_spec [target]<br /> sm_spectators console Show a list of spectators.<br /> sm_unhide console 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 "fix" 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ł