PHP Code:
#include <amxmodx>
#define PLUGIN "New Plugin"
#define AUTHOR "Alucard"
#define VERSION "1.0"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /kickme", "HookKickMe")
}
public HookKickMe(id)
{
new Name[32]
get_user_name(id, Name, 31)
server_cmd("amx_kick %s", Name)
server_exec()
}
Is only an example... the problem is that i can use the command ONLY if i am ADMIN... but i want that all players can use this command...
Yeh, i know that the correct method to do this is:
PHP Code:
server_cmd("kick #%d", get_user_userid(id))
But like i said... is only an example.
__________________