19.08.2008, 14:47
Why I Maked This
I Was Busy With A Dm Script With My Friend "Eric" And We Would Make A Sound When You Got A Killing Spree.
So I Was Thinking About What Sound We Shoul Play And I Came On The Idea Of Making A Radio
How It Works
It Is Easy To Use Actuly Because the functions have easy names and you can choose your own callbacks that got called by a given event.
The Functions
NextTrack(playerid); <--- this will change the current sound playing to the next sound in the list
PrevTrack(playerid); <--- this will change the current sound playing to the previus sound in the list
TurnRadioOn(playerid); <--- this will turn the radio on, and plays the first sound
TurnRadioOff(playerid); <--- this will turn the radio off, and stopts playing music
[size=20pt]how to use the Eventhandlers
This Code Will Run "Example(playerid)" When The Radio Got Turned On
The Download Links
Here You Got The Download Links:
[size=12pt]The Sample FS:
Pwn On FileFactory
Amx On FileFactory
The Include:
Inc On FileFactory
Inc On Pastebin
[/size]
CopyRight
Copyright [NL]HolyCrap © 2008
License:
Things You May Not Do:
- to copy the work;
- to issue copies of the work to the public
- to perform, show or play the work in public
- to broadcast the work or include it in a cable programme service
Exept:
- You Got Permission From Me Or The Goverment
Other Things
I Come From Holland So I Cant Speak English Very Much So....
There Is A Tutorial/Sample At The Download.
Do You Have Any questions/Bugs Please Pm it to me or post it here
I Was Busy With A Dm Script With My Friend "Eric" And We Would Make A Sound When You Got A Killing Spree.
So I Was Thinking About What Sound We Shoul Play And I Came On The Idea Of Making A Radio
How It Works
It Is Easy To Use Actuly Because the functions have easy names and you can choose your own callbacks that got called by a given event.
The Functions
NextTrack(playerid); <--- this will change the current sound playing to the next sound in the list
PrevTrack(playerid); <--- this will change the current sound playing to the previus sound in the list
TurnRadioOn(playerid); <--- this will turn the radio on, and plays the first sound
TurnRadioOff(playerid); <--- this will turn the radio off, and stopts playing music
[size=20pt]how to use the Eventhandlers
Code:
public OnGameModeInit() { SetOnRadioOff("Example"); return 1; } public Example(playerid) { // do somthing here return 1; }
This Code Will Run "Example(playerid)" When The Radio Got Turned On
The Download Links
Here You Got The Download Links:
[size=12pt]The Sample FS:
Pwn On FileFactory
Amx On FileFactory
The Include:
Inc On FileFactory
Inc On Pastebin
[/size]
CopyRight
Copyright [NL]HolyCrap © 2008
License:
Things You May Not Do:
- to copy the work;
- to issue copies of the work to the public
- to perform, show or play the work in public
- to broadcast the work or include it in a cable programme service
Exept:
- You Got Permission From Me Or The Goverment
Other Things
I Come From Holland So I Cant Speak English Very Much So....
There Is A Tutorial/Sample At The Download.
Do You Have Any questions/Bugs Please Pm it to me or post it here