[Include] AttachStreamToObject [attach easily audio streams to SA-MP objects]
#6

God idea!

You can make...
pawn Code:
stock PlayAudioInObject(objectid, url[], Float:range)
{
    static
        Float:iPosX,
        Float:iPosY,
        Float:iPosZ
    ;
   
    GetObjectPos(objectid, iPosX, iPosY, iPosZ); // get object position.
    PlayAudioStreamForPlayer(playerid, url,  iPosX, iPosY, iPosZ, range, true); // Player Audio in object position(iPosX, iPosY, iPosZ).
    return true;
}

Good Work!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)