Szerző Téma: Rádió [TextDrawal]  (Megtekintve 1543 alkalommal)

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
Rádió [TextDrawal]
« Dátum: 2012. Április 04. - 19:25:02 »
+2 Show voters
Üdv ma este elkészitettem a 2.odik 0.3e filterscriptet
készitési idõ : 5perc
Készitette : ZzzzZ (Én)
Kód:
 
#include <a_samp>
#include zcmd
new Text:radioBox;
new Text:radioDJ;
new Text:Radio1;
new Text:Mixradio;
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" Rádió Menû By ZzzzZ\");
print(\"--------------------------------------\\n\");
 
radioBox = TextDrawCreate(320.000000, 143.000000, \"~n~Radio Menû~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~_\");
TextDrawAlignment(radioBox, 2);
TextDrawBackgroundColor(radioBox, 255);
TextDrawFont(radioBox, 2);
TextDrawLetterSize(radioBox, 0.500000, 1.000000);
TextDrawColor(radioBox, -1);
TextDrawSetOutline(radioBox, 0);
TextDrawSetProportional(radioBox, 1);
TextDrawSetShadow(radioBox, 1);
TextDrawUseBox(radioBox, 1);
TextDrawBoxColor(radioBox, 255);
TextDrawTextSize(radioBox, 45.000000, 115.000000);
radioDJ = TextDrawCreate(320.000000, 180.000000, \"DJ\");
TextDrawAlignment(radioDJ, 2);
TextDrawBackgroundColor(radioDJ, 255);
TextDrawFont(radioDJ, 2);
TextDrawLetterSize(radioDJ, 0.260000, 0.799999);
TextDrawColor(radioDJ, -1);
TextDrawSetOutline(radioDJ, 0);
TextDrawSetProportional(radioDJ, 1);
TextDrawSetShadow(radioDJ, 1);
Radio1 = TextDrawCreate(320.000000, 205.000000, \"Radio1\");
TextDrawAlignment(Radio1, 2);
TextDrawBackgroundColor(Radio1, 255);
TextDrawFont(Radio1, 2);
TextDrawLetterSize(Radio1, 0.260000, 0.799999);
TextDrawColor(Radio1, -1);
TextDrawSetOutline(Radio1, 0);
TextDrawSetProportional(Radio1, 1);
TextDrawSetShadow(Radio1, 1);
Mixradio = TextDrawCreate(320.000000, 230.000000, \"Mixradio\");
TextDrawAlignment(Mixradio, 2);
TextDrawBackgroundColor(Mixradio, 255);
TextDrawFont(Mixradio, 2);
TextDrawLetterSize(Mixradio, 0.260000, 0.799999);
TextDrawColor(Mixradio, -1);
TextDrawSetOutline(Mixradio, 0);
TextDrawSetProportional(Mixradio, 1);
TextDrawSetShadow(Mixradio, 1);
 
TextDrawSetSelectable(radioBox, false);
TextDrawSetSelectable(radioDJ, true);
TextDrawSetSelectable(Radio1, true);
TextDrawSetSelectable(Mixradio, true);
return 1;
}
public OnFilterScriptExit()
{
TextDrawDestroy(radioBox);
TextDrawDestroy(radioDJ);
TextDrawDestroy(Radio1);
TextDrawDestroy(Mixradio);
return 1;
}
CMD:radio(playerid,params[])
{
TextDrawShowForPlayer(playerid, radioBox);
TextDrawShowForPlayer(playerid, radioDJ);
TextDrawShowForPlayer(playerid, Radio1);
TextDrawShowForPlayer(playerid, Mixradio);
SelectTextDraw(playerid, 0x99FFFFAA);
return 1;
}
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(_:clickedid != radioBox)
{
if(clickedid == radioDJ)
{
PlayAudioStreamForPlayer(playerid,\"http://streaming.virtualpro.hu:9080/;stream\");
}
else if(clickedid == Radio1)
{
PlayAudioStreamForPlayer(playerid,\"http://195.70.35.172:8000/radio1.mp3\");
}
else if(clickedid == Mixradio)
{
PlayAudioStreamForPlayer(playerid,\"http://savetofile.net:8450/;stream\");
}
TextDrawHideForPlayer(playerid, radioBox);
TextDrawHideForPlayer(playerid, radioDJ);
TextDrawHideForPlayer(playerid, Radio1);
TextDrawHideForPlayer(playerid, Mixradio);
CancelSelectTextDraw(playerid);
}
return 0;
}

 
Képet majd Csinálok
« Utoljára szerkesztve: 2012. Április 05. - 08:52:11 írta ZzzzzZ »

Rádió [TextDrawal]
« Válasz #1 Dátum: 2012. Április 04. - 20:12:23 »
0 Show voters
érdekes  :D
kód? :D
epic fail

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
Rádió [TextDrawal]
« Válasz #2 Dátum: 2012. Április 04. - 20:28:54 »
0 Show voters
ja xD
véletlen img bbc code közé raktam
modósitva

Nem elérhető Dead

  • 2045
    • Profil megtekintése
Rádió [TextDrawal]
« Válasz #3 Dátum: 2012. Április 05. - 08:06:36 »
0 Show voters
Belejöttél a 0.3e be :D
Szép.

Dupla hozzászólás automatikusan összefûzve. ( 2012. Április 05. - 08:07:14 )

E:
KhömKhöm.
CMD:tele(playerid,params[])
{
xd

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
Rádió [TextDrawal]
« Válasz #4 Dátum: 2012. Április 05. - 08:36:40 »
0 Show voters
Idézetet írta: Dead date=1333605996\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"19603\" data-ipsquote-contentclass=\"forums_Topic
Belejöttél a 0.3e be :D
Szép.

Dupla hozzászólás automatikusan összefûzve. ( 2012. Április 05. - 08:07:14 )

E:
KhömKhöm.
CMD:tele(playerid,params[])
{
xd
 
tudom azt írtam át xD

Nem elérhető The

  • 4384
    • Profil megtekintése
Rádió [TextDrawal]
« Válasz #5 Dátum: 2012. Április 05. - 08:43:18 »
0 Show voters
Szép lett.

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
Rádió [TextDrawal]
« Válasz #6 Dátum: 2012. Április 05. - 11:18:27 »
0 Show voters
Még a végén profi 0.3e scripter leszel. grat jó lett xd :)

Rádió [TextDrawal]
« Válasz #7 Dátum: 2012. Április 05. - 11:35:57 »
0 Show voters
Faja, és az is, hogy a 0.3e megkönnyíti a textdrawos cuccot. Jöhetnének már a képek, várom:D

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal