[FilterScript] Simple Radio Script
#1

Hi Guys ,

Simple Radio Script


This is my First Radio script i hope you all will like it .

Код:
//                . . .=+=+=+=+=+=+=+=+=+=+=+=+= RADIO SCRIPT BY VAIBHAV =+=+=+=+=+=+=+=+=+=+=+=+=+=+=. . .

#include <a_samp>

#define FILTERSCRIPT

#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_PINK 0xFFC0CBAA
#define COLOR_RED 0xAA3333AA

public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" Online Radio script by  Vaibhav");
        print("--------------------------------------\n");
        return 1;
}

main()
{
        print("\n----------------------------------");
        print(" Online Radio script by Vaibhav");
        print("----------------------------------\n");
}

public OnPlayerCommandText(playerid, cmdtext[])
{
        if(strcmp("/Radio info", cmdtext, true, 10) == 0)
{
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "~=~=~=~=~=~=~=~=~=~= Radio Channels ~=~=~=~=~=~=~=~=~=~=");
        SendClientMessage(playerid, COLOR_WHITE, "Getting Bore Want Some Music Use /Radio on");
        SendClientMessage(playerid, COLOR_WHITE, "Want To Stop Radio Use /Radio off");
        SendClientMessage(playerid, COLOR_WHITE, "We Hope You Like The Radio , Enjoy It.");
		SendClientMessage(playerid, COLOR_PINK, "The Radio Script Is Fully Made By Vaibhav");//Don't change credites please.
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "~=~=~=~=~=~=~=~=~=~= Radio Channels ~=~=~=~=~=~=~=~=~=~=");
        return 1;
}
        if (strcmp("/Radio off", cmdtext, true, 10) == 0)
{
        StopAudioStreamForPlayer(playerid);
        SendClientMessage(playerid, 0xAA3333AA, "You have stopped the playing radio. . .");
        return 1;
}

       if (strcmp("/Radio on", cmdtext, true) == 0)
{
        PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/1a9b81z1k7/songs.pk_khiladi_786_-_05_-_hookah_bar.mp3");
        SendClientMessage(playerid, 0xFFFFFFAA, "Type /Radio off to stop audio streaming.");
        return 1;

        
        //Fully created by  Vaibhav
}

        return 0;
}
solidfiles: (http://www.solidfiles.com/d/7492aa1303/)
Reply
#2

simple and eficient.

note 7.
Reply
#3

Very simple,nice for newbies.
Reply
#4

thx you all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)