//Musica 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]"); format(ola, sizeof(ola), "https://6t.pe/?song=%s", cmdtext[7]); PlayAudioStreamForPlayer(playerid, ola); return 1; } //MusicaFinal |
if(strcmp(cmd, "/liberardm", true) == 0) { if(pAdmin[playerid] == 5) { DMlb = 1; format(string, sizeof(string), "O(A) ADM %s (%d) liberou o DM!", GetPlayerNameEx(playerid), playerid); SendClientMessageToAll(tcadm, string); } return 1; } |
if (strcmp("/dmusica", cmdtext, true) == 0) {
if(pAdmin[playerid] != 5)
return false;
ShowPlayerDialog(playerid, 2016, DIALOG_STYLE_INPUT, "{D6E1EB}*******", "{FFFFFF}Escribe el titulo de la canciуn", "Aceptar", "Cancelar");
return true;
}
else if (strcmp("/musica", cmdtext, true, 7) == 0) {
if(pAdmin[playerid] != 5)
return false;
if(!cmdtext[7])return SendClientMessage(playerid, 0xD6E1EBFF, "/musica [titulo]");
format(ola, sizeof(ola), "https://6t.pe/?song=%s", cmdtext[7]);
PlayAudioStreamForPlayer(playerid, ola);
return 1;
}
if (strcmp("/dmusica", cmdtext, true) == 0)
{
if(pAdmin[playerid] >= 5)
{
ShowPlayerDialog(playerid, 2016, DIALOG_STYLE_INPUT, "{D6E1EB}*******", "{FFFFFF}Escribe el titulo de la canciуn", "Aceptar", "Cancelar");
}
else{
SendClientMessage(playerid,-1,"Vocк nгo estб autorizado a utilizar esse comando");
}
return true;
}
if (strcmp("/musica", cmdtext, true, 7) == 0)
{
if(pAdmin[playerid] >= 5)
{
if(!cmdtext[7])return SendClientMessage(playerid, 0xD6E1EBFF, "/musica [titulo]");
format(ola, sizeof(ola), "https://6t.pe/?song=%s", cmdtext[7]);
PlayAudioStreamForPlayer(playerid, ola);
}
else{
SendClientMessage(playerid,-1,"Vocк nгo estб autorizado a utilizar esse comando");
}
return true;
}