Raised This Month: $ Target: $400
 0% 

say teleport


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 10-30-2005 , 11:51  
Reply With Quote #3

you'd need to include:
Code:
#include <amxmodx> #include <amxmisc> #include <fun>

Store the coordinate for teleporting: (needs to be a global var)
Code:
new gtele_point[3]

Register the commands:
Replace access_level with a level
Code:
register_concmd("amx_setpoint","admin_function",ACCESS_LEVEL,"Help String")  // Used for storing the point register_clcmd("say /teleport","funtion_to_execute",0," Help string") // Used for teleporting to the point

and use:
Code:
get_user_origin
http://www.amxmodx.org/funcwiki.php?...igin&go=search
Code:
set_user_origin
http://www.amxmodx.org/funcwiki.php?...igin&go=search
__________________
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
 



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 23:43.


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