Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //==============================================================================
- // MUSIC BOT ZA SAMP SERVERE
- // UZIVAJTE !
- //==============================================================================
- //
- //==============================================================================
- #include <a_samp>
- #define SCM SendClientMessage
- #define R "{FF0000}" //CRVENA
- #define G "{00FF00}" //ZELENA
- #define Y "{EEEA00}" //ZUTA
- #define B "{00A7EE}" //PLAVA
- //============================= Ovde mozete mijenjati muziku kako ocete
- #define Music1 "http://k003.kiwi6.com/hotlink/ffnreb4gl0/MC_STOJAN_and_MR._BLACK_-_ZAGRLJAJ_COVER_.mp3"
- #define Music2 "http://k003.kiwi6.com/hotlink/x65h2u27h2/IN_VIVO_-_REMEK_DELO_OFFICIAL_VIDEO_.mp3"
- new MB;
- //==============================================================================
- public OnPlayerConnect(playerid)
- {
- //MusicBot(playerid); U koliko se desi da MB zabaga, i nece da se pokrene aktivirati ovo.
- }
- public OnFilterScriptInit()
- {
- print("Music bott je ucitan!");
- MB = SetTimer("MusicBot", 240000, 1); //Ovo je 4minute dovoljno da se pjesma zavrsi
- }
- public OnFilterScriptExit()
- {
- print("Music bot - Nije ucitan!");
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp(cmdtext, "/stopmusicbot", true))
- {
- StopAudioStreamForPlayer(playerid);
- SCM(playerid, -1, ""R"Zaustavili ste "B"MusicBot-a"R".");
- SCM(playerid, -1, "Ako zelite ponovo da pustitie MusicBot-a, koristite "R"/startmusicbot");
- KillTimer(MB);
- }
- if(!strcmp(cmdtext, "/startmusicbot", true))
- {
- MusicBot(playerid);
- SCM(playerid, -1, ""G"Pustili ste ponovo "B"MusicBot-a"G", uzivajte!");
- }
- }
- forward MusicBot(playerid);
- public MusicBot(playerid)
- {
- switch(random(2)) //Kako povecate broj pesama, povecajte i ovaj ovde broj ;)
- {
- case 0:
- {
- SCM(-1, ""G"[MusicBot]: Za Vas samo "R"DJ Stojan i MC Black - Zagrljaj "G",uzivajte uz nas.");
- SCM(-1, ""G"[MusicBot]: Ako zelite da zaustavite MusicBot-a, ukucajte "R"/stopmusicbot "G".");
- PlayAudioStreamForPlayer(playerid, Music1);
- }
- case 1:
- {
- SCM(-1, ""G"[MusicBot]: Za Vas samo "R"IN VIVO - REMEK DELO "G",uzivajte uz nas.");
- SCM(-1, ""G"[MusicBot]: Ako zelite da zaustavite MusicBot-a, ukucajte "R"/stopmusicbot "G".");
- PlayAudioStreamForPlayer(playerid, Music2);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement