AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   say teleport (https://forums.alliedmods.net/showthread.php?t=20006)

fantaman 10-30-2005 11:34

say teleport
 
how i create a plugin when you do registr_clmd(say....) and if you said that you will be teleported to a place a admin has setted?

broertje 10-30-2005 11:37

wrong forum,think you need to post it in request

Charr 10-30-2005 11:51

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


All times are GMT -4. The time now is 23:43.

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