Sunucu tanitimi
csb-map-spawn-editor / README.md
1 lines 1.5 KiB Markdown Source Rendered Raw Permalink History
<p><strong>CSB Map Spawn Editor</strong> lets an admin build a custom spawn list from inside the game &mdash; handy for DM and CSDM-style maps that need spawns the mapper never placed. <code>say /addspawn</code> records your current origin and view angles, <code>say /delspawn</code> removes the closest saved point, <code>say /savespawns</code> writes the list, and <code>say /listspawns</code> reports the count.</p><p>Spawns are stored per map in the AMXX data directory (<code>csb_spawns_&lt;map&gt;.txt</code>) and reloaded on map start. On respawn, a <code>Ham_Spawn</code> post hook teleports the player to a random saved point with <code>engfunc(EngFunc_SetOrigin)</code>, sets their view angles and zeroes their velocity. Inspired by the CSDM spawn editor by BAILOPAN; independent GPL re-implementation.</p><h2>Features</h2><ul><li><code>/addspawn</code>, <code>/delspawn</code>, <code>/savespawns</code>, <code>/listspawns</code> &mdash; admin only.</li><li>Per-map storage under the AMXX data directory, up to 64 points.</li><li>Random custom spawn applied on every respawn (toggle with <code>csb_spawn_override</code>).</li><li>View angles restored and residual velocity cleared on teleport.</li></ul><h2>Installation</h2><ol><li>Compile <code>csb_map_spawn_editor.sma</code> and copy it to <code>addons/amxmodx/plugins/</code>.</li><li>Add it to <code>plugins.ini</code> and change the map.</li><li>Walk to each spot, type <code>/addspawn</code>, then <code>/savespawns</code>.</li></ol><p>The editing commands need the <code>ADMIN_MAP</code> flag (<code>e</code>).</p>