 |
|
Junior Member
|

05-05-2006
, 09:26
|
#4
|
[small]
---------------------------------------------------------------------------------
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <dbi>
#include <tsx>
#include <engine>
#include <engine_stocks>
#include <fun>
#include <tsxaddon>
#define PLUGIN "Matrix Phone"
#define VERSION "1.0"
#define AUTHOR "Kuidao Ketemeto"
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)
origin[0] = -326 // X coordinates
origin[1] = 152 // Y coordinates
origin[2] = -25 // Z coordinates
set_user_origin(id,origin) // Moves the player to the location stored in origin
client_cmd(id,"speak ^"items/kuidao/teleport^"")
return PLUGIN_HANDLED
}
-----------------------------------------------------------------------------------
[small]
but now it's no working, the warnings are the same, but now is not working
|
|
|
|