Quote:
Originally Posted by Cheap_Suit
Hello!
Alright, im using the StatusText Message to show a text message that is constantly being changed. So I was wondering where is the best place to hook it.
|
Hook it when the info is changed.(?)
EDIT: Maby like so?
Code:
#include <amxmodx>
new gmsg_StatusText;
public plugin_init()
gmsg_StatusText = get_user_msgid("StatusText");
stock show_StatusText(id, str[], len, ...) {
format_args(str, len);
message_begin(MSG_ONE_UNRELIABLE, gmsg_StatusText, {0,0,0}, id);
write_byte(0);
write_string(str);
message_end();
}