21.03.2014, 22:24
pawn Code:
CMD:falar(playerid, params[])
{
new Str2[30], Falar;
if(sscanf(params, "s", Fala)) return SendClientMessage(playerid, CINZA, "Use /falar [texto]");
for(new i = 0; i < MAX_PLAYERS; i++)
{
format(Str, sizeof(Str), "http://translate.******.com/translate_tts?tl=pt&q=%s", Fala);
PlayAudioStreamForPlayer(i, Str, 0, 0, 0, 0, 0);
}
format(Str2, sizeof(Str2), "~h~~g~%s ~y~Falando", Nome(playerid));
GameTextForAll(Str2, 1500, 1);
return 1;
}