Teleportation Facilities

Description
Plugin_teleport =============== Author: bahrmanou - [email protected] This plugin was written for TFC, but could be useful for other mods too :) The goal of this plugin is to facilitate teleporting. It is specially useful in cooperative maps, concjumps and pipejumps maps where it can be very frustrating for players to die after long and hard work... Usage: ====== Teleporting is handled in two ways : a) Any player can ask to remember his position in the map, then later he can ask to be teleported to this point. For this to work, global teleporting must have been allowed ('amx_tpallow': enabled by default) and user teleporting must have been allowed ('amx_tpallowuser': enabled when the player connect). Commands : ========== say saveme Saves current position say /s Idem say posme Teleport to saved position (see 'Teleport allowing') say /p Idem say saveme2 Saves current position (2nd) say posme2 Teleport to 2nd saved position (see 'Teleport allowing') say /stats Displays checkpoint stats. say /teleport_version Displays plugin version. b) Admins or at least players with permission level ACCESS_TELEPORT have access to a table of positions ('slots'). They can add or replace positions in this table in the way they like. Finally, they can save the table on disk and reload it when required. By default, the table contains 40 slots maximum and will be saved in folder 'amxmodx/configs/pos/'. Commands : ========== Teleport allowing: ================== amx_tpallow Global teleporting flag. If no flag is given, get current status. If OFF, users cannot teleport themselves. By default, posallow is <ON>. amx_tpallowuser [#user] User teleporting flag. If no flag is given, get current status of player. For a user to be able to teleport himself, set posallow to <ON> AND posallowuser (for that particular user) to <ON>. By default, all users are <ON>. amx_tpdelay Set delay users must wait between two 'posme'. If no delay is given, get the delay status. If delay==0, set delay <OFF>, that is users can teleport themselves at any moment. (by default, delay is set to 5 secs). amx_tpeffect <n> Change teleportation effect (1-6). If n == 0 or n > 6, effect is random. Table relatives: ================ amx_tp [<#user> [#slot]] Teleport user to the position in the slot. amx_tpadd [#user] Add a slot to the end of the table. amx_tpempty Empty the slot table. amx_tplist Display the slot table in console. amx_tpload Load the table in memory. amx_tpmem <#user> <#slot> Replace the slot in the table by the user position. amx_tpname <#slot> Name the slot in the table. 'name' can be any text. amx_tpcopy <user> <target> Copy the user position to target. amx_tpsave Save the table on disk. Others: ======= amx_tpdelay Set a delay between 2 posme (0 = OFF). amx_tpstack Stack player(s) on you. amx_tpgo <target> <x> <y> <z> Teleport target to coordinates. amx_tpaim <user> Send user where im looking. amx_tpcopy <#user1> <#user2> Copy user1 saved position to user2. User2 have to say 'posme' to be teleported to this position. amx_tpsend <#user1> <#user2> Send directly user1 to the current user2 position. amx_tpinfo Display the current position coordinates. (NOTE: 'flag' here mean the strings 'on', 'off', '0' or '1'). CVARS: ====== g_cvteleport 0/1 - Global teleporting flag On/Off. g_cvteleport_effect 0-6 - Special effect while being teleported. g_cvunstuck 0/1 - Automatic unstucking On/Off. g_cvunstuck_effect 0/1 - Automatic unstucking effect On/Off. Map change: ========== If a table already exists for the current map, it will be loaded automatically at map change. By default, teleportation is enabled for common users. If you want to disable the teleportation for certain maps, go in your server folder and edit/create the file maps\<mapname>.cfg In the end of file, add the following line: amx_teleport 0 The say commands will then be disabled. For comments or suggestions, please email me at [email protected] Enjoy!! Thanks to: ========== 1. Amxmodx team... 2. NL)Ramon(NL for his auto-unstucking plugin, which I include here. History: ======== 1.3 First AmxmodX public release. Port from my Adminmod teleport_plugin. 1.3.1 Some bug fixes related to slot table. 1.4 When a player teleport, the viewing angles are now saved as well as the position. The velocity is now set to 0.0 prior to the teleportation. The default delay between two posme's is now 2 secs. (it was 5 secs. before) 1.4.1 Viewing angles fixed 1.4.2 Removed 'youre not really stuck' bit, didnt work 1.4.3 Replaced client_print(..print_console,..) by console_print() 1.4.4 Added /l command Added /stats command 1.5 Added support for speedrun mode (skillsrank by NL)Ramon(NL), modified by me) 1.6 Added plugin_cfg() which restart cvars for each map. 1.7 Added amx_tpaim 1.7.1 Cannot save position while in noclip mode 1.7.2 Delay for destuckme as for posme 1.8 New unstuck method thx to NL)Ramon(NL ! No more need of destuckme!
Images

No preview images uploaded.

Archive Files
Path MD5
tfc
addons
amxmodx
configs
pos
cal_conc-r.pos 45fd81d6dd1d74d9b4e895bdff4a1b6a
cal_conc.pos 45fd81d6dd1d74d9b4e895bdff4a1b6a
concmap2.pos e661339c592745c835d75ea785e4dfb9
concmap3.pos e4d613f5a1d7fb10ff48160d7beb2e4e
concmap4.pos 012bf62a4dc592e40a589165e7bcba9c
concmap5.pos 15b1b45395dd290abe1a721cd61daca1
concmap6.pos 8fa4367384f8c0af2c8e81194ee4e041
concmap7.pos d5f69f810756c0355273c839b8e21a3e
concmap8.pos 9fce9bca1dec3bf685aa3d60d91daff4
concmap_b0n3.pos c34362e9a5f8f11243a84756009bae98
concmap_esad.pos 116b17667eef65cfb6e2a3ca31157c54
concmap_ice.pos 4df340f7ff00883c2350d20c2dd68291
conc_groove.pos e797527e700dd1876e8400e53a92a31c
conc_juggle_mmr.pos efed7f1ed501883f8b0fc8c11e2d1b41
conc_sand.pos c1e7e24d047ff063632ceaa50f481ab7
conc_speed.pos 21893887cc931716a7adc8aa42828692
conc_speed2.pos db3d33380ebd27853b68defb9ccd7038
conc_strafe2.pos ddca11f72a0a9d2792623a7962fc2e86
kamikaze_sc1_r.pos 716a8e9119f9d868a5df5185f36d17e8
pipeworld2001.pos 0d7ef834e2fb003712b213afd36986b3
tayconc2.pos f57257ec53bbfd1d371c4b2f87663eb6
plugins
plugin_teleport.amxx 6e44c904f3ffa9605a4f87ca7c2d4976
scripting
include
entconst.inc 12806d43d35e704436e172003a110a9c
plugin_teleport.sma 78a3d9f5202b9babb64aa1291c87fe07
ReadMe!.txt a780a0d92512658b620bdf540c72fb01