Is it Possible to get a speach
#1




Is it Possible to get a speach Like " OnPlayerConnect " Welcome to United City Roleplay " ? if you know please share with me...
Reply
#2

Some people have recordings over there, text-to-speech from the control panel and have it uploaded to a site and just have it "OnPlayerConnect"

PlayAudioStreamForPlayer(playerid, [ url] ]
Reply
#3

There is an alternative, let me give you a code for it. Please wait for an edit.

EDIT:
Remove [url] tags if they appear, I can't seem to remove them in some cases.
pawn Код:
public OnPlayerConnect(playerid)
{
    PlayAudioStreamForPlayer(playerid, "http://translate.******.com/translate_tts?tl=en&q=Welcome%20to%20united%20city%20roleplay");
    return 1;
}
Код:
PlayAudioStreamForPlayer(playerid, "http://translate.******.com/translate_tts?tl=en&q=Welcome%20to%20united%20city%20roleplay");
You can change /translate_tts?tl=en&q=... to whatever you want it to say. Change 'Welcome to united city roleplay' to whatever you want the server to say.

Example:
Код:
PlayAudioStreamForPlayer(playerid, "http://translate.******.com/translate_tts?tl=en&q=I like gta");
will obviously say, "I like GTA."

This is a tactic used by many server owners. NOTE: The link will appear for other players, unless you want to use an alternative plugin/system that does not use URLs.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)