View Single Post
santa
Member
Join Date: Nov 2005
Old 11-26-2005 , 00:03  
Reply With Quote #4

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
Attached Files
File Type: sma Get Plugin or Get Source (adminbroadcast.sma - 716 views - 2.6 KB)
santa is offline