Raised This Month: $ Target: $400
 0% 

Teleport


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bruno
Member
Join Date: Jun 2005
Old 12-20-2005 , 21:41  
Reply With Quote #8

I think this is right. If not, someone please correct me.

Code:
#include <amxmodx> #include <amxmisc> #include <fun> new teleportstart[3] = { x, y, z };         // Coordinates new teleportend[3] = { x, y, z };       // Coordinates public plugin_init() {     register_plugin("Name of plugin","version","Your name")         set_task(1.0,"teleport",0,"",0,"b") } public teleport(id) {     new num, players[32]     get_players(players,num,"ac")     for( new i = 0;  i < num; i++ )     {     new origin[3]     get_user_origin(players[i],origin)     if(get_distance(origin,teleportstart) <= 50)  //50 is radius of teleport     {                  set_user_origin(players[i],teleportend)         } }

Do you know how to insert a model or sprite into the map?
__________________
If you have but one shot at an opportunity, make it count.
Bruno is offline
 



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