[FilterScript] Talking Characters [Text-To-Speech] [0.3d Update]
#41

Great Job Mate!
Reply
#42

Fucking awesome one
Gave me idea for RP <3 Thanks
Reply
#43

Quote:
Originally Posted by RyDeR`
View Post
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;
    }
}
}
Reply
#44

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);
Reply
#45

Very useful, thank you .. I had this idea of making something like that but for " Welcome to {ServerName} " on OnPlayerConnect ^_^
Reply
#46

epic bullcrap.
Reply
#47

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
Reply
#48

Cool, but will it have Bulgarian ?
Reply
#49

WEwewew pretty good . -1
Reply
#50

This is pretty cool and simple. Nice idea and nice work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)