04.03.2012, 06:57
Quote:
Use it like this:
pawn Code:
|
pawn Code:
stock SendVoiceMessage(playerid, szMsg[], const szLang[], otherID)
{
new Float: fPos[3];
if(GetPlayerPos(playerid, fPos[0], fPos[1], fPos[2]) && szLang[0] != EOS)
{
static szUrl[60 + 128];
format(szUrl, sizeof(szUrl), "http://translate.google.com/translate_tts?tl=%s&q=%s", szLang, szMsg);
if(PlayAudioStreamForPlayer(otherID, szUrl, fPos[0], fPos[1], fPos[2], MAX_VOICE_RANGE, true))
{
continue;
}
}
}