Raised This Month: $ Target: $400
 0% 

Need help with my first script


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
kuidao
Junior Member
Join Date: May 2006
Old 05-05-2006 , 09:26  
Reply With Quote #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
kuidao is offline
Send a message via AIM to kuidao
 



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 05:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode