Код:
//---------------------------------------------------------//
//FilterScript--------Virtual-PC--------Por-adri1-y-Ner0x--//
//FilterScript--------Virtual-PC--------By-adri1-and-Ner0x-//
// //
// adri223@hotmail.es //
// dark-vid@hotmail.com //
// //
/////////////////////////////////////////////////////////////
//Includes//
#include <a_samp>
#include <streamer>
//News//
new Text:MiPcVirtual;
new Musica[] ="\
The Time - Black Eyed Peas\
\nWhere Them Girls At - David Guetta\
\nVive la vida loca - DJ\
\nWaka Waka - Shakira\
\nRight Round - Florida\
\nHollywood undead - Eberywhere i go\
\nLinkin Park - In the end\
\nBlack Eyed Peas - I gotta feeling\
\nHollywood undead - Comin`in hot\
\nRocky - Eyed of the tiguer\
\nK`nan - Shi Sha Mi\
\nElectrуnica\
\nDavid Guetta - DJ\
\nDavid Guetta - Sexy Chick\
\nSmash mouth - All Start\
\nParar musica";
//Define//
#define MUSICAID1 2051
//PlayerInfo//
enum Player
{
MSNEstado
}
new PlayerInfo[MAX_PLAYERS][Player];
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n---------------------------------------------");
print("Virtual PC cargado creado por adri1 y Ner0x and edited and fixed by Kevin Manzano");
print("-----------------------------------------------\n");
MiPcVirtual = TextDrawCreate(225.000000, 139.000000, "PC VIRTUAL POR ADRI1 Y NER0X");
TextDrawBackgroundColor(MiPcVirtual, 255);
TextDrawFont(MiPcVirtual, 3);
TextDrawLetterSize(MiPcVirtual, 0.360000, 1.000000);
TextDrawColor(MiPcVirtual, -1);
TextDrawSetOutline(MiPcVirtual, 1);
TextDrawSetProportional(MiPcVirtual, 1);
return 1;
}
#else
main()
{
print("\n--------------------------------------------");
print("Virtual PC cargado creado por adri1 y Ner0x");
print("----------------------------------------------\n");
}
#endif
public OnPlayerConnect(playerid)
{
CallRemoteFunction("OnPlayerCommandText", "is", playerid, "/audiomsg"); // Opcional, esto sirve para que no lanze el mensaje Audio URL: URL, queda mucho mejor asн.
return 1;
}
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[128];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[128], idx;
cmd = strtok(cmdtext, idx);
if (strcmp ( cmd,"/mipc", true)==0 || strcmp (cmd, "/mypc", true)==0)
{
TextDrawShowForPlayer(playerid, MiPcVirtual);
ShowPlayerDialog(playerid, 9010, DIALOG_STYLE_LIST, "Seleccione el Sistema Operativo (OS)", "Windows XP Clбsico\nWindows 7 Normal", "Encender", "Cerrar"); //ner0x pondre tbm el windows 7 xdd
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new string[256];
if(dialogid == 9010) // MIPC
{
if(response)
{
if(listitem == 0)
{
PlayerInfo[playerid][MSNEstado] = 1;
GameTextForPlayer(playerid, "~g~Bienvenido...", 3000, 4);
PlayAudioStreamForPlayer(playerid, "http://www.*******-mp3.org/get?video_id=7nQ2oiVqKHw&h=88cf6bb7a8a21569af27ee32e3ee9016");
ShowPlayerDialog(playerid, 9011, DIALOG_STYLE_LIST, "Menъ", "Apagar\nIniciar sesiуn en messenger\nMi mъsica\nMis webs\nBlock de notas.", "Seleccionar", "Atrбs");
}
if(listitem == 1)
{
PlayerInfo[playerid][MSNEstado] = 1;
GameTextForPlayer(playerid, "~g~Windows 7...", 3000, 4);
PlayAudioStreamForPlayer(playerid, "http://www.*******-mp3.org/get?video_id=qnuTAa8LQiA&h=c39bbddff957186964edac7778c9d172");
ShowPlayerDialog(playerid, 9015, DIALOG_STYLE_LIST, "Menъ", "Apagar\nIniciar sesiуn en messenger\nMi mъsica\nMis webs\nBlock de notas.", "Seleccionar", "Atrбs");
}
}
else
{
TextDrawHideForPlayer(playerid, MiPcVirtual);
}
}
if(dialogid == 9011) // MIPC
{
if(response)
{
if(listitem == 0)
{
PlayerInfo[playerid][MSNEstado] = 0;
ShowPlayerDialog(playerid, 9010, DIALOG_STYLE_LIST, "Seleccione el Sistema Operativo (OS)", "Windows XP Clбsico\nWindows 7 Normal", "Encender", "Cerrar"); //ner0x pondre tbm el windows 7 xdd
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://www.*******-mp3.org/get?video_id=Gb2jGy76v0Y&h=75979397a50eff62f8d5d5c2845e9068");
}
if(listitem == 1)
{
PlayAudioStreamForPlayer(playerid,"http://freedownloads.last.fm/download/542199279/INICIO.mp3");
new offline = 0;
new name[MAX_PLAYER_NAME];
PlayerInfo[playerid][MSNEstado] = 1;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(PlayerInfo[i][MSNEstado] == 1)
{
GetPlayerName(i, name, sizeof(name));
format(string, 256, "** %s ** [ID:%d]", name,i );
ShowPlayerDialog(playerid, 9012, DIALOG_STYLE_LIST, "Messenger", string, "Mensaje", "Atrбs");
offline++;
}
}
}
if (offline == 0)
{
ShowPlayerDialog(playerid, 9012, DIALOG_STYLE_LIST, "Messenger", "Nigъn contacto conectado", "Mensaje", "Cerrar");
}
}
if(listitem == 2)
{
new string3[449];
format(string3, sizeof(string3),"%s %s",Musica);
ShowPlayerDialog(playerid, MUSICAID1 , DIALOG_STYLE_LIST, "Selecciona la mъsica/Select the music",string3,"Reproducir", "");
}
if(listitem == 3)
{
ShowPlayerDialog(playerid, 9016 , DIALOG_STYLE_MSGBOX, "Webs...","* www.sa-mp.com *\n\n* www.sa-mp.com *","Atrбs", "");
}
if(listitem == 4)
{
ShowPlayerDialog(playerid, 9017 , DIALOG_STYLE_LIST, "Block de notas","Crear nueva nota","Crear", "Atrбs");
}
}
else
{
ShowPlayerDialog(playerid, 9010, DIALOG_STYLE_LIST, "Seleccione el Sistema Operativo (OS)", "Windows XP Clбsico\nWindows 7 Normal", "Encender", "Cerrar"); //ner0x pondre tbm el windows 7 xdd
}
}
if(dialogid == 9012) // MIPC
{
if(response)
{
ShowPlayerDialog(playerid, 9013, DIALOG_STYLE_INPUT, "Enviar mensaje", "Escriba el mensaje aquн:", "Enviar", "Atrбs");
}
else
{
ShowPlayerDialog(playerid, 9011, DIALOG_STYLE_LIST, "Menъ", "Apagar\nIniciar sesiуn en messenger\nMi mъsica\nMis webs\nBlock de notas.", "Seleccionar", "Atrбs");
}
}
if(dialogid == 9013) // MIPC
{
if(response)
{
new nombre2[MAX_PLAYER_NAME];
new cmdtext[128], tmp[128], idx, id;
cmdtext = strtok(cmdtext, idx);
new nombrejugador, nombreusador;
nombrejugador = strval(tmp);
nombreusador = playerid;
// nombreusador = playerid;
id = strval(tmp);
if (IsPlayerConnected(nombrejugador))
{
if(playerid != id)
GetPlayerName(nombreusador, nombre2, MAX_PLAYER_NAME);
format(string, 256, "%s dice: %s", nombre2,inputtext);
ShowPlayerDialog(nombrejugador, 9014, DIALOG_STYLE_MSGBOX, "Messenger", string, "Responder", "Messenger");
PlayAudioStreamForPlayer(nombrejugador,"http://www.*******-mp3.org/get?video_id=Pu6sD4cpFUo&h=88e528a45591a2bf1c1c17cc04d240f8");
}
}
else
{
ShowPlayerDialog(playerid, 9013, DIALOG_STYLE_INPUT, "Enviar mensaje", "Escriba el mensaje aquн:", "Enviar", "Atrбs");
}
}
if(dialogid == 9014) // MIPC
{
if(response)
{
ShowPlayerDialog(playerid, 9013, DIALOG_STYLE_INPUT, "Enviar mensaje", "Escriba el mensaje aquн:", "Enviar", "Cancelar");
}
else
{
ShowPlayerDialog(playerid, 9011, DIALOG_STYLE_LIST, "Menъ", "Apagar\nIniciar sesiуn en messenger\nMi mъsica\nMis webs\nBlock de notas.", "Seleccionar", "Atrбs");
}
}
if(dialogid == 9015) // MIPC
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, 9010, DIALOG_STYLE_LIST, "Seleccione el Sistema Operativo (OS)", "Windows XP Clбsico\nWindows 7 Normal", "Encender", "Cerrar"); //ner0x pondre tbm el windows 7 xdd
PlayerInfo[playerid][MSNEstado] = 0;
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://www.*******-mp3.org/get?video_id=_OaRRckBiWU&h=debb7f2881e976d1e115b75a935e31fc");
}
if(listitem == 1)
{
PlayAudioStreamForPlayer(playerid,"http://freedownloads.last.fm/download/542199279/INICIO.mp3");
new offline = 0;
new name[MAX_PLAYER_NAME];
PlayerInfo[playerid][MSNEstado] = 1;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(PlayerInfo[i][MSNEstado] == 1)
{
GetPlayerName(i, name, sizeof(name));
format(string, 256, "** %s ** [ID:%d]", name,i );
ShowPlayerDialog(playerid, 9012, DIALOG_STYLE_LIST, "Messenger", string, "Mensaje", "Atrбs");
offline++;
}
}
}
if (offline == 0)
{
ShowPlayerDialog(playerid, 9012, DIALOG_STYLE_LIST, "Messenger", "Nigъn contacto conectado", "Mensaje", "Cerrar");
}
}
if(listitem == 2)
{
new string3[449];
format(string3, sizeof(string3),"%s %s",Musica);
ShowPlayerDialog(playerid, MUSICAID1 , DIALOG_STYLE_LIST, "Selecciona la mъsica/Select the music",string3,"Reproducir", "");
}
if(listitem == 3)
{
ShowPlayerDialog(playerid, 9016 , DIALOG_STYLE_MSGBOX, "Webs...","* www.sa-mp.com *\n\n* www.sa-mp.es *","Atrбs", "");
}
if(listitem == 4)
{
ShowPlayerDialog(playerid, 9017 , DIALOG_STYLE_LIST, "Block de notas","Crear nueva nota","Crear", "Atrбs");
}
}
else
{
ShowPlayerDialog(playerid, 9010, DIALOG_STYLE_LIST, "Seleccione el Sistema Operativo (OS)", "Windows XP Clбsico\nWindows 7 Normal", "Encender", "Cerrar"); //ner0x pondre tbm el windows 7 xdd
}
}
if(dialogid == 9016) // MIPC
{
if(response)
{
ShowPlayerDialog(playerid, 9011, DIALOG_STYLE_LIST, "Menъ", "Apagar\nIniciar sesiуn en messenger\nMi mъsica\nMis webs\nBlock de notas.", "Seleccionar", "Atrбs");
}
}
if(dialogid == 9017) // MIPC
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, 9018, DIALOG_STYLE_INPUT, "Block de notas","Introduzca el texto aquн:","Guargar","Atrбs");
}
else
{
ShowPlayerDialog(playerid, 9011, DIALOG_STYLE_LIST, "Menъ", "Apagar\nIniciar sesiуn en messenger\nMi mъsica\nMis webs\nBlock de notas.", "Seleccionar", "Atrбs");
}
}
}
if (dialogid == 9018)
{
if(response)
{
new nombrejugador[MAX_PLAYER_NAME];
format(string, sizeof(string), "Nombre: %s Nota: %s", nombrejugador, inputtext);
ShowPlayerDialog(playerid, 9019, DIALOG_STYLE_MSGBOX, "Nota creada",string, "Atrбs","");
}
else
{
ShowPlayerDialog(playerid, 9011, DIALOG_STYLE_LIST, "Menъ", "Apagar\nIniciar sesiуn en messenger\nMi mъsica\nMis webs\nBlock de notas.", "Seleccionar", "Atrбs");
}
}
if (dialogid == 9019)
{
if(response)
{
ShowPlayerDialog(playerid, 9018, DIALOG_STYLE_INPUT, "Block de notas","Introduzca el texto aquн:","Guargar","Atrбs");
}
}
if(response) {
switch(dialogid == MUSICAID1)
{
case 1: {
ShowPlayerDialog(playerid, 9011, DIALOG_STYLE_LIST, "Menъ", "Apagar\nIniciar sesiуn en messenger\nMi mъsica\nMis webs", "Seleccionar", "Atrбs");
switch(listitem)
{
case 0:
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://dc316.4shared.com/img/481604719/c0280a37/dlink__2Fdownload_2FM676MCJc_3Ftsid_3D20110116-111575-8b7a5e20/preview.mp3");
}
case 1:
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://7e.media.v4.skyrock.net/music/7e5/f71/7e5f710f522d30f15893e24498547317.mp3");
}
case 2:
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://88.media.v4.skyrock.net/music/88e/81e/88e81e34f58873c2b9c4f0c253c64685.mp3");
}
case 3:
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://4a.media.v4.skyrock.net/music/4a5/787/4a5787155c0bdf5cda57a83f20dad3d3.mp3");
}
case 4:
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://www.degjo.com/upload/go/dldsegment1/(degjo.com)FloRida-Right%20Round.mp3");
}
case 5:
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://56.media.v4.skyrock.net/music/56f/f85/56ff85ace1742b1b3efb80853c7cdc0e.mp3");
}
case 6:
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://5d.media.v4.skyrock.net/music/5d4/b6c/5d4b6c2834de1a5bad05c04a0c226847.mp3");
}
case 7:
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://39.media.v4.skyrock.net/music/39f/f98/39ff98ea1de8e9770e0e49105b31ddd2.mp3");
}
case 8:
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://dl4.zaycev.net/mini/8864/886492.mp3");
}
case 9:
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://www.saladospokes.com/Survivor_-_Eye_Of_A_Tiger_Rocky_.mp3");
}
case 10:
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://dc238.4shared.com/img/410865852/8c04b2ac/dlink__2Fdownload_2FOjqkkZQS_3Ftsid_3D00000000-000000-00000000/preview.mp3");
}
case 11:
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://player.streamtheworld.com/_players/unionradio/?callsign=LOS40");
}
case 12:
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "ftp://irinel:irinel@46.105.235.54/ServerMusic/adri1.mp3");
}
case 13:
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://www.choefm.com/images/Upload/sexy_chick-akon.mp3");
}
case 14:
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://www.angelfire.com/music5/jablckburn/Music/All_Star.mp3");
}
case 15:
{
StopAudioStreamForPlayer(playerid);
}
}
}
}
}
return 1;
}
//---------------------------------------------------------//
//FilterScript--------Virtual-PC--------Por-adri1-y-Ner0x--//
//FilterScript--------Virtual-PC--------By-adri1-and-Ner0x-//
// //
// adri223@hotmail.es //
// dark-vid@hotmail.com //
// //
///////////////////////////////////////////////////////////
Te refieres a cambiar las ids que aparecen despuйs de "if(dialogid ==" por otras cualquiera?