Radio System with Dialogs (zcmd) -
kyriakos587 - 22.02.2015
Hi, today i will show to you guys my radio Filterscript with dialogs.
There are 6 Radios + Stop radio(I Forgot to add the Stop Radio in the pictures.)
Radios: Trap
Dubstep
Dance
Party
Hip Hop
Hard House
Download zcmd and add this on includes forlder: http://www.solidfiles.com/d/d20f/
How to use:
Open server.cfg > Find the line Filterscripts > add this "radio" without "" Example: (filterscripts radio)
Photos: http://s3.postimg.org/7qa87bdxf/sa_mp_003.png
http://s27.postimg.org/xn5ea9c77/sa_mp_004.png
http://s16.postimg.org/x893mqd9h/sa_mp_007.png
http://s3.postimg.org/tx8v4rv43/sa_mp_006.png
http://s16.postimg.org/x893mqd9h/sa_mp_007.png
http://s13.postimg.org/wewms88jr/sa_mp_008.png
http://s11.postimg.org/8grkv7aj7/sa_mp_009.png
Download Link: www.mediafire.com/?wfvvb1b9vb5h8ty
http://pastebin.com/8DitsvCK
If you like it Rep please
Re: Radio System with Dialogs (zcmd) -
TheSnaKe - 22.02.2015
Nice one, simple but good for beginners.
Re: Radio System with Dialogs (zcmd) -
AndySedeyn - 22.02.2015
Quote:
Originally Posted by TheSnaKe
Nice one, simple but good for beginners.
|
Your reply just tells me that you didn't even look at the code or you have no idea what this code does (except for the main concept of course).
1. OnDialogResponse should return 0 since it's a filterscript and most likely the callback is in use by the gamemode itself.
2. Not wrong but better would be if you use a switch for your dialog id's.
3. Also not wrong but better would be if you would use an enum to store dialogs in, considering that dialog ID 1 is probably in use by the gamemode.
4. Since it's a filterscript, you can remove
Re: Radio System with Dialogs (zcmd) -
TheSnaKe - 22.02.2015
Quote:
Originally Posted by Bible
Your reply just tells me that you didn't even look at the code or you have no idea what this code does (except for the main concept of course).
1. OnDialogResponse should return 0 since it's a filterscript and most likely the callback is in use by the gamemode itself.
2. Not wrong but better would be if you use a switch for your dialog id's.
3. Also not wrong but better would be if you would use an enum to store dialogs in, considering that dialog ID 1 is probably in use by the gamemode.
4. Since it's a filterscript, you can remove
|
Well, first of all i know what code does, and maybe he is a beginner, at least he tried.
Re: Radio System with Dialogs (zcmd) -
kyriakos587 - 22.02.2015
First of all, i think you script 2 months.
1. If is filterscript you must keep the #else #endif #if defined FILTERSCRIPT
2. When you make new filterscript and go to OnDialogResponse is return 0; so if you want change it, i think is better return 0;
3.There is not any problem with dialogid, if you use this filter script on gamemode you must change the dialogid to other number. If is on filterscript there is not reason to change it!
Re: Radio System with Dialogs (zcmd) -
AndySedeyn - 22.02.2015
Quote:
Originally Posted by kyriakos587
First of all, i think you script 2 months.
1. If is filterscript you must keep the #else #endif #if defined FILTERSCRIPT
2. When you make new filterscript and go to OnDialogResponse is return 0; so if you want change it, i think is better return 0;
3.There is not any problem with dialogid, if you use this filter script on gamemode you must change the dialogid to other number. If is on filterscript there is not reason to change it!
|
1. You can but there is no reason for you to keep the #else if there is no #else to execute.
2. I have absolutely no idea what you are trying to say to me with that. It has to be return 0, simple as that.
May I quote myself?:
Quote:
Originally Posted by myself
Not wrong but better
|
FYI: Your assumptions are wrong

.
Re: Radio System with Dialogs (zcmd) -
kyriakos587 - 22.02.2015
1.As i said YOU MUST KEEP THE #else #endif #if defined FILTERSCRIPT