Hello
I tried this:
PHP Code:
#include <amxmodx>
new tf
public plugin_init() {
register_plugin("Taking Fire Changer", "0.0.1", "Author")
register_message(get_user_msgid("TextMsg"), "message_textmsg")
tf = register_cvar("msg_takingfire", "Taking Fire, Save Me Guys!")
}
public message_textmsg(msg_id, msg_dest, msg_entity) {
static textmsg[32]
get_msg_arg_string(2, textmsg, sizeof textmsg - 1)
new new_message[121]
if(equal(textmsg, "#Taking_fire"))
get_pcvar_string(tf, new_message, 120)
else
return
message_begin(msg_dest, msg_id, _, msg_entity)
write_byte(get_msg_arg_int(1))
format(new_message, 120, "%s", new_message)
write_string(new_message)
message_end()
}
Well idk if problem is about arguments or if it is because of format, but the message that is displayed is the default one...
__________________