Oh yes yes, almost forgot about that ^^
The way I do this is through the scripting tutorial and taking a look once in a while at anson's script.
Edit: First error solved =P I included 2 plugin_init previously
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_message", "msgbroadcast", ADMIN_LEVEL_A, "user Broadcast message")
}
public send_message(message[]) {
new msg[64]
format (msg, 63, "%s", message)
client_print(0, print_center, "%s", msg)
}
public msgbroadcast(id) {
if (!(get_user_flags(id)&ADMIN_LEVEL_A)) {
console_print(id, "[AMXX] You donot have the access")
return PLUGIN_HANDLED
new message[64]
new msglen = read_argv(1, message, 63)
if (equali(message "")) {
console_print(id, "[AMXX] Message cannot be blank")
client_print(id, "[AMXX] Message cannot be blank")
}
return PLUGIN_HANDLED
}
didnt include any credits whatsoever though.. figured if i cant handle such simple stuff.. x_x
The attachment is the original plugin made by anson