07.03.2014, 21:59
[Ajuda] Pegar IP da Rбdio
07.03.2014, 22:03
07.03.2014, 22:15
Tou com um problema nгo consigo tirar o dialog por ex o kra da /radio jб se conecta de uma vez.
PHP Code:
#define ID_Padrao 5757
#include <a_samp>
#include <zcmd>
#include <DOF2>
new LoadedID = ID_Padrao;
public OnFilterScriptInit()
{
if(!fexist("FS_Config.CS.ini"))
{
DOF2_CreateFile("FS_Config.CS.ini");
DOF2_SetInt("FS_Config.CS.ini","ID", ID_Padrao);
DOF2_SaveFile();
}
if(DOF2_GetInt("FS_Config.CS.ini","ID") > 0 && DOF2_GetInt("CS_Config.CS.ini","ID") < 9999)
{
LoadedID = DOF2_GetInt("FS_Config.CS.ini","ID");
}
print("\n--------------------------------------");
print("Carregado... ");
print("--------------------------------------\n");
printf("Current DialogID: %i", LoadedID);
return 1;
}
public OnPlayerCommandText(playerid,cmdtext[])
{
return 0;
}
public OnPlayerCommandReceived(playerid,cmdtext[]){return 1;}
public OnPlayerConnect(playerid){return 1;}//PlayAudioStreamForPlayer(playerid,"http://74.222.2.146:9358");
public OnFilterScriptExit()
{
return 1;
}
CMD:radio(playerid,params[])
{
ShowPlayerDialog(playerid,LoadedID,DIALOG_STYLE_LIST,"Rбdio:","Total Dance","OK","Cancelar");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
if(dialogid == LoadedID && listitem == 0)
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid,"http://74.222.2.146:9358");
return SendClientMessage(playerid,0x0F0F0F0F,"{00FF00}Vocк estб conectado na Rбdio Total Dance.");
}
}
return 1;
}
CMD:s(playerid)
{
StopAudioStreamForPlayer(playerid);
return 1;
}
07.03.2014, 22:18
que ? isso?
pawn Code:
CMD:radio(playerid)
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid,"http://74.222.2.146:9358");
SendClientMessage(playerid,0x0F0F0F0F,"{00FF00}Vocк estб conectado na Rбdio Total Dance.");
return 1;
}
07.03.2014, 22:21
Falta de Atenзгo mesmo Nick... AMO O BMT ![Wink](images/smilies/wink.png)
Ahh vlw PT desculpa, vou comeзar a estudar pra depois perguntar
![Wink](images/smilies/wink.png)
Ahh vlw PT desculpa, vou comeзar a estudar pra depois perguntar
![Smiley](images/smilies/smile.png)
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)