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.