Raised This Month: $ Target: $400
 0% 

Newbie Scripter - First Plugin - Need Help don't Laugh :)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-16-2005 , 20:36  
Reply With Quote #2

No need to laugh.

Code:
#include <fun> // Fun module is required for set_user_origin()

Also, before the last } put: return PLUGIN_HANDLED

--

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #define PLUGIN_NAME "Stack X" #define PLUGIN_VERSION "1.0" #define PLUGIN_AUTHOR "eXist`" public plugin_init() {     register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)     register_concmd("amx_stackx", "stack_x", ADMIN_KICK, "user Define a Player to be stacked upon yourself.") } public stack_x(id,level,cid) {     if (!cmd_access(id,level,cid,1)) {         //console_print(id, "[AMXX] You have no access to that command!")         // Not needed because it will already be printed!         return PLUGIN_HANDLED     }     new user[33]     read_argv(1,user,32)     new player = cmd_target(id,user,1+2)     if(!is_user_connected(player) || !is_user_alive(player)) {         return PLUGIN_HANDLED     }     new origin[3]     get_user_origin(id, origin, 0)     origin[2] = origin[2] + 50     set_user_origin(player, origin)     return PLUGIN_HANDLED }

(Sorry about editing like post like 10 times!)
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x 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 09:55.


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