Search

open.mp forum

RegisterLogin

Discussion

General
Chat
Tech
Life
Art
Programming
open.mp
Development Updates
Questions and Suggestions
SA-MP
General Discussions
Videos and Screenshots
Support
Pawn Scripting
Tutorials
Releases
Plugins
Libraries
Filterscripts
Gamemodes
Maps
Advertisements
Other languages
Spanish/Espa?ol
Programaci?n
Discusi?n GTA SA Multijugador
Mods
Offtopic
Juegos
Portuguese/Portugu?s
Russian/???????
Italian/Italiano
Dutch/Nederlands
German/Deutsch
Romanian/Rom?na
Ex-Yu
Polish/Polski
Og?lne
Serwery
Skryptowanie
Filmiki i zdjecia
Lithuanian/Lietuvi?kas
French/Fran?ais
Hungarian/Magyar
Hindi/Urdu
Turkish
Other
Internal
Team
Hidden
Archived

Library

 Collections Links Members Roles

Reproduzir música em uma area especifica

Bem pessoal, eu gostaria da ajuda de voces para me ajudar com um problema, eu quero que fique tocando uma música na Groove...

ID
d6ouivnilegovhg7c3a0
author
diihrox's avatar

Diihrox

@diihrox


View profile
Copy link
  Report member
started
Mar 2, 2024
replies
0
participating
No

scroll to top

powered by storyden

Login
Discussion
Pawn Scripting
Reproduzir música em uma area especifica
diihrox's avatar

Diihrox

@diihrox


View profile
Copy link
  Report member
• 2y
Pawn Scripting

Reproduzir música em uma area especifica

pawn

Bem pessoal, eu gostaria da ajuda de voces para me ajudar com um problema, eu quero que fique tocando uma música na Groove Street e quando um player entrar naquela área, ele podera ouvir a música. Meu código base!


CMD:tocar(playerid)
{
    if (IsPlayerInRangeOfPoint(playerid, 2.0, 2466.4934, -1658.9978, 13.3907))
    {
        new i;
        for (i = 0; i < MAX_PLAYERS; i++)
        {
            new Float:P[3];
            GetPlayerPos(i, P[0], P[1], P[2]);

            if (IsPlayerInRangeOfPoint(i, 90.0, 2466.4934, -1658.9978, 13.3907))
            {
                PlayAudioStreamForPlayer(i, "http://stream.com.br/radio", P[0], P[1], P[2], 90.0, 1);
            }
        }
    }
    return 1;


Obrigado pela atenção!
}

0 likes0 replies

    Please sign up or log in to reply