Hello
I made this plugin:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "plugin"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("say /command", "server_command", ADMIN_ALL, "something here")
}
public server_command(id)
{
client_print(id, print_chat, "*************** something ***************")
client_print(id, print_chat, "something here")
client_print(id, print_chat, "*************** something ***************")
return PLUGIN_HANDLED
}
public playerconnect(id)
{
client_print(id, print_chat, "*************** something ***************")
client_print(id, print_chat, "something here")
client_print(id, print_chat, "*************** something ***************")
}
public client_putinserver(id) {
new name[32];
get_user_name(id,name,31)
server_cmd("say player %s is connecting",name)
}
But when i or other people connect, it doesn't display anything else except "player NICKNAME_HERE is connecting"
Yes.. the command: /command WORKS, but the public playerconnect(id) doesnt
Can you tell me why, and how i can fix it ?
Thanks
Regards