Na hello. Segítene valaki hogy ezt a scriptet hova kell tenni a gm-ben?
#include <a_samp>
#include <fixchars.h>
#define DIALOG_CHRISTMASMUSIC 1112
new playing[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
playing[playerid] = 0;
return 1;
}
public OnPlayerDisconnect(playerid)
{
playing[playerid] = 0;
return 1;
}
public OnFilterScriptInit()
{
print(\"\\n----------------------------------\");
print(\" Rádió System \");
print(\"----------------------------------\\n\");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(\"/karacsonyizene\", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DIALOG_CHRISTMASMUSIC, DIALOG_STYLE_LIST, \"Rádió System\", \"Kikapcsolás\\nJose Feliciano - Feliz Navidad\\nWe wish you a merry christmas\\nJingle Bells\\nDean Martin - Let it Snow\\nMariah Carey - All I Want For Christmas Is You\", \"Választ\", \"Kilép\");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_CHRISTMASMUSIC)
{
if(listitem == 0)
{
if(playing[playerid] == 1)
{
playing[playerid] = 0;
GameTextForPlayer(playerid, \"~w~Rádió ~r~megállítva\", 3000, 3);
StopAudioStreamForPlayer(playerid);
}
else
{
SendClientMessage(playerid, 0xFF9900AA, \"- Most nem megy a rádió -\");
}
}
if(listitem == 1)
{
playing[playerid] = 1;
GameTextForPlayer(playerid, \"~w~Rádió ~g~elindítva\", 3000, 3);
PlayAudioStreamForPlayer(playerid, \"https://dl.dropbox.com/s/t0kn91gse3wsmno/Jose Feliciano - Feliz Navidad.mp3\");
}
if(listitem == 2)
{
playing[playerid] = 1;
GameTextForPlayer(playerid, \"~w~Rádió ~g~elindítva\", 3000, 3);
PlayAudioStreamForPlayer(playerid, \"https://dl.dropbox.com/s/h9dtjqyza2e3gab/We wish you a merry christmas.mp3\");
}
if(listitem == 3)
{
playing[playerid] = 1;
GameTextForPlayer(playerid, \"~w~Rádió ~g~elindítva\", 3000, 3);
PlayAudioStreamForPlayer(playerid, \"https://dl.dropbox.com/s/pk0javlyx2c7mzl/jingle bells.mp\");
}
if(listitem == 4)
{
playing[playerid] = 1;
GameTextForPlayer(playerid, \"~w~Rádió ~g~elindítva\", 3000, 3);
PlayAudioStreamForPlayer(playerid, \"https://dl.dropbox.com/s/o7xvxtspl3nnc31/Dean Martin - Let it Snow!.mp3\");
}
if(listitem == 5)
{
playing[playerid] = 1;
GameTextForPlayer(playerid, \"~w~Rádió ~g~elindítva\", 3000, 3);
PlayAudioStreamForPlayer(playerid, \"https://dl.dropbox.com/s/yubvq4ugkscvkmi/Mariah Carey - All I Want For Christmas Is You.mp3\");
}
}
return 1;
}
Melyik sorok alá kell õket tenni?
jah és ilyen sor nincs a GM-ben de ha beteszem nem megy: public OnPlayerCommandText(playerid, cmdtext[])