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

Advanced Teleports ( 08/11/2013 )


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 11-04-2013 , 22:36   Advanced Teleports ( 08/11/2013 )
Reply With Quote #1

Advanced Teleports
v0.0.3
By Blizzard_87

ThreadStart
This plugin works very similar to the default teleport( amxx ), with extra features including
the ability to save 20( MAX ) loctions for teleporting, the ability to Name the locations,
and you can teleport anyone alive to those locations.
Place The Sound File In Your cstrike/sound folder like,
cstrike/sound/teleport/blinkarrival.wav

Place amx_advanced_teleport.amxx File In Your Plugins Folder

Add amx_advanced_teleport.amxx To Your Plugins.ini File.
or simply replace teleport.amxx with this one.
at_mode "1" - 0 Disables | 1 Only Admins Use ( at_admin_flag Cvar ) | 2 Anyone Can Use
at_admin_flag "a" - a ( ADMIN_IMMUNITY ) default flag for using this menu.
at_max_locations "7" - 20 Is The Maximum Allowed Locations
at_tele_sound "1" - 0 disables sound | 1 plays sound when player teleported
Client Commands
---------------
say /teleport - opens main menu
amx_teleport - opens main menu
to edit default phrase for un used locations find this like and edit inside quotes
Code:
#define UNUSED "Empty Location"
Blizzard - Author
Hornet - Bitsums, player angles
AmxModX Devs - Util_SetOrigin stock
Phant - view angle also

Change Log


Plugin Downloaded
34+ Current

ThreadEnd

Attached Files
File Type: sma Get Plugin or Get Source (amx_advanced_teleport.sma - 2164 views - 11.7 KB)
File Type: zip blinkarrival.zip (50.7 KB, 827 views)
__________________

Last edited by Blizzard_87; 06-27-2015 at 21:40.
Blizzard_87 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-05-2013 , 00:48   Re: Advanced Teleports ( 05/11/2013 )
Reply With Quote #2

You have to use userid instead of name for players menu, else, you have no way to check if selected player is the player that had been stored in the menu.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 11-05-2013 , 01:05   Re: Advanced Teleports ( 05/11/2013 )
Reply With Quote #3

Use pev_origin instead get/set_user_origin:
https://forums.alliedmods.net/showthread.php?t=228623
Phant is offline
Send a message via ICQ to Phant
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 11-05-2013 , 02:29   Re: Advanced Teleports ( 05/11/2013 )
Reply With Quote #4

Quote:
Originally Posted by ConnorMcLeod View Post
You have to use userid instead of name for players menu, else, you have no way to check if selected player is the player that had been stored in the menu.
i am using userid?

CODE



UPDATED VERSION 0.0.2

[ EDITED ] Changed Set/Get_user_origin to pev_origin
[ ADDED ] Util_SetOrigin from amxmodx teleport plugin
__________________

Last edited by Blizzard_87; 11-05-2013 at 02:43.
Blizzard_87 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-07-2013 , 01:08   Re: Advanced Teleports ( 05/11/2013 )
Reply With Quote #5

I must be blind.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 11-07-2013 , 01:24   Re: Advanced Teleports ( 05/11/2013 )
Reply With Quote #6

Quote:
Originally Posted by ConnorMcLeod View Post
I must be blind.
Is there anything else I could do to improve this? I'm going to add multi language with next update.
__________________
Blizzard_87 is offline
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 11-07-2013 , 01:39   Re: Advanced Teleports ( 05/11/2013 )
Reply With Quote #7

Would be nice if you add option for saving view angles of player too (source).
Also, possibility for clear selected saved position (in players nicknames sub-menu), add "Remove" item before "Location Page".
Phant is offline
Send a message via ICQ to Phant
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 11-07-2013 , 02:08   Re: Advanced Teleports ( 05/11/2013 )
Reply With Quote #8

Quote:
Originally Posted by Phant View Post
Would be nice if you add option for saving view angles of player too (source).
Also, possibility for clear selected saved position (in players nicknames sub-menu), add "Remove" item before "Location Page".
I'll look into player angles

I'll also update the menu to add / clear locations

And add multi language.
__________________
Blizzard_87 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-07-2013 , 13:03   Re: Advanced Teleports ( 05/11/2013 )
Reply With Quote #9

Why have you put 'stock' in front of private functions ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 11-07-2013 , 19:35   Re: Advanced Teleports ( 05/11/2013 )
Reply With Quote #10

Quote:
Originally Posted by ConnorMcLeod View Post
Why have you put 'stock' in front of private functions ?
fixed.


Plugin Updated Version 0.0.3

[ OPTIMIZED ] Rewrote menu layout ( easier to use )
[ EDITED ] menu now shows Save / Remove Location menus
[ ADDED ] saving player view angle at origin of teleport
__________________

Last edited by Blizzard_87; 11-07-2013 at 19:35.
Blizzard_87 is offline
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 01:58.


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