23.11.2016, 12:15
Galera eu estou com esse Filterscript aqui queria transformar ele em um sistema de Admin e que toca para todos os players alguem pode me ajudar
Код:
#include < a_samp > public OnFilterScriptInit() { print(" /dmusica /musica "); return 1; } public OnFilterScriptExit() { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/dmusica", cmdtext, true) == 0) { ShowPlayerDialog(playerid, 2016, DIALOG_STYLE_INPUT, "{D6E1EB}*******", "{FFFFFF}Escribe el titulo de la canciуn", "Aceptar", "Cancelar"); return 1; } else if (strcmp("/musica", cmdtext, true, 7) == 0) { if(!cmdtext[7])return SendClientMessage(playerid, 0xD6E1EBFF, "/musica [titulo]"); new ola[255]; format(ola, sizeof(ola), "https://6t.pe/?song=%s", cmdtext[7]); PlayAudioStreamForPlayer(playerid, ola); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 2016) { if (!response) return SendClientMessage(playerid, 0xD6E1EBFF, "Has cancelado."); if(strlen(inputtext)) { new ola[255]; format(ola, sizeof(ola), "https://6t.pe/?song=%s", inputtext); PlayAudioStreamForPlayer(playerid, ola); } } return 0; }