[FilterScript] Talking Characters [Text-To-Speech] [0.3d Update] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Talking Characters [Text-To-Speech] [0.3d Update] (
/showthread.php?tid=166348)
Re: Talking Characters [Text-To-Speech] [0.3d Update] -
Ballu Miaa - 04.03.2012
Great Job Mate!
Re: Talking Characters [Text-To-Speech] [0.3d Update] -
RoleplayEditor - 04.03.2012
Fucking awesome one
Gave me idea for RP <3 Thanks
Re: Talking Characters [Text-To-Speech] [0.3d Update] -
Roperr - 04.03.2012
Quote:
Originally Posted by RyDeR`
Use it like this:
pawn Code:
for(new i, j = GetMaxPlayers(); i < j; ++i) { if(Player(i) == Police) { if(PlayAudioStreamForPlayer(i, szUrl, fPos[0], fPos[1], fPos[2], MAX_VOICE_RANGE, true)) { continue; } } }
|
Thanks. What about sending it to just one player? Should I do it without the loop and just doing like
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;
}
}
}
Re: Talking Characters [Text-To-Speech] [0.3d Update] -
RyDeR` - 04.03.2012
Just replace the if part by this and you should be fine:
pawn Code:
PlayAudioStreamForPlayer(otherID, szUrl, fPos[0], fPos[1], fPos[2], MAX_VOICE_RANGE, true);
Re: Talking Characters [Text-To-Speech] [0.3d Update] -
Guitar - 04.03.2012
Very useful, thank you .. I had this idea of making something like that but for " Welcome to {ServerName} " on OnPlayerConnect ^_^
Re: Talking Characters [Text-To-Speech] [0.3d Update] -
Dude_Lebowski - 18.03.2012
epic bullcrap.
Re: Talking Characters [Text-To-Speech] [0.3d Update] -
Dolf - 18.03.2012
It gives me this
Quote:
Text_to_speech.pwn(124) : error 017: undefined symbol "PlayAudioStreamForPlayer"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
|
When i compile it
Re: Talking Characters [Text-To-Speech] [0.3d Update] -
Sweez - 24.12.2012
Cool, but will it have Bulgarian ?
Re: Talking Characters [Text-To-Speech] [0.3d Update] -
M3mPHi$_S3 - 25.12.2012
WEwewew pretty good . -1
Re: Talking Characters [Text-To-Speech] [0.3d Update] -
Lordzy - 25.12.2012
This is pretty cool and simple. Nice idea and nice work.