i have audiostream in my server but when i do the command /audiourl [volume] [seek] [range] and then a dialog pop up, i paste a link there from the site kiwi6 (i uploaded my songs there) and press ok , nothing hears, i wait about 5 minutes - doesn't start.
BTW /setstation on vehicles also doesn't work...
Код:
CMD:audiourl(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 4) {
new volume, seek, range;
if(sscanf(params, "ddd", volume, seek, range)) {
SendClientMessageEx(playerid, COLOR_GRAD2, "USAGE: /audiourl [volume] [seek] [range].");
return 1;
}
SetPVarInt(playerid, "aURLvol", volume);
SetPVarInt(playerid, "aURLseek", seek);
SetPVarInt(playerid, "aURLrange", range);
ShowPlayerDialog(playerid, AUDIO_URL, DIALOG_STYLE_INPUT, "Audio URL", "Enter Audio URL", "OK", "Cancel");
}
else {
SendClientMessageEx(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
return 1;
}
return 1;
}