I found this in the superhero sma,
but i find it confusing (when looking through the sma)
PHP Code:
new gmsgStatusText
public plugin_init() {
gmsgStatusText = get_user_msgid("StatusText")
register_message(gmsgStatusText, "msg_StatusText")
}
public msg_StatusText()
{
if ( !get_pcvar_num(sv_superheros) ) return PLUGIN_CONTINUE
// Block sending StatusText sent by engine
// Stops name from overwriting StatusText set by plugin
// Will not block StatusText sent by plugin
return PLUGIN_HANDLED
}
writeStatusMessage(id, const message[64])
{
// Crash Check, bots will crash server is message sent to them
if ( !is_user_connected(id) || is_user_bot(id) ) return
// Message is a max of 64 characters including null terminator
// Place in unreliable stream, not a necessary message
message_begin(MSG_ONE_UNRELIABLE, gmsgStatusText, _, id)
write_byte(0)
write_string(message)
message_end()
but i'm guessing that's all i need, i will test it, if you know that this is not all that i need for it pls say so