Raised This Month: $32 Target: $400
 8% 

Teleportation facilities


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   Geesu (62)
bahr
Member
Join Date: Aug 2005
Old 09-03-2005 , 07:52   Teleportation facilities
Reply With Quote #1

Plugin_teleport


Author:
bahrmanou - [email protected]

[EDIT]
New - Version 1.8:
- Now with automatic unstucking (thx to NL)Ramon(NL ;))
- Added commands
- Bug fixes (read the readme file for more)
[/EDIT]

What is it?
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).

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/'.


Users Commands :
say saveme (or /s) save current position
say posme (or /p) teleport to saved position (see 'Teleport allowing')
say saveme2 save current position (2nd)
say posme2 teleport to 2nd saved position


Admins Commands:
amx_tpallow [flag]
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] [flag]
User teleporting flag.

amx_tpeffect [n]
Modify teh teleport effect ( [1,6] ; 0 = random effect)

amx_tpstack [user]
Stack user or everybody.

amx_tpdelay [delay]
Set delay users must wait between two 'posme'.

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]
Name the slot in the table. 'name' can be any text.

amx_tpsave
Save the table on disk.

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.

and more...

HAVE FUN!
Attached Files
File Type: zip plugin_teleport.zip (23.6 KB, 1836 views)

Last edited by bahr; 02-25-2007 at 10:27.
bahr is offline
Send a message via MSN to bahr
One shot dont miss!
Senior Member
Join Date: Jun 2005
Old 09-03-2005 , 07:56  
Reply With Quote #2

nice for a newbie gj bro
__________________
One shot dont miss! is offline
watch
Senior Member
Join Date: Sep 2005
Old 09-07-2005 , 09:24  
Reply With Quote #3

Nice one ive been looking for this plugin on amxx

The only feature i would like to see is being able to list maps in a text file and when the plugin registers it checks the currentmap and reads the text file, checking if the currentmap is listed and if so enable checkpoints if not disable them

Ive written a similar plugin for adminmod too and i added that feature and its extremly useful, also if the checkpoint file didnt exist it would mean that all maps would have checkpoints enabled

watch is offline
bahr
Member
Join Date: Aug 2005
Old 09-07-2005 , 12:05  
Reply With Quote #4

Well, you can use the cvar "amx_teleport" for that purpose!
Just put "amx_teleport 0" in your map config (amxmodx\configs\maps\thismap.cfg)
bahr is offline
Send a message via MSN to bahr
bahr
Member
Join Date: Aug 2005
Old 10-23-2005 , 21:34  
Reply With Quote #5

bump
bahr is offline
Send a message via MSN to bahr
bahr
Member
Join Date: Aug 2005
Old 11-03-2005 , 09:35  
Reply With Quote #6

version 1.4.1 available!
bahr is offline
Send a message via MSN to bahr
Zenith77
Veteran Member
Join Date: Aug 2005
Old 11-03-2005 , 09:45  
Reply With Quote #7

Good job man...
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
n00bl0l
Junior Member
Join Date: Dec 2005
Old 12-13-2005 , 14:46  
Reply With Quote #8

Why can't I use it....?? its says:
Unknown command: amx_tpsen

Help me..
__________________
Phu aka kim
n00bl0l is offline
Send a message via MSN to n00bl0l
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 12-13-2005 , 15:14  
Reply With Quote #9

Please choose a category.
__________________
twistedeuphoria is offline
HarcoN
Member
Join Date: Sep 2005
Location: Denmark
Old 12-16-2005 , 18:56  
Reply With Quote #10

Well, could you make a version with acces level ??
so i can change it for acces z if i want public, and maybe make a cvar ?? so i can change between all the flags????

please.

Love
HarcoN
__________________
www.clankamp.dk
The place where clans meet.
HarcoN is offline
Send a message via MSN to HarcoN Send a message via Skype™ to HarcoN
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode