This is what you need to use for colored messages
Beware! Before showing the message to the player you must format it
PHP Code:
format(msg,sizeof(msg) -1,"xxx",any...)
colored_msg(id,msg)
To change the colores of the font you need to use these characters:
PHP Code:
^x01 -> for normal color
^x03 -> for team color (red for teror, white for spec, blue for ct)
^x04 -> for green color
Example of usage:
^x03 Make me cry ^x04 yea ^x01 mama
Will apear ( if you are terrorist)->
Make me cry yea mama
PHP Code:
public colored_msg(id,msg[])
{
message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
}
The roundtime more than 10 ... sorry I don't know
To register forwards in fakemeta the function is:
PHP Code:
register_forward(FM_PlayerPreThink,"fw_pre") //in plugin init
public fw_pre(id)
{
// do stuff
}
__________________