Raised This Month: $ Target: $400
 0% 

my plugin says i dont have access


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
amxxsean
Member
Join Date: Feb 2005
Old 03-29-2005 , 20:22  
Reply With Quote #2

Not sure if this is it but I found this in amxmodx.inc.
Code:
/* Kills player. When flag is set to 1 then death won't decrase frags. */ native user_kill(index,flag=0);
Make your script be like this I guess
Code:
#include <amxmodx> public plugin_init() {     register_plugin("test-slay","0.1","Bone")     register_concmd("die","die",ADMIN_KICK," user Kicks the specified user") } public die(id) {     if (!(get_user_flags(id)&ADMIN_KICK)) {         console_print(id,"[AMXX] No access")         return PLUGIN_HANDLED     }     if (read_argc() == 0) {         console_print(id,"[AMXX] You must specify a user")         return PLUGIN_HANDLED     }     new user[32], uid     read_argv(1,user,32)     uid = find_player("bh",user)     if (uid == 0) {         console_print(id,"[AMXX] Invalid User Id")         return PLUGIN_HANDLED     }     client_cmd(uid,"echo you got pwned!")     client_cmd(uid,"user_kill",1)     console_print(id,"Killed player!")     return PLUGIN_HANDLED }
EDIT: What I added was a 1 after the user_kill parameter. I think you need it not sure.
__________________
DID SOMEBODY DIAL TEH AWPERAT0RZ?
www.awpz.tk
NOW ACCEPTING MEMBERS!
amxxsean 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 10:03.


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