SA-MP Forums Archive
[FilterScript] Custom Radio Stations (Like the default ones!) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Custom Radio Stations (Like the default ones!) (/showthread.php?tid=305842)



Custom Radio Stations (Like the default ones!) - Christopher - 24.12.2011

What is it?
This filterscript was designed to mimic the way in which GTA:SA handles the in-vehicle radio. The filterscript has a selection of predefined UK-based radio streams and allows the players to flick through the streams complete with the station name drawn via a textdraw exactly in the way that the regular station names would show.

How do my players use it?
Simple really, just go ahead and press your "KEY_YES" and "KEY_NO". These are also known on a default keyboard layout as 'Y' and 'N'. Y to go to the next station and N to return to the previous station.

A ******* video perhaps?
[ame]http://www.youtube.com/watch?v=MUGM_9TgFfE[/ame]


Downloads?
Raw PAWN Source
Pre-compiled AMX Binaries


Re: Custom Radio Stations (Like the default ones!) - Riddick94 - 24.12.2011

Why not on switch? and a little shorter function.

http://pastebin.com/K1Dz6jBP

But, good job for doing such a thing.


Respuesta: Custom Radio Stations (Like the default ones!) - [Nikk] - 24.12.2011

Great Job!


Re: Custom Radio Stations (Like the default ones!) - Christopher - 24.12.2011

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
Why not on switch? and a little shorter function.

http://pastebin.com/K1Dz6jBP

But, good job for doing such a thing.
I would have used a switch but I was stuck for time and it was about 4AM so I did the best of what my eyes could see but yea a switch would be less resource hungry :3


Re : Custom Radio Stations (Like the default ones!) - TGameR - 24.12.2011

i love this fs


Re: Custom Radio Stations (Like the default ones!) - MAVERICKS - 24.12.2011

hello i got 9 erros dude nice FS:

errors
Quote:

undefined symbol "StopAudioStreamForPlayer"
NYRadio.pwn(92) : error 017: undefined symbol "StopAudioStreamForPlayer"
NYRadio.pwn(105) : error 017: undefined symbol "PlayAudioStreamForPlayer"
NYRadio.pwn(11 : error 017: undefined symbol "PlayAudioStreamForPlayer"
NYRadio.pwn(131) : error 017: undefined symbol "PlayAudioStreamForPlayer"
NYRadio.pwn(144) : error 017: undefined symbol "PlayAudioStreamForPlayer"
NYRadio.pwn(157) : error 017: undefined symbol "PlayAudioStreamForPlayer"
NYRadio.pwn(174) : error 017: undefined symbol "KEY_YES"
NYRadio.pwn(180) : error 017: undefined symbol "KEY_NO"




AW: Re: Custom Radio Stations (Like the default ones!) - BigETI - 24.12.2011

Quote:
Originally Posted by MAVERICKS
Посмотреть сообщение
hello i got 9 erros dude nice FS:

errors
What's about to update your server to 0.3d?


Re: AW: Re: Custom Radio Stations (Like the default ones!) - MAVERICKS - 24.12.2011

Quote:
Originally Posted by BigETI
Посмотреть сообщение
What's about to update your server to 0.3d?
btw don't troll!!!
never mind i just fix it :P

pawn Код:
#include <a_samp>
#include <sscanf2>
#include <streamer>
#pragma tabsize 0
I just do it and works


Re: Custom Radio Stations (Like the default ones!) - nickdodd25 - 24.01.2012

EDIT: Nvm i reloaded it and now it works great.

Nice fs. but i have a problem, it doesnt stop the last audio stream when u switch through each station. anyone else have this problem? If someone did i could use a little help cause i am new to scripting.
Thanks
Nick