26.07.2013, 16:02
(
Последний раз редактировалось chuck100; 26.07.2013 в 17:54.
)
My Second FilterScript
Hey, want to be kind of Dj on your server? So I've made for you a system for that.
/musicmenu[As your admin system fix it to only admin can do that...]
This is for a menu with songs. [Will be update soon]
/playall, here you can play any song you do want!!!
-Songs their inside the menu
-Note; This is only my second filterscript so dont kill me with bad replies please :P.
Hey, want to be kind of Dj on your server? So I've made for you a system for that.
/musicmenu[As your admin system fix it to only admin can do that...]
This is for a menu with songs. [Will be update soon]
/playall, here you can play any song you do want!!!
-Songs their inside the menu
- -Flo Rida - I cry
-Avicii - Dont wake me up
-Chris Brown - Yeah 3X
-Rihana - Stay
-Taylor Swift - I knew you were in trubble
Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT
#include <a_samp>
#include <zcmd>
#define MUSICMENU 9213
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Music FilterScript by Chuck100");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Music FilterScript by Chuck100");
print("----------------------------------\n");
}
public OnPlayerCommandText(playerid, cmdtext[])
{
CMD:musicmenu(playerid, params[])
{
foreach(Player, i)
{
ShowPlayerDialog(playerid, DIALOG_REPORTMENU, DIALOG_STYLE_LIST, "Music Menu", "I Cry - Flo Rida\nAvicii - Wake me up\nChris Brown - Yeah 3x\nRihana - Stay\nTaylor Swift - i knew you were trouble\n","Press", "Exit");
}
}
return 1;
}
CMD:playall(playerid, params[])
{
foreach(Player, i)
{
if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /playall [Link]");
PlayAudioStreamForPlayer(i, params);
}
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == MUSICMENU)
{
if(response)
{
if(listitem == 0)
{
PlayAudioStreamForPlayer(www.kiwi6.com/file/048f46q43s, params);
}
}
if(listitem == 1)
{
PlayAudioStreamForPlayer(www.kiwi6.com/file/r5w2m8q11d, params);
}
}
if(listitem == 2)
{
PlayAudioStreamForPlayer(www.kiwi6.com/file/ncg4xthu1s, params);
}
}
if(listitem == 3)
{
PlayAudioStreamForPlayer(www.kiwi6.com/file/x6kq12b911, params);
}
}
if(listitem == 4)
{
PlayAudioStreamForPlayer(www.kiwi6.com/file/vybs3f5bt8, params);
}
}
}
return 1;
}
#endif

