Započeo Ole
•3. Jun 2017.• Zaključano[POMOC] radio
1,477
pregleda
18
postova
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
110
Postovi:
33
Teme:
Pridružio se:Apr. 2016
3. Jun 2017.
Skripta koju koristim: moje nesto
Detaljan opis problema: pa skinuo sam davno neki radiosystem sa TD-ovima i sve je lijepo radilo do sad nece da prikaze TD-ove ali kada kucam broj u chat pusti mi pjesmu ? vidjet cete dole u skripti..
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno): ///
Detaljan opis problema: pa skinuo sam davno neki radiosystem sa TD-ovima i sve je lijepo radilo do sad nece da prikaze TD-ove ali kada kucam broj u chat pusti mi pjesmu ? vidjet cete dole u skripti..
Dio skripte:
#include
#include
#define COLOR_ERROR 0xE60000FF
#define COLOR_SKYBLUE 0x00B6FFFF
new Radio_on;
new Radio_viewing;
new Text:Radio;
stock HideRadioTextdraws(playerid)
{
TextDrawHideForPlayer(playerid,Radio);
TextDrawHideForPlayer(playerid,Radio);
TextDrawHideForPlayer(playerid,Radio);
TextDrawHideForPlayer(playerid,Radio);
Radio_viewing =0;
return 1;
}
public OnGameModeInit()
{
Radio = TextDrawCreate(118.000000, 122.000000, "~l~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~N~~N~~N~");
TextDrawAlignment(Radio, 2);
TextDrawBackgroundColor(Radio, 255);
TextDrawFont(Radio, 1);
TextDrawLetterSize(Radio, 0.500000, 1.000000);
TextDrawColor(Radio, -1);
TextDrawSetOutline(Radio, 0);
TextDrawSetProportional(Radio, 1);
TextDrawSetShadow(Radio, 1);
TextDrawUseBox(Radio, 1);
TextDrawBoxColor(Radio, 0x00000045);
TextDrawTextSize(Radio, -1.000000, 212.000000);
TextDrawSetSelectable(Radio, 0);
Radio = TextDrawCreate(120.000000, 131.000000, "~g~Radio");
TextDrawAlignment(Radio, 2);
TextDrawBackgroundColor(Radio, 255);
TextDrawFont(Radio, 3);
TextDrawLetterSize(Radio, 0.460000, 1.299999);
TextDrawColor(Radio, -1);
TextDrawSetOutline(Radio, 1);
TextDrawSetProportional(Radio, 1);
TextDrawSetSelectable(Radio, 0);
Radio = TextDrawCreate(34.5, 155.000000, "~y~1 ~w~- Radio Balkan ~N~~Y~2 ~W~- Radio Pingvin~N~~Y~3 ~W~- Radio B92~N~~Y~4 ~W~- Radio Morava~N~~Y~5 ~W~- Radio City~N~~Y~6 ~W~- Radio Jazz~N~~Y~7 ~W~- Radio Rock~N~~Y~8 ~W~- Radio Rap~N~~Y~9 ~W~- Radio Cool~N~~Y~10 ~W~- ~R~~H~OFF");
TextDrawAlignment(Radio, 1);
TextDrawBoxColor(Radio, 255);
TextDrawFont(Radio, 1);
TextDrawLetterSize(Radio, 0.230000, 1.000000);
TextDrawColor(Radio, -1);
TextDrawSetOutline(Radio, 1);
TextDrawSetProportional(Radio, 1);
TextDrawSetSelectable(Radio, 0);
Radio = TextDrawCreate(121.000000, 250.000000, "~w~Pritisni slovo ~y~T~w~ i odaberi radio ~n~~w~Pritisni ~y~LMB~w~ da zatvoris prozor");
TextDrawAlignment(Radio, 2);
TextDrawBackgroundColor(Radio, 255);
TextDrawFont(Radio, 1);
TextDrawLetterSize(Radio, 0.230000, 1.000000);
TextDrawColor(Radio, -1);
TextDrawSetOutline(Radio, 1);
TextDrawSetProportional(Radio, 1);
TextDrawSetSelectable(Radio, 0);
return 1;
}
public OnPlayerText(playerid,text[])
{
if(Radio_viewing == 1)
{
if(isNumeric(text))
{
new input = strval(text);
switch(input)
{
case 1:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://62.138.148.200:8000", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 2:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://50.7.70.66:8559", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 3:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://stream.b92.net:7999/radio-b92.mp3.m3u", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 4:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://78.129.199.49:12100", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 5:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://balkan.dj.topstream.net:8070", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 6:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://listen.radionomy.com/ClassicalJazzRadio", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 7:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://listen.radionomy.com:80/ClassicRockLengendsRadio", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 8:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://50.22.212.196:8102", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 9:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://192.99.13.189:9764", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 10:
{
if(Radio_on == 0) { SendClientMessage(playerid,COLOR_SKYBLUE,"Radio je vec ugasen"); return 0; }
if(Radio_on == 1)
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio ugasen.");
StopAudioStreamForPlayer(playerid);
HideRadioTextdraws(playerid);
Radio_on = 0;
return 0;
}
}
default :
{
SendClientMessage(playerid, COLOR_ERROR,"Pogresan odabir.");
return 0;
}
}
}
}
return 1;
}
CMD:radio(playerid)
{
HideRadioTextdraws(playerid);
TextDrawShowForPlayer(playerid,Radio);
TextDrawShowForPlayer(playerid,Radio);
TextDrawShowForPlayer(playerid,Radio);
TextDrawShowForPlayer(playerid,Radio);
Radio_viewing =1;
return 1;
}
stock isNumeric(const string[])
{
for (new i = 0, j = strlen(string); i < j; i++)
{
if (string > '9' || string < '0') return 0;
}
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_FIRE)
{
if(Radio_viewing == 1)
{
HideRadioTextdraws(playerid);
}
}
return 1;
}Neke slike/video za lakse dobivanje pomoci(neobavezno): ///
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
110
Postovi:
33
Teme:
Pridružio se:Apr. 2016
3. Jun 2017.
LoOdaK wrote on June 3, 2017, 8:20 am:
Koliko sam ja skontao,samo pod casove stavi da se pokazuju tdovi,nabrzinu sam pogledao kod,izvini ako sam nesto izostavio
OG Legend
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosAktivan Član
34 / 250 XP
Početnik(1)
2,798
Postovi:
184
Teme:
Pridružio se:Jun 2013
3. Jun 2017.
Ole wrote on June 3, 2017, 8:20 am:
Koliko sam ja skontao,samo pod casove stavi da se pokazuju tdovi,nabrzinu sam pogledao kod,izvini ako sam nesto izostavio
Tdovi se trebaju pokazati kad ukucas cmd ili sta vec?
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
110
Postovi:
33
Teme:
Pridružio se:Apr. 2016
3. Jun 2017.
LoOdaK wrote on June 3, 2017, 8:20 am:
Koliko sam ja skontao,samo pod casove stavi da se pokazuju tdovi,nabrzinu sam pogledao kod,izvini ako sam nesto izostavio
Tdovi se trebaju pokazati kad ukucas cmd ili sta vec?
da kad kucam /radio tdovi se trebaju pokazati a kad kucam broj u chat da pokrene radio oni se trebaju skloniti
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
150
Postovi:
37
Teme:
Pridružio se:Jul 2013
3. Jun 2017.
Pogledaj možda u gamemode već imaš definirano "Radio" pa probaj zamijeniti "Radio" sa nekim drugim nazivom
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
110
Postovi:
33
Teme:
Pridružio se:Apr. 2016
4. Jun 2017.
★Manuel™★ wrote on June 3, 2017, 3:35 pm:
Pogledaj možda u gamemode već imaš definirano "Radio" pa probaj zamijeniti "Radio" sa nekim drugim nazivom
★Manuel™★ wrote on June 3, 2017, 3:35 pm:
Pogledaj možda u gamemode već imaš definirano "Radio" pa probaj zamijeniti "Radio" sa nekim drugim nazivom
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
433
Postovi:
15
Teme:
Pridružio se:Mar. 2017
4. Jun 2017.
Nisam te ni ja skuzio ali, kako ovdje u istovremenu skrivas/pokazujes ? Isto propazi na return 1 - 0;
CMD:radio(playerid)
{
HideRadioTextdraws(playerid);
TextDrawShowForPlayer(playerid,Radio);
TextDrawShowForPlayer(playerid,Radio);
TextDrawShowForPlayer(playerid,Radio);
TextDrawShowForPlayer(playerid,Radio);
Radio_viewing =1;
return 1;
}
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
110
Postovi:
33
Teme:
Pridružio se:Apr. 2016
4. Jun 2017.
Bolex_ wrote on June 4, 2017, 9:56 am:
Nisam te ni ja skuzio ali, kako ovdje u istovremenu skrivas/pokazujes ? Isto propazi na return 1 - 0;
CMD:radio(playerid)
{
HideRadioTextdraws(playerid);
TextDrawShowForPlayer(playerid,Radio);
TextDrawShowForPlayer(playerid,Radio);
TextDrawShowForPlayer(playerid,Radio);
TextDrawShowForPlayer(playerid,Radio);
Radio_viewing =1;
return 1;
}
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
433
Postovi:
15
Teme:
Pridružio se:Mar. 2017
4. Jun 2017.
#include
#include
#define COLOR_ERROR 0xE60000FF
#define COLOR_SKYBLUE 0x00B6FFFF
new Radio_on;
new Radio_viewing;
new Text:Radio;
stock HideRadioTextdraws(playerid)
{
TextDrawHideForPlayer(playerid,Radio);
TextDrawHideForPlayer(playerid,Radio);
TextDrawHideForPlayer(playerid,Radio);
TextDrawHideForPlayer(playerid,Radio);
Radio_viewing =0;
return 1;
}
public OnGameModeInit()
{
Radio = TextDrawCreate(118.000000, 122.000000, "~l~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~N~~N~~N~");
TextDrawAlignment(Radio, 2);
TextDrawBackgroundColor(Radio, 255);
TextDrawFont(Radio, 1);
TextDrawLetterSize(Radio, 0.500000, 1.000000);
TextDrawColor(Radio, -1);
TextDrawSetOutline(Radio, 0);
TextDrawSetProportional(Radio, 1);
TextDrawSetShadow(Radio, 1);
TextDrawUseBox(Radio, 1);
TextDrawBoxColor(Radio, 0x00000045);
TextDrawTextSize(Radio, -1.000000, 212.000000);
TextDrawSetSelectable(Radio, 0);
Radio = TextDrawCreate(120.000000, 131.000000, "~g~Radio");
TextDrawAlignment(Radio, 2);
TextDrawBackgroundColor(Radio, 255);
TextDrawFont(Radio, 3);
TextDrawLetterSize(Radio, 0.460000, 1.299999);
TextDrawColor(Radio, -1);
TextDrawSetOutline(Radio, 1);
TextDrawSetProportional(Radio, 1);
TextDrawSetSelectable(Radio, 0);
Radio = TextDrawCreate(34.5, 155.000000, "~y~1 ~w~- Radio Balkan ~N~~Y~2 ~W~- Radio Pingvin~N~~Y~3 ~W~- Radio B92~N~~Y~4 ~W~- Radio Morava~N~~Y~5 ~W~- Radio City~N~~Y~6 ~W~- Radio Jazz~N~~Y~7 ~W~- Radio Rock~N~~Y~8 ~W~- Radio Rap~N~~Y~9 ~W~- Radio Cool~N~~Y~10 ~W~- ~R~~H~OFF");
TextDrawAlignment(Radio, 1);
TextDrawBoxColor(Radio, 255);
TextDrawFont(Radio, 1);
TextDrawLetterSize(Radio, 0.230000, 1.000000);
TextDrawColor(Radio, -1);
TextDrawSetOutline(Radio, 1);
TextDrawSetProportional(Radio, 1);
TextDrawSetSelectable(Radio, 0);
Radio = TextDrawCreate(121.000000, 250.000000, "~w~Pritisni slovo ~y~T~w~ i odaberi radio ~n~~w~Pritisni ~y~LMB~w~ da zatvoris prozor");
TextDrawAlignment(Radio, 2);
TextDrawBackgroundColor(Radio, 255);
TextDrawFont(Radio, 1);
TextDrawLetterSize(Radio, 0.230000, 1.000000);
TextDrawColor(Radio, -1);
TextDrawSetOutline(Radio, 1);
TextDrawSetProportional(Radio, 1);
TextDrawSetSelectable(Radio, 0);
return 1;
}
public OnPlayerText(playerid,text[])
{
if(Radio_viewing == 1)
{
if(isNumeric(text))
{
new input = strval(text);
switch(input)
{
case 1:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://62.138.148.200:8000", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 2:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://50.7.70.66:8559", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 3:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://stream.b92.net:7999/radio-b92.mp3.m3u", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 4:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://78.129.199.49:12100", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 5:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://balkan.dj.topstream.net:8070", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 6:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://listen.radionomy.com/ClassicalJazzRadio", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 7:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://listen.radionomy.com:80/ClassicRockLengendsRadio", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 8:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://50.22.212.196:8102", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 9:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://192.99.13.189:9764", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 10:
{
if(Radio_on == 0) { SendClientMessage(playerid,COLOR_SKYBLUE,"Radio je vec ugasen"); return 0; }
if(Radio_on == 1)
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio ugasen.");
StopAudioStreamForPlayer(playerid);
HideRadioTextdraws(playerid);
Radio_on = 0;
return 0;
}
}
default :
{
SendClientMessage(playerid, COLOR_ERROR,"Pogresan odabir.");
return 0;
}
}
}
}
return 1;
}
CMD:radio(playerid)
{
TextDrawShowForPlayer(playerid,Radio);
TextDrawShowForPlayer(playerid,Radio);
TextDrawShowForPlayer(playerid,Radio);
TextDrawShowForPlayer(playerid,Radio);
Radio_viewing =1;
return 1;
}
stock isNumeric ( string [ ] )
{
for ( new i = 0 , j = strlen ( string ) ; i < j; i++ )
{
if ( string [ i ] > '9' || string [ i ] < '0' ) return 0;
}
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_FIRE)
{
if(Radio_viewing == 1)
{
HideRadioTextdraws(playerid);
}
}
return 1;
}
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
110
Postovi:
33
Teme:
Pridružio se:Apr. 2016
4. Jun 2017.
Bolex_ wrote on June 4, 2017, 1:17 pm:
#include
#include
#define COLOR_ERROR 0xE60000FF
#define COLOR_SKYBLUE 0x00B6FFFF
new Radio_on;
new Radio_viewing;
new Text:Radio;
stock HideRadioTextdraws(playerid)
{
TextDrawHideForPlayer(playerid,Radio);
TextDrawHideForPlayer(playerid,Radio);
TextDrawHideForPlayer(playerid,Radio);
TextDrawHideForPlayer(playerid,Radio);
Radio_viewing =0;
return 1;
}
public OnGameModeInit()
{
Radio = TextDrawCreate(118.000000, 122.000000, "~l~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~N~~N~~N~");
TextDrawAlignment(Radio, 2);
TextDrawBackgroundColor(Radio, 255);
TextDrawFont(Radio, 1);
TextDrawLetterSize(Radio, 0.500000, 1.000000);
TextDrawColor(Radio, -1);
TextDrawSetOutline(Radio, 0);
TextDrawSetProportional(Radio, 1);
TextDrawSetShadow(Radio, 1);
TextDrawUseBox(Radio, 1);
TextDrawBoxColor(Radio, 0x00000045);
TextDrawTextSize(Radio, -1.000000, 212.000000);
TextDrawSetSelectable(Radio, 0);
Radio = TextDrawCreate(120.000000, 131.000000, "~g~Radio");
TextDrawAlignment(Radio, 2);
TextDrawBackgroundColor(Radio, 255);
TextDrawFont(Radio, 3);
TextDrawLetterSize(Radio, 0.460000, 1.299999);
TextDrawColor(Radio, -1);
TextDrawSetOutline(Radio, 1);
TextDrawSetProportional(Radio, 1);
TextDrawSetSelectable(Radio, 0);
Radio = TextDrawCreate(34.5, 155.000000, "~y~1 ~w~- Radio Balkan ~N~~Y~2 ~W~- Radio Pingvin~N~~Y~3 ~W~- Radio B92~N~~Y~4 ~W~- Radio Morava~N~~Y~5 ~W~- Radio City~N~~Y~6 ~W~- Radio Jazz~N~~Y~7 ~W~- Radio Rock~N~~Y~8 ~W~- Radio Rap~N~~Y~9 ~W~- Radio Cool~N~~Y~10 ~W~- ~R~~H~OFF");
TextDrawAlignment(Radio, 1);
TextDrawBoxColor(Radio, 255);
TextDrawFont(Radio, 1);
TextDrawLetterSize(Radio, 0.230000, 1.000000);
TextDrawColor(Radio, -1);
TextDrawSetOutline(Radio, 1);
TextDrawSetProportional(Radio, 1);
TextDrawSetSelectable(Radio, 0);
Radio = TextDrawCreate(121.000000, 250.000000, "~w~Pritisni slovo ~y~T~w~ i odaberi radio ~n~~w~Pritisni ~y~LMB~w~ da zatvoris prozor");
TextDrawAlignment(Radio, 2);
TextDrawBackgroundColor(Radio, 255);
TextDrawFont(Radio, 1);
TextDrawLetterSize(Radio, 0.230000, 1.000000);
TextDrawColor(Radio, -1);
TextDrawSetOutline(Radio, 1);
TextDrawSetProportional(Radio, 1);
TextDrawSetSelectable(Radio, 0);
return 1;
}
public OnPlayerText(playerid,text[])
{
if(Radio_viewing == 1)
{
if(isNumeric(text))
{
new input = strval(text);
switch(input)
{
case 1:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://62.138.148.200:8000", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 2:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://50.7.70.66:8559", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 3:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://stream.b92.net:7999/radio-b92.mp3.m3u", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 4:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://78.129.199.49:12100", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 5:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://balkan.dj.topstream.net:8070", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 6:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://listen.radionomy.com/ClassicalJazzRadio", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 7:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://listen.radionomy.com:80/ClassicRockLengendsRadio", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 8:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://50.22.212.196:8102", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 9:
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio pocinje...");
PlayAudioStreamForPlayer(playerid, "http://192.99.13.189:9764", 0, 0, 0, 0, 0);
HideRadioTextdraws(playerid);
Radio_on = 1;
return 0;
}
case 10:
{
if(Radio_on == 0) { SendClientMessage(playerid,COLOR_SKYBLUE,"Radio je vec ugasen"); return 0; }
if(Radio_on == 1)
{
SendClientMessage(playerid,COLOR_SKYBLUE,"Radio ugasen.");
StopAudioStreamForPlayer(playerid);
HideRadioTextdraws(playerid);
Radio_on = 0;
return 0;
}
}
default :
{
SendClientMessage(playerid, COLOR_ERROR,"Pogresan odabir.");
return 0;
}
}
}
}
return 1;
}
CMD:radio(playerid)
{
TextDrawShowForPlayer(playerid,Radio);
TextDrawShowForPlayer(playerid,Radio);
TextDrawShowForPlayer(playerid,Radio);
TextDrawShowForPlayer(playerid,Radio);
Radio_viewing =1;
return 1;
}
stock isNumeric ( string [ ] )
{
for ( new i = 0 , j = strlen ( string ) ; i < j; i++ )
{
if ( string [ i ] > '9' || string [ i ] < '0' ) return 0;
}
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_FIRE)
{
if(Radio_viewing == 1)
{
HideRadioTextdraws(playerid);
}
}
return 1;
}
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
110
Postovi:
33
Teme:
Pridružio se:Apr. 2016
4. Jun 2017.
Bolex_ wrote on June 4, 2017, 1:36 pm:
Pa meni sve radi kada sam isao da probam!
To radiš na nacin kada upises /radio izbaci ti dialog pritisneš T i unutar tog box-a upises broj i pritisnes enter
To radiš na nacin kada upises /radio izbaci ti dialog pritisneš T i unutar tog box-a upises broj i pritisnes enter
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava
