SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Filterscripts (https://forum.sa-mp.com/forumdisplay.php?f=17)
-   -   [FilterScript] Text-to-Speech 0.3.7 2019 (Talk with voice!(again)) (https://forum.sa-mp.com/showthread.php?t=667856)

Mr._Thug/Dark_Boy 10/07/2019 12:55 PM

Text-to-Speech 0.3.7 2019 (Talk with voice!(again))
 
Some time ago there was some systems using translation text to speech, but they changed it and it was broken.

Im using this one on my server i fixed, now im sharing with you.

Note: Only works with rcon since i saw that people could advertise their own server with it.

Funtion: You write normaly on chat and that text will be translated and send again to the server as voice. Everybody in a range of 100 meters can hear.

Languages: English, Portuguese-Brazilian

Commands: /Language

Reqs: Nothing Special.

Credits: Ryder Original filterscript creator of Text to Speech for 0.3d in 2010

Download: [PASTEBIN]

VasicFTW 10/07/2019 02:10 PM

Re: Text-to-Speech 0.3.7 2019 (Talk with voice!(again))
 
hahahaha, ****** translate is everywhere. Good script :)

Symon 10/07/2019 07:40 PM

Re: Text-to-Speech 0.3.7 2019 (Talk with voice!(again))
 
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000AA, "You don't have permission to use Text to Speech (Only Rcon)!");
    if(!strcmp(cmdtext, "/language", true))
    {
        ShowPlayerDialog(playerid, 10241, DIALOG_STYLE_LIST, "Choose the Language!", g_szLangList, "Select", "");
        return 1;
    }
    return 0;
}

IsPlayerAdmin check should go inside the /language command. The way you did blocks every command from a player.

OrlandoRivas 10/07/2019 08:26 PM

Re: Text-to-Speech 0.3.7 2019 (Talk with voice!(again))
 
Que buen FS, Innovador, lo probaré en mi servidor!


All times are GMT. The time now is 10:21 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.