Yep, i know that, i get it around many scripts, got no idea what it means but doesn't matter for me
Anyways, this should work fine.
Code:
// Edited by Rixorster
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fun>
#include <fakemeta>
new Float:porigin[3] = { -326.0, 152.0, -25.0 }
public plugin_init() {
register_plugin("Matrix Phone", "1.0", "Kuidao Ketemeto")
register_clcmd("item_mphone","item_mphone")
}
// Precaching some stuff
public plugin_precache()
{
precache_sound("items/kuidao/teleport.wav")
}
////////////////////////////////////
// ITEM
///////////////////////////////////
// The Matrix Phone
public item_mphone(id)
{
new Origin[3]
get_user_origin(id,Origin)
new authid[32]
get_user_authid(id,authid,31)
set_user_origin(id,porigin) // Moves the player to the location stored in origin
client_cmd(id,"speak ^"items/kuidao/teleport^"")
return PLUGIN_HANDLED
}
But i don't get one thing, why you have that authid thing there? <.<
__________________