Raised This Month: $ Target: $400
 0% 

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 12-21-2005 , 08:26  
Reply With Quote #10

Heres a basic version without a sprite and cvars:
Code:
#include <amxmodx> #include <amxmisc> #include <fun> new telestart[3] = {x,y,z} new teleend[3] = {x,y,z}     public plugin_init() {     register_plugin("AMXX Teleporter","1.0.BETA","Charr")     register_cvar("amx_tele_enable","1")     register_cvar("amx_tele_distance","50") } public Client_PreThink(id) {     if(!is_user_alive(id) || !is_user_connected(id))         return PLUGIN_HANDLED     if(get_cvar_num("amx_tele_enable") == 0)         return PLUGIN_CONTINUE     new origin[3]     get_user_origin(id,origin,0)     if(get_distance(origin,telestart) <= get_cvar_num("amx_tele_distance"))         set_user_origin(id,teleend)     return PLUGIN_CONTINUE }
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 16:07.


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