Raised This Month: $ Target: $400
 0% 

my plugin says i dont have access


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Bone
Member
Join Date: Mar 2005
Location: Under your bed
Old 03-29-2005 , 19:28   my plugin says i dont have access
Reply With Quote #1

I am new to small so im trying out simple plugs i made this plug in to make like a simple slay plug in

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")
    console_print(id,"Killed player!")
    return PLUGIN_HANDLED
}
however im not sure if


Code:
client_cmd(uid,"user_kill")
is correct or if i should have put like

Code:
user_kill(uid)
but anyways thats not the problem, the problem is whenever i try to use command it says i have no access now i have full admins rights and i can use buikt in amx admin commands like amx_slay, amx_kick etc. SO i have no idea why it says i dont have access. please help
Bone is offline
Send a message via MSN to Bone
 



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