Git Product home page Git Product logo

onlinemusic-samp's Introduction

๐ŸŽท OnlineMusic-SAMP

Play any song from YouTube on your SAMP server.
This is an API created by me to play songs from YouTube on your SAMP server. However, there are still some points to be clarified about this system.

Warning

  1. People who are abroad, outside of Brazil, might also experience some delay due to routing, regional, or country factors.
  2. It's also possible that my hosting where my API is hosted has gone down, or some users are being blocked by Cloudflare's DDoS protection.
  3. I will keep this include updated; if there are any problems, feel free to contact me.

How to Install?

  • Put OnlineMusic.inc in Pawno > Includes
  • Write in your gamemode #include <a_https> after #include <a_samp>
  • Write in your gamemode #include

Functions

PlayOnlineAudio(playerid, musicName[], Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0, usepos = 0);
PlayOnlineAudio_Duration(playerid);   // In Int
PlayOnlineAudio_DurationS(playerid);  // In String
PlayOnlineAudio_Title(playerid);
PlayOnlineAudio_Channel(playerid);
PlayOnlineAudio_Verified(playerid);
PlayOnlineAudio_UploadAt(playeid);
PlayOnlineAudio_Views(playerid);

Callback

OnPlayerAudioOnline(playerid, musicName[])

Example

Exemple:
PlayOnlineAudio(playerid, "The Weeknd Some Else");

Preview

Preview Link: https://www.youtube.com/watch?v=iVHE9a3YXic

Credits

  • blueN (API)
  • MTA Brasil (Suport for youtube key)

onlinemusic-samp's People

Contributors

devbluen avatar

Stargazers

SwitchDeveloper avatar  avatar

Watchers

 avatar

Forkers

nascimentosamp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.