➲*******,Voice MP3 CMD
#7

Quote:
Originally Posted by capron
View Post
PHP Code:
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#define vermelho 0xFF0000AA
CMD:voice(playeridparams[])
{
    new 
Texto[200],
        
stringtexto[300];
    if (
sscanf(params"s"Texto)) return SendClientMessage(playeridvermelho"[ERRO]: /voice [Text]");{
        new 
Float:PosX,
            
Float:PosY,
            
Float:PosZ;
        
GetPlayerPos(playeridPosXPosYPosZ);
        for (new 
i;i<MAX_PLAYERS;++i){
            if (
IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i30.0PosXPosYPosZ)){
                
format(stringtextosizeof(stringtexto), "https://translate.******.com/translate_tts?ie=UTF-8&q= %s &tl=pt-TW&client=tw-ob",Texto);
                
PlayAudioStreamForPlayer(istringtexto);
                
PlayerPlaySound(i,1057,0.0,0.0,0.0);
            }
        }
    }
    return 
1;

Vlw cara
Reply


Messages In This Thread
➲*******,Voice MP3 CMD - by kolor4d0 - 02.03.2017, 15:34
Respuesta: ➲*******,Voice MP3 CMD - by SammyJ - 02.03.2017, 21:46
Re: ➲*******,Voice MP3 CMD - by SrVinnyh - 03.03.2017, 15:02
Re: ➲*******,Voice MP3 CMD - by IlanZ - 03.03.2017, 16:14
Re: ➲*******,Voice MP3 CMD - by SrVinnyh - 03.03.2017, 17:14
Re: ➲*******,Voice MP3 CMD - by capron - 03.03.2017, 17:27
Re: ➲*******,Voice MP3 CMD - by SrVinnyh - 03.03.2017, 17:31

Forum Jump:


Users browsing this thread: 1 Guest(s)