SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 25/06/2019, 01:04 PM   #1
murilo2929
Big Clucker
 
Join Date: Oct 2018
Posts: 168
Reputation: 0
Default Audio Stream

Gostaria de saber se é possivel criar um comando desse tipo EX:
Quando o player digitar um determinado comando ativa um som de sirene e os players perto dele escutem, desde já agradeço.
murilo2929 is offline   Reply With Quote
Old 25/06/2019, 05:56 PM   #2
ipsLuan
High-roller
 
ipsLuan's Avatar
 
Join Date: Feb 2013
Location: Ilhéus, BA
Posts: 4,227
Reputation: 314
Default Re: Audio Stream

Sim.
Upe o som de uma sirene no dropbox e execute o mp3.
__________________
O fim.
ipsLuan is offline   Reply With Quote
Old 25/06/2019, 07:57 PM   #3
murilo2929
Big Clucker
 
Join Date: Oct 2018
Posts: 168
Reputation: 0
Default Re: Audio Stream

Quote:
Originally Posted by ipsLuan View Post
Sim.
Upe o som de uma sirene no dropbox e execute o mp3.
poderia me ajudar a fazer esse comando?
murilo2929 is offline   Reply With Quote
Old 25/06/2019, 08:17 PM   #4
Augustoo
Little Clucker
 
Augustoo's Avatar
 
Join Date: Dec 2018
Location: Planeta Terra
Posts: 35
Reputation: 5
Default Re: Audio Stream

PHP Code:
CMD:sirene(playerid)
{
    new
        
Float:Pos[3];
        
    
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);

    for(new 
iSize GetPlayerPoolSize(); <= Size; ++i)
    {
        if(
IsPlayerInRangeOfPoint(i10.0Pos[0], Pos[1], Pos[2]))
        {
            
PlayAudioStreamForPlayer(i/* URL da sirene */);
        }
    }
    
SendClientMessage(playerid, -1"[ INFO ] Sirene Ativada!");
    return 
1;

Não sei se vai funcionar corretamente, upe um som de sirene no dropbox e coloque o Url na função.
__________________
Curioso
Augustoo is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Audio Stream for All Help! Th3UnKnOwN Scripting Help 2 04/01/2015 01:30 AM
Hide audio links from audio stream???? wind0wS_8 Scripting Help 2 31/07/2013 09:39 PM
Audio Stream Beljulji Scripting Help 2 03/10/2012 10:34 AM
Audio Stream Beljulji Server Support 0 03/10/2012 07:51 AM
Help with Audio Stream SupremeCommander Scripting Help 0 30/04/2012 11:10 AM


All times are GMT. The time now is 06:47 AM.


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