27.03.2017, 23:01
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid) {
case 11: {
if(response) {
if(!strlen(inputtext)) return SendClientMessage(playerid, -1, "Nenhum url foi digitado na input!");
new Float:Pos[3];
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
for(new i = 0; i <MAX_PLAYERS; i++) {
if(IsPlayerInRangeOfPoint(i,10.0,Pos[0],Pos[1],Pos[2])) PlayAudioStreamForPlayer(i,inputtext);
}
}
}
}
return 1;
}