samp.directory
← Skrypty i biblioteki

MichaelBelgium/SAMP-Shoutcast

A SA:MP server include to connect and listen to shoutcast servers

Biblioteka★ 2zaktualizowano mar 2025MITPawn
Otwórz na GitHubie
Wypróbuj w kompilatorze Pawn →

Dodaje jej pliki include, razem z bibliotekami, od których zależy, do kompilatora Pawn w twojej przeglądarce, gotowe do dołączenia w skrypcie.

README.md

SAMP-Shoutcast

Information

This is an include to use if u have a shoutcast server. When you have a shoutcast server people can play as "DJ" by streaming songs to the shoutcast server; And this include takes care of the transitions between songs and the stream information.

The shoutcast.pwn is a demo

Dependencies

To order to get this include to work you need 1 plugin:

Config

#define SHOUTCAST_IP	"127.0.0.1" //IP of the shoutcast server
#define SHOUTCAST_PORT	8000        //port of the shoutcast server

Functions and callbacks

native IsValidStream();
native GetCurrentSong();
native GetCurrentListeners();
native GetPeakListeners();
native GetShoutcastUptime()
native GetMaxListeners();

native ShoutcastInit(ip_address[],port);
native ShoutcastExit();
native OnSongChange(new_song[]);
native OnStreamStatusChange(bool:status);

Ta strona jest zbudowana z tego, co GitHub publikuje o repozytorium. samp.directory nie hostuje kodu. Zgłoś problem z tym wpisem

MichaelBelgium/SAMP-Shoutcast: Biblioteka SA-MP | samp.directory