Vк aн.
PHP код:
new Text:TXT[4];
public OnGameModeInit()
{
TXT[0] = TextDrawCreate(250.000000, 107.000000, "RADIO POP");
TextDrawBackgroundColor(TXT[0], 255);
TextDrawFont(TXT[0], 3);
TextDrawLetterSize(TXT[0], 0.500000, 1.000000);
TextDrawColor(TXT[0], -16776961);
TextDrawSetOutline(TXT[0], 0);
TextDrawSetProportional(TXT[0], 1);
TextDrawSetShadow(TXT[0], 1);
TextDrawUseBox(TXT[0], 1);
TextDrawBoxColor(TXT[0], 255);
TextDrawTextSize(TXT[0], 0.000000, 10.000000);
TXT[1] = TextDrawCreate(250.000000, 120.000000, "RADIO FUNK");
TextDrawBackgroundColor(TXT[1], 255);
TextDrawFont(TXT[1], 3);
TextDrawLetterSize(TXT[1], 0.500000, 1.000000);
TextDrawColor(TXT[1], 16711935);
TextDrawSetOutline(TXT[1], 0);
TextDrawSetProportional(TXT[1], 1);
TextDrawSetShadow(TXT[1], 1);
TextDrawUseBox(TXT[1], 1);
TextDrawBoxColor(TXT[1], 255);
TextDrawTextSize(TXT[1], 0.000000, 10.000000);
TXT[2] = TextDrawCreate(250.000000, 132.000000, "RADIO ROCK");
TextDrawBackgroundColor(TXT[2], 255);
TextDrawFont(TXT[2], 3);
TextDrawLetterSize(TXT[2], 0.500000, 1.000000);
TextDrawColor(TXT[2], 65535);
TextDrawSetOutline(TXT[2], 0);
TextDrawSetProportional(TXT[2], 1);
TextDrawSetShadow(TXT[2], 1);
TextDrawUseBox(TXT[2], 1);
TextDrawBoxColor(TXT[2], 255);
TextDrawTextSize(TXT[2], 0.000000, 10.000000);
TXT[3] = TextDrawCreate(250.000000, 144.000000, "RADIO RAP");
TextDrawBackgroundColor(TXT[3], 255);
TextDrawFont(TXT[3], 3);
TextDrawLetterSize(TXT[3], 0.500000, 1.000000);
TextDrawColor(TXT[3], -65281);
TextDrawSetOutline(TXT[3], 0);
TextDrawSetProportional(TXT[3], 1);
TextDrawSetShadow(TXT[3], 1);
TextDrawUseBox(TXT[3], 1);
TextDrawBoxColor(TXT[3], 255);
TextDrawTextSize(TXT[3], 0.000000, 10.000000);
TextDrawSetSelectable(TXT[1], true);
TextDrawSetSelectable(TXT[2], true);
TextDrawSetSelectable(TXT[3], true);
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
CMD:mp3a(playerid)
{
SelectTextDraw(playerid, 0xC0C0C0AA);
for(new i = 0; i < 4; i++)
{
TextDrawShowForPlayer(playerid, TXT[i]);
}
return 1;
}
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == TXT[0])
{
PlayAudioStreamForPlayer(playerid, "http://109.235.67.25:8030/stream");
SendClientMessage(playerid, -1, "Vocк estб ouvindo Rбdio Pop");
Escondertexts(playerid);
}
if(clickedid == TXT[1])
{
PlayAudioStreamForPlayer(playerid, "http://109.235.67.25:8030/stream");
SendClientMessage(playerid, -1, "Vocк estб ouvindo Rбdio Pop");
Escondertexts(playerid);
}
if(clickedid == TXT[2])
{
PlayAudioStreamForPlayer(playerid, "http://109.235.67.25:8030/stream");
SendClientMessage(playerid, -1, "Vocк estб ouvindo Rбdio Pop");
Escondertexts(playerid);
}
if(clickedid == TXT[3])
{
PlayAudioStreamForPlayer(playerid, "http://109.235.67.25:8030/stream");
SendClientMessage(playerid, -1, "Vocк estб ouvindo Rбdio Pop");
Escondertexts(playerid);
}
return 1;
}
stock Escondertexts(playerid)
{
CancelSelectTextDraw(playerid);
for(new i = 0; i < 4; i++)
{
TextDrawHideForPlayer(playerid, TXT[i]);
}
return 1;
}