SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 16/03/2017, 07:02 PM   #1
Ladivar
Banned
 
Join Date: Mar 2017
Posts: 2
Reputation: 4
Default Ladivars youtube music System [MySQL]

Introduction
I wanted to make a music system which allows players to enter a link from youtube
and be able to play the song and save it into a file to play at their hearts content.

Features:
  • /music shows the music dialog allows players to play a song, add a song and remove a song.
  • MySQL Saving into a database for songs to load for players and play.

Bugs:
  • Sometimes a song doesn't play, just keep playing it intill it does
  • High ping makes it so song doesn't play don't know why.
  • Song can take anywhere from 0 to 30 seconds to play.


Download:http://pastebin.com/RU5U2pKH
Include to convert youtube to mp3: http://forum.sa-mp.com/showthread.php?t=518119

MySQL code:
PHP Code:
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- 
Host127.0.0.1
-- Generation TimeMar 162017 at 06:54 PM
-- Server version10.1.9-MariaDB
-- PHP Version5.5.30

SET SQL_MODE 
"NO_AUTO_VALUE_ON_ZERO";
SET time_zone "+00:00";


/*!40101 SET @[email protected]@CHARACTER_SET_CLIENT */;
/*!40101 SET @[email protected]@CHARACTER_SET_RESULTS */;
/*!40101 SET @[email protected]@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- 
Database: `sa-mp`
--

-- --------------------------------------------------------

--
-- 
Table structure for table `music`
--

CREATE TABLE `music` (
  `
IDint(10NOT NULL,
  `
SongUsedint(10NOT NULL,
  `
Namevarchar(24NOT NULL,
  `
SongNamevarchar(256NOT NULL,
  `
SongLinkvarchar(256NOT NULL
ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- 
Indexes for dumped tables
--

--
-- 
Indexes for table `music`
--
ALTER TABLE `music`
  
ADD PRIMARY KEY (`ID`);

--
-- 
AUTO_INCREMENT for dumped tables
--

--
-- 
AUTO_INCREMENT for table `music`
--
ALTER TABLE `music`
  
MODIFY `IDint(10NOT NULL AUTO_INCREMENT;
/*!40101 SET [email protected]_CHARACTER_SET_CLIENT */;
/*!40101 SET [email protected]_CHARACTER_SET_RESULTS */;
/*!40101 SET [email protected]_COLLATION_CONNECTION */

Screen shots and video coming soon
Ladivar is offline   Reply With Quote
Old 16/03/2017, 07:05 PM   #2
ZukerCup
Little Clucker
 
ZukerCup's Avatar
 
Join Date: Dec 2016
Location: Egypt
Posts: 32
Reputation: 7
Default Re: Ladivars youtube music System [MySQL]

Nice and REP+
ZukerCup is offline   Reply With Quote
Old 16/03/2017, 07:10 PM   #3
Sumit4
Big Clucker
 
Join Date: Sep 2016
Posts: 112
Reputation: 18
Default Re: Ladivars youtube music System [MySQL]

Good job +REP
Sumit4 is offline   Reply With Quote
Old 16/03/2017, 07:41 PM   #4
Nakul
Big Clucker
 
Join Date: Oct 2016
Location: India
Posts: 50
Reputation: 16
Default Re: Ladivars youtube music System [MySQL]

Nice
Nakul 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
need help with music from youtube. SkinnyF Scripting Help 2 31/10/2015 12:21 AM
Music from youtube. audriuxxx Scripting Help 2 15/02/2014 04:33 PM
[FilterScript] Music System [MP3] [MySQL] HardRock Filterscripts 10 20/11/2013 02:41 PM
How To Input Music On Youtube ! [INA]Crazy Scripting Help 0 03/11/2012 04:54 PM
How to play music from youtube. Speeeeeed Scripting Help 3 16/08/2012 06:31 PM


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


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