SA-MP Forums Archive
Music playlist help! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Music playlist help! (/showthread.php?tid=267344)



Music playlist help! - lukas567 - 08.07.2011

https://sampforum.blast.hk/showthread.php?tid=245914

I'm using this system. Is this possible to play music just for one person?
Example: Player bought MP3 and if he will use /mp3 command only he will hear music. And other people if use /mp3 will hear music. Is this possible?


Re: Music playlist help! - [MG]Dimi - 08.07.2011

I don't know in that audio plug-in music starts automatically or with command. If it's with command make it
pawn Код:
if(strcmp("/mp3",cmdtext,true,10) == 0)
{
    if([Here set player info for MP3] == 1)
    {
        [Here call function to play music]
    }
    else SendClientMessage(playerid,0xFF0000FF,"ERROR: You don't have MP3. You can buy one at the shop.");
    }
    return 1;
}