Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- _______
- | | | |__ __ __ _ _ __ __ _
- | |_| |\ \ /\ / // _` || `_ \ / _` |
- | _ | \ v V /| (_| || | | || (_| |
- |_| |_| \_/\_/ \__,_||_| |_| \__, |
- |___/
- - Forum SA-MP profile: http://forum.sa-mp.com/member.php?u=207800
- */
- #include a_samp
- /* Bag Pounds */
- #define BagPounds (5000)
- #define ikincielFiyat (2500)
- #define DIALOG_DUBSTEP (15)
- enum icerik
- {
- Bag,
- BagWear,
- Dinliyormu
- }
- new pInfo[MAX_PLAYERS][icerik];
- //------------------------------------------------------------------------------
- public OnFilterScriptInit()
- {
- return print(" Dubstep Bag System Opened! - Hwang"), 1;
- }
- public OnFilterScriptExit()
- {
- return print(" Dubstep Bag System Closed! - Hwang"), 1;
- }
- public OnPlayerConnect(playerid)
- {
- return SendClientMessage(playerid,-1,"{FF00FF}System: {ffffff}Dubstep help command, type: /dubstephelp"), 1;
- }
- public OnPlayerText(playerid, text[])
- {
- if(pInfo[playerid][Dinliyormu] == 1){
- new string[128],name[20];
- GetPlayerName(playerid, name, 20);
- format(string, sizeof(string), "{FF00FF}(Dubstep-Listener) {%06x}%s(%i): {ffffff}%s", GetPlayerColor(playerid) >>> 8, name,playerid, text);
- SendClientMessageToAll(playerid, string);
- return 0;
- } else {
- new string[128],name[20];
- GetPlayerName(playerid, name, 20);
- format(string, sizeof(string), "{%06x}%s(%i): {ffffff}%s", GetPlayerColor(playerid) >>> 8, name,playerid, text);
- SendClientMessageToAll(playerid, string);
- }
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/buybag", cmdtext, true, 10) == 0)
- {
- if(pInfo[playerid][Bag] == 1) return SendClientMessage(playerid,-1,"{FF00FF}System: {ffffff}Zaten çantanız var!");
- if(GetPlayerMoney(playerid) < BagPounds) return SendClientMessage(playerid,-1,"{FF00FF}System: {ffffff}Çanta alabilmek için 5000$ gerekir!");
- GivePlayerMoney(playerid,-BagPounds);
- pInfo[playerid][Bag] = 1;
- SendClientMessage(playerid,-1,"{FF00FF}System: {ffffff}Bag bought!");
- return 1;
- }
- if (strcmp("/sellbag", cmdtext, true, 10) == 0)
- {
- if(pInfo[playerid][Bag] == 0) return SendClientMessage(playerid,-1,"{FF00FF}System: {ffffff}You do not have to buy bags!");
- GivePlayerMoney(playerid,ikincielFiyat);
- pInfo[playerid][Bag] = 0;
- return 1;
- }
- if (strcmp("/wearbag", cmdtext, true, 10) == 0)
- {
- if(pInfo[playerid][Bag] == 0) return SendClientMessage(playerid,-1,"{FF00FF}System: {ffffff}To wear your bag has to be!");
- pInfo[playerid][BagWear] = 1;
- SetPlayerAttachedObject(playerid, 3, 1210, 6, 0.230000, 0.100000, 0.000000, 2.000000, 270.000000, 0.000000);
- SendClientMessage(playerid,-1,"{FF00FF}System: {ffffff}Did you wear your bag, now {FF00FF}/dubstep {ffffff}you can open writing music!");
- return 1;
- }
- if (strcmp("/removebag", cmdtext, true, 10) == 0)
- {
- if(pInfo[playerid][Bag] == 0) return SendClientMessage(playerid,-1,"{FF00FF}System: {ffffff}Giyebilmek for çantanız Olması lazım!");
- pInfo[playerid][BagWear] = 0;
- RemovePlayerAttachedObject(playerid, 3);
- SendClientMessage(playerid,-1,"{FF00FF}System: {ffffff}Did you remove your bag.");
- return 1;
- }
- if (strcmp("/dubstep", cmdtext, true, 10) == 0)
- {
- if(pInfo[playerid][Bag] == 0) return SendClientMessage(playerid,-1,"{FF00FF}System: {ffffff}To listen to Dubstep bag has to be!");
- if(pInfo[playerid][BagWear] == 0) return SendClientMessage(playerid,-1,"{FF00FF}System: {ffffff}To use this, you must wear your bag!");
- pInfo[playerid][Dinliyormu] = 1;
- SetPlayerAttachedObject(playerid, 3, 1210, 6, 0.230000, 0.100000, 0.000000, 2.000000, 270.000000, 0.000000);
- ShowPlayerDialog(playerid,DIALOG_DUBSTEP,DIALOG_STYLE_LIST,"{FF00FF}Dubstep","{FF00FF}1) Skrillex - {ffffff}Bangarang\n{FF00FF}2) Skrillex - {ffffff}Make It Bun Dem\n{FF00FF}3) Skrillex - {ffffff}Kill everybody\n{FF00FF}4) Skrillex - {ffffff}First Of The Year\n{FF00FF}5) Skrillex - {ffffff}Ruffneck\n{FF00FF}6) Skrillex - {ffffff}Right IN\n7) {FF00FF}Dubstep durdur","Seç","Kapat");
- return 1;
- }
- if (strcmp("/dubstepyardim", cmdtext, true, 10) == 0)
- {
- new dY[512];
- strcat(dY, "{ff00FF}How can I listen to Dubstep?\n");
- strcat(dY, "{a9a9a9}/buybag = Buy Bag\n");
- strcat(dY, "{a9a9a9}/sellbag = Sell your bag.\n");
- strcat(dY, "{a9a9a9}/wearbag = Wear your bag.\n");
- strcat(dY, "{a9a9a9}/removebag = Remove your bag.");
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{FF00FF}Dubstep Help",dY,"Close","");
- return 1;
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_DUBSTEP){
- if(response){
- if(listitem == 0){
- MuzikAc(playerid,"Skrillex","Bangarang","http://176.32.34.21/~mp3ler/data/Skrillex-feat-sirah---bangarang--dubstep-sector(-MP3Ler.Biz).mp3");
- }
- if(listitem == 1){
- MuzikAc(playerid,"Skrillex","Make It Bun dem","http://176.32.34.21/~mp3ler/data/Skrillex---damian-jr-gong-marley-make-it-bun-dem(-MP3Ler.Biz).mp3");
- }
- if(listitem == 2){
- MuzikAc(playerid,"Skrillex","Kill everybody","http://176.32.34.21/~mp3ler/data/Skrillex--kill-everybody(-MP3Ler.Biz).mp3");
- }
- if(listitem == 3){
- MuzikAc(playerid,"Skrillex","First Of The Year","http://176.32.34.21/~mp3ler/data/Skrillex-first-of-the-year(-MP3Ler.Biz).mp3");
- }
- if(listitem == 4){
- MuzikAc(playerid,"Skrillex","Ruffneck","http://176.32.34.21/~mp3ler/data/Skrillex-ruffneck-full-flex(-MP3Ler.Biz).mp3");
- }
- if(listitem == 5){
- MuzikAc(playerid,"Skrillex","Right IN","http://176.32.34.21/~mp3ler/data/Skrillex-right-in-original-mix(-MP3Ler.Biz).mp3");
- }
- if(listitem == 6){
- pInfo[playerid][Dinliyormu] = 0;
- StopAudioStreamForPlayer(playerid);
- SendClientMessage(playerid,-1,"{FF00FF}System: {ffffff}Dubstep closed.");
- }
- }
- }
- return 1;
- }
- stock MuzikAc(playerid,sanatci[],muzikad[],link[])
- {
- new string[256];
- format(string,sizeof(string),"{ffffff}Musician: {FF00FF}%s {ffffff}- Dubstep: {FF00FF}%s",sanatci,muzikad);
- SendClientMessage(playerid,-1,string);
- PlayAudioStreamForPlayer(playerid,link);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement