21.04.2015, 22:13
(
Последний раз редактировалось Monarke2000; 22.04.2015 в 00:51.
)
Alguem tem como me ajuda porque a dialog nгo funciona [ela abre] mais o que esta nela nгo funciona nгo aparece nada como se ela nгo tivesse nada ja testei uns filterscript e nгo funciona .E testei em outras gm
Nгo sei se ta certo
Код:
#define BONECO 32123 //------------------------------------------------------------------------------ public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp("/natal2", cmdtext, true)) // Comando { ShowPlayerDialog(playerid, BONECO, DIALOG_STYLE_LIST, "{FFFFFF}-------------------------- {FF0000}Sistema de Natal {FFFFFF}--------------------------", "{FFFFFF}» {00FF00}Liga TextDraw's\n{FFFFFF}» {FF0000}Desliga TextDraw's\n{FFFFFF}» {00FF00}Ligar Neve\n{FFFFFF}» {FF0000}Desliga Neve\n{FFFFFF}» {00FF00}ligar Musica\n{FFFFFF}» {FF0000}Desliga Musica\n{FFFFFF}» {00FF00}Creditos !!", "Selecionar", "Cancelar"); return 1; } return 0; } //------------------------------------------------------------------------------ public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == BONECO) { if(response) { if(listitem == 0) // LISTA 1 { TextDrawShowForAll(NATAL[0]); TextDrawShowForAll(NATAL[1]); TextDrawShowForAll(NATAL[2]); TextDrawShowForAll(NATAL[3]); TextDrawShowForAll(NATAL[4]); TextDrawShowForAll(NATAL[5]); TextDrawShowForAll(NATAL[6]); TextDrawShowForAll(NATAL[7]); TextDrawShowForAll(NATAL[8]); TextDrawShowForAll(NATAL[9]); TextDrawShowForAll(NATAL[10]); TextDrawShowForAll(NATAL[11]); TextDrawShowForAll(NATAL[12]); TextDrawShowForAll(NATAL[13]); TextDrawShowForAll(NATAL[14]); TextDrawShowForAll(NATAL[15]); TextDrawShowForAll(NATAL[16]); TextDrawShowForAll(NATAL[17]); TextDrawShowForAll(NATAL[18]); TextDrawShowForAll(NATAL[19]); TextDrawShowForAll(NATAL[20]); TextDrawShowForAll(NATAL[21]); TextDrawShowForAll(NATAL[22]); TextDrawShowForAll(NATAL[23]); TextDrawShowForAll(NATAL[24]); SendClientMessage(playerid, COLOUR_INFORMACAO, "{FF0000}[INFO]: {FFFFFF}TextDraw's ativadas -> para desativado {00FF00}/Natal2"); } else if(listitem == 1) // LISTA 2 { TextDrawHideForAll(NATAL[0]); TextDrawHideForAll(NATAL[1]); TextDrawHideForAll(NATAL[2]); TextDrawHideForAll(NATAL[3]); TextDrawHideForAll(NATAL[4]); TextDrawHideForAll(NATAL[5]); TextDrawHideForAll(NATAL[6]); TextDrawHideForAll(NATAL[7]); TextDrawHideForAll(NATAL[8]); TextDrawHideForAll(NATAL[9]); TextDrawHideForAll(NATAL[10]); TextDrawHideForAll(NATAL[11]); TextDrawHideForAll(NATAL[12]); TextDrawHideForAll(NATAL[13]); TextDrawHideForAll(NATAL[14]); TextDrawHideForAll(NATAL[15]); TextDrawHideForAll(NATAL[16]); TextDrawHideForAll(NATAL[17]); TextDrawHideForAll(NATAL[18]); TextDrawHideForAll(NATAL[19]); TextDrawHideForAll(NATAL[20]); TextDrawHideForAll(NATAL[21]); TextDrawHideForAll(NATAL[22]); TextDrawHideForAll(NATAL[23]); TextDrawHideForAll(NATAL[24]); SendClientMessage(playerid, COLOUR_INFORMACAO, "{FF0000}[INFO]: {FFFFFF}TextDraw's desativado -> para ativa {00FF00}/Natal2"); } else if(listitem == 2) // LISTA 3 { Nevar[0] = CreateObject(18864, 2040.97, 872.55, 0.91, 0.00, 0.00, -145.00); Nevar[1] = CreateObject(18864, 2070.18, 1067.29, 0.91, 0.00, 0.00, -145.00); Nevar[2] = CreateObject(18864, 2088.28, 1259.24, 0.91, 0.00, 0.00, -145.00); Nevar[3] = CreateObject(18864, 2092.58, 1432.01, 0.91, 0.00, 0.00, -145.00); Nevar[4] = CreateObject(18864, 2052.42, 1598.32, 0.91, 0.00, 0.00, -145.00); Nevar[5] = CreateObject(18864, 2089.83, 1748.80, -5.70, 0.00, 0.00, -145.00); Nevar[6] = CreateObject(18864, 2199.64, 911.90, 0.91, 0.00, 0.00, -145.00); Nevar[7] = CreateObject(18864, 1853.36, 869.96, 0.91, 0.00, 0.00, -145.00); Nevar[8] = CreateObject(18864, 2015.02, 696.78, 0.91, 0.00, 0.00, -145.00); Nevar[9] = CreateObject(18864, 2087.29, 1757.81, -5.70, 0.00, 0.00, -145.00); Nevar[10] = CreateObject(18864, 2021.50, 1592.82, 0.91, 0.00, 0.00, -145.00); Nevar[11] = CreateObject(18864, 2053.74, 1436.28, 0.91, 0.00, 0.00, -145.00); Nevar[12] = CreateObject(18864, 2064.92, 1191.31, 0.91, 0.00, 0.00, -145.00); Nevar[13] = CreateObject(18864, 2050.61, 1068.27, 0.91, 0.00, 0.00, -145.00); Nevar[14] = CreateObject(18864, 2013.81, 874.35, 0.91, 0.00, 0.00, -145.00); Nevar[15] = CreateObject(18864, 2004.23, 691.99, 0.91, 0.00, 0.00, -145.00); Nevar[16] = CreateObject(18864, 1852.62, 865.53, 0.91, 0.00, 0.00, -145.00); Nevar[17] = CreateObject(18864, 2197.36, 911.22, 0.91, 0.00, 0.00, -145.00); Nevar[18] = CreateObject(18864, 2075.21, 1042.43, 0.91, 0.00, 0.00, -145.00); CREDITOSS = Create3DTextLabel("{FFFFFF}Sistema de Natal By Monarke",0x0083ADFF,2057.5808,983.0751,10.8680,50,0,0); SendClientMessage(playerid, COLOUR_INFORMACAO, "{FF0000}[INFO]: {FFFFFF}Neve ativada -> para desativa {00FF00}/Natal2"); } else if(listitem == 3) // LISTA 4 { for(new i = 0; i < 19; i++) { DestroyObject(Nevar[i]); Delete3DTextLabel(CREDITOSS); SendClientMessage(playerid, COLOUR_INFORMACAO, "{FF0000}[INFO]: {FFFFFF}Neve desativada -> para ativa {00FF00}/Natal2"); } } else if(listitem == 4) // LISTA 5 { for( new u; u < MAX_PLAYERS; u++ ) { PlayAudioStreamForPlayer( u, "http://2ky.info/Music/BTF.mp3" ); SendClientMessage(playerid, COLOUR_INFORMACAO, "{FF0000}[INFO]: {FFFFFF}Musica ativada -> para desativa {00FF00}/Natal2"); } } else if(listitem == 5) // LISTA 6 { for(new i = 0; i != MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) StopAudioStreamForPlayer(i); SendClientMessage(playerid, COLOUR_INFORMACAO, "{FF0000}[INFO]: {FFFFFF}Musica desativada -> para ativa {00FF00}/Natal2"); } } } } else if(listitem == 6) // LISTA 7 { SendClientMessage(playerid, COLOUR_INFORMACAO, "{FF0000}[INFO]: {FFFFFF}CREDITOS HAAHAHAH SEM"); return 1; } return 0; }