I'll write up the following plugin as soon as my current projects are completed. I estimate two to three weeks before the current workload is completed; however, if you'd like to commission the project, I could complete it within a few days. Otherwise, my current projects take priority. A much simpler plugin could be written for your needs, if someone else wishes. Here are the development notes I've made regarding the plugin:
Code:
Plugin:
Coordinate Warp
Purpose:
Provides the ability for players to teleport to defined locations within the map.
Features:
Warp locations to be saved in a sqlite/mysql database.
Support up to 64 warp locations for each map.
Admin commands for setting/deleting warps in-game.
Commands:
sm_warp
Usage: Displays a menu listing currently available warp locations for the current map.
Parameters: None
Sample Menu:
Available Warps
1) Terrorist Spawn //Only appears on the Terrorist team.
2) Counter-Terrorist Spawn //Only appears on the Counter-Terrorist team.
3) Fuzzy's Secret Area //Only appears with the 'z' flag
4) Return //Option only appears if a user has warped to a location
0) Exit
sm_addwarp
Usage: Takes the admin's current location / rotation, along with additional parameters, and saves it as a warpable location.
Parameters: <optional_flag_requirement> <optional_team_requirement> <displayed_name>
Example Usage:
sm_setwarp z 0 "Fuzzy's Secret Area" // Only players with the z flag can access this location.
sm_setwarp 0 2 "Terrorist Spawn" // Any player on the Terrorist team can access this location.
sm_setwarp 0 3 "Counter-Terrorist Spawn" // Any player on the Counter-Terrorist team can access this location.
sm_delwarp
Usage: Displays a list of current warp locations for the current map to the admin.
Parameters: None
Sample Menu:
Defined Warps:
1) Terrorist Spawn
1) Delete Warp
1) Yes
2) No
0) Back
0) Back
2) Counter-Terrorist Spawn
3) Fuzzy's Secret Area
0) Exit
sm_listwarp
Usage: Displays warps for the current map as well as their unique_index for setting manual changes.
sm_setwarp
Usage: Allows a warp entry to be modified in-game rather than having to do it within phpmyadmin.
Parameters: <unique_index> <pos_x> <pos_y> <pos_z> <optional_flag> <optional_team> <displayed_name>
ConVars:
sm_coordinate_warp_enabled - [0/1], Globally enables/disables all features of the plugin.
sm_coordinate_warp_delay - [0.0/x.x], The number of seconds after selecting a warp location before a player is warped.
sm_coordinate_warp_return - [0/1], 0 = Players are returned to their spawn position / 1 = Players are returned to their position pre-warp
__________________