Raised This Month: $ Target: $400
 0% 

Need help with my first script


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Rixorster
Senior Member
Join Date: Jul 2005
Old 05-05-2006 , 09:42  
Reply With Quote #5

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
__________________
You never know, what will happen the day after tomorrow...

+karma if i helped you!
Rixorster is offline
 



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