SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Русский/Russian

Reply
 
Thread Tools Display Modes
Old 10/09/2018, 04:14 PM   #1
Avenax
Little Clucker
 
Join Date: Apr 2018
Posts: 1
Reputation: 0
Default Проблема с сигнальной Тревогой

Подскажите как сделать чтоб сирена была слышна всем в радиусе 300

PHP Code:
case D_SIRENA:
                {
                if(
response)
                        {
              
PlayAudioStreamForPlayer(playerid"http://d.zaix.ru/8yzi.mp3",-1142.7397,-987.3260,129.26303001);
              
SendClientMessage(playeridCOLOR_SYSTEM, !"Сигнальная тревога включена");
                        }
                } 
PHP Code:
case D_SIRENA1:
                {
                if(
response)
                        {
              
StopAudioStreamForPlayer(playerid);
              
SendClientMessage(playeridCOLOR_SYSTEM, !"Сигнальная тревога выключена");
                        }
                } 
Avenax is offline   Reply With Quote
Old 11/09/2018, 05:44 PM   #2
Eims
Huge Clucker
 
Eims's Avatar
 
Join Date: May 2013
Location: Восточный Мордор
Posts: 474
Reputation: 19
Default Re: Проблема с сигнальной Тревогой

Dell (Не так понял вопрос)
__________________
- How many IT Engineers does it take to fix a broken light bulb?
- None, the light bulb works fine in my office, I cannot replicate the issue.

Last edited by Eims; 27/09/2018 at 10:06 AM.
Eims is offline   Reply With Quote
Old 17/09/2018, 08:37 PM   #3
CamperGTA
Big Clucker
 
Join Date: Jan 2013
Posts: 188
Reputation: 0
Default Re: Проблема с сигнальной Тревогой

PHP Code:
case D_SIRENA
                { 
                if(
response
                        { 
                            for(new 
ii<MAX_PLAYERSi++)
                            {
                                          if(!
IsPlayerConnected(i)) continue;
                                          
PlayAudioStreamForPlayer(i"http://d.zaix.ru/8yzi.mp3",-1142.7397,-987.3260,129.26303001); 
                             }
                            
SendClientMessage(playeridCOLOR_SYSTEM, !"Сигнальная тревога включена"); 
                        } 
                } 
CamperGTA is offline   Reply With Quote
Old 25/09/2018, 09:54 AM   #4
OKStyle
High-roller
 
OKStyle's Avatar
 
Join Date: May 2008
Location: Russia, Orenburg Money: GTA$ 999,999,999
Posts: 3,095
Reputation: 140
Default Re: Проблема с сигнальной Тревогой

pawn Code:
case D_SIRENA:
{
    if(!response) return 1;
    for(new i = GetPlayerPoolSize(); i >= 0; i--)
    {
        PlayAudioStreamForPlayer(i, "http://d.zaix.ru/8yzi.mp3", -1142.7397, -987.3260, 129.2630, 300.0, 1);
        SetPVarInt(i, !"AlarmTone", 1); // вдруг какой-то другой поток будет проигрываться
    }
    SendClientMessage(playerid, COLOR_SYSTEM, !"Сигнальная тревога включена");
    return 1;
}
case D_SIRENA1:
{
    if(!response) return 1;
    for(new i = GetPlayerPoolSize(); i >= 0; i--)
    {
        if(!GetPVarInt(i, !"AlarmTone")) continue;
        StopAudioStreamForPlayer(i);
        DeletePVar(i, !"AlarmTone");
    }
    SendClientMessage(playerid, COLOR_SYSTEM, !"Сигнальная тревога выключена");
    return 1;
}
__________________
O.K.Style™ Laboratory
Kalcor: "... it's makes the game look like it's not GTA. This mod is called San Andreas Multiplayer. It's not a custom game engine which you can script..."
OKStyle 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
В чем проблема? OmegaKiller72 Русский/Russian 7 05/06/2016 04:05 PM
Проблема с VPS Marcid Русский/Russian 7 28/01/2014 10:34 AM
Проблема с VDS Hawkins Русский/Russian 9 28/08/2012 05:31 PM
Проблема с db Mark Edisson Русский/Russian 0 09/10/2011 03:13 PM
MXini проблема с ini_getFloat (проблема с чтением файла) krik Русский/Russian 0 26/06/2011 01:56 PM


All times are GMT. The time now is 07:08 AM.


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