Hmm, maybe, try to put this in the top(after #define's)
Code:
new Float:porigin[3] = { -326.0, 152.0, -25.0 }
And then:
Code:
set_user_origin(id,porigin)
Lemme write the full code <.<
Edit:Here:
Code:
// Edited by Rixorster
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fun>
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")
// Add your code here...
}
// Precaching some stuff
public plugin_precache()
{
precache_sound("items/kuidao/teleport.wav")
}
////////////////////////////////////
// ITEM
///////////////////////////////////
// The Matrix Phone
public item_mphone(id)
{
new origin[3]
new authid[32]
get_user_authid(id,authid,31)
get_user_origin(id,origin)
set_user_origin(id,porigin) // Moves the player to the location stored in origin
client_cmd(id,"speak ^"items/kuidao/teleport^"")
return PLUGIN_HANDLED
}
-----------------------------------------------------------------------------------
Untested, but should work.
Edit: Fixage, forgot one thing <.<
Edit:Fixed
__________________