You can make this func like that, not tested but should work.
PHP Code:
public fn_Messages()
{
new iMsg[50]
new msg[][] = { "TAH!", "LETS DO THE HARLEM SHAKE", "HEY!", "CON LO TERRORISTA!", "WRAOOOOOOOOOOOH!" };
new Float:times[] = { 1.5, 2.0, 1.5, 1.0, 1.2, 0.8, 1.0, 0.6, 0.3, 0.6, 0.4, 0.6, 0.3, 7.4, 4.0, 2.5 };
formatex(iMsg,charsmax(iMsg), tas < 13 ? msg[0] : msg[tas - 12]);
if(tas < 16)
{
set_task(times[tas], "fn_Messages");
}
set_dhudmessage(0,100,200,-1.0,0.20,0,1.0,0.1)
show_dhudmessage( 0, iMsg )
tas++;
}