[AJUDA] Radio
#2

https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer

Link direto explicando a funзгo

AJUDEI ? +Rep


Modifica ai

pawn Код:
{
    if (strcmp("/radio", cmdtext, true, 10) == 0)
    {
        PlayAudioStreamForPlayer(playerid, "Link da radio");
        return 1;
    }
    return 0;
}
@edit

Se quiser que a radio toque em um lugar especial usa

pawn Код:
{
    if (strcmp("/radio", cmdtext, true, 10) == 0)
    {
        new Float:X, Float:Y, Float:Z, Float:Distance = 5.0;
        GetPlayerPos(playerid, X, Y, Z);
        PlayAudioStreamForPlayer(playerid, "Link da radio", X, Y, Z, Distance, 1);
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
[AJUDA] Radio - by Ryktardy - 20.12.2011, 01:55
Re: [AJUDA] Radio - by isli27 - 20.12.2011, 02:11
Re: [AJUDA] Radio - by Ryktardy - 20.12.2011, 12:46
Re: [AJUDA] Radio - by Ryktardy - 20.12.2011, 12:56
Re: [AJUDA] Radio - by williamgato - 20.12.2011, 13:03
Re: [AJUDA] Radio - by isli27 - 20.12.2011, 13:18

Forum Jump:


Users browsing this thread: 1 Guest(s)