samp.directory
← Scripts et bibliothèques

devbluen/OnlineMusic-Samp

Play any song from YouTube on your SAMP server.

Bibliothèque★ 3mis à jour avr. 2024Apache-2.0PawnArchivé
Ouvrir sur GitHub

L’auteur a archivé ce dépôt, il n’est donc plus maintenu.

L’essayer dans le compilateur Pawn →

Ajoute ses fichiers include, avec les bibliothèques dont il dépend, au compilateur Pawn de ton navigateur, prêts à être inclus dans un script.

README.md

🎷 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 <OnlineMusic>

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)

Cette page est construite à partir de ce que GitHub publie sur le dépôt. samp.directory n’héberge pas le code. Signaler un problème avec cette fiche

devbluen/OnlineMusic-Samp : Bibliothèque SA-MP | samp.directory