SA-MP Forums Archive
[FilterScript] Custom Horns [0.3d] - 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 Horns [0.3d] (/showthread.php?tid=286412)



Custom Horns [0.3d] - legodude - 28.09.2011

Hi all

been very inactive recently due to another 'profession' minecraft but when i saw that a 0.3d RC was released i couldn't resist to try.

here's a quick thing i made up, its a custom horn script. it's for a big part customizable and really easy to understand.
i know i use old techniques but this was a clean server i downloaded, didnt want to dl all those includes. you can modify it to your needs however

about the script:
building time: about a hour and a half. most time got in searching for horn sounds
lines:86
difficulty: easy

this script uses the new 0.3d function PlayAudioStreamForPlayer. so it wont work in previous versions
you can sound your horn with the submission key, or 2(standard) but that is configurable at line 6
the dialog id is configurable at line 5.
i think when you add more sounds it will just stretch up, so it will still work.
the command to access the dialog is /horn.

the thing to sound it for all is not tested at all, due to not having someone to test it with. please test this for me if you are able to.

i think everything is clear now, i bet you want to have a link right?
here it is.

Enjoy


Re: Custom Horns [0.3d] - uprp - 28.09.2011

Won't say anything bad,, Pretty good actually.

I wouldn't put much effort in something that is still bugged and not yet fixed (0.3D)

I would've waited a month atleast..

Good effort.


Re: Custom Horns [0.3d] - legodude - 28.09.2011

why, the playaudiostream is pretty decent working already, and thats the only new thing. so no bugs as far as i tested


Re: Custom Horns [0.3d] - Den_Deluxe - 29.09.2011

its nice but video makes it better


Re: Custom Horns [0.3d] - davve95 - 29.09.2011

Sounds awsome good job


Re: Custom Horns [0.3d] - The_J0ker - 29.09.2011

When I go in game and select the horn and go to do it I crash. Do you need to have the stock cars or something?


Re: Custom Horns [0.3d] - Dripac - 29.09.2011

Wow dude, that's cool, i will use it for my RP server^^


Re: Custom Horns [0.3d] - legodude - 29.09.2011

you sure you are running 0.3d, if so. i dont know

thanks for all the kind replies :d


Re: Custom Horns [0.3d] - [MWR]Blood - 29.09.2011

Nice idea, good job!


Re: Custom Horns [0.3d] - legodude - 29.09.2011

thanks


Re: Custom Horns [0.3d] - Dripac - 29.09.2011

C:\Users\Stefanche16\Desktop\hrpserver\filterscrip ts\huppe.pwn(45) : warning 217: loose indentation
C:\Users\Stefanche16\Desktop\hrpserver\filterscrip ts\huppe.pwn(74) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

Meh

// Edit, fixed


Re: Custom Horns [0.3d] - legodude - 29.09.2011

blame pastebin, sometimes messes up indentation

does anyone care to give hints tips, constructive criticism?


Re: Custom Horns [0.3d] - On_Top_Non_Stop - 30.09.2011

I have a question for any one using audio streams.

If you use PlayAudioStreamForPlayer while there is already a stream playing, does it play over the original stream or does it end the original then play the new one?


Re: Custom Horns [0.3d] - Kyle_Olsen - 30.09.2011

Quote:
Originally Posted by On_Top_Non_Stop
Посмотреть сообщение
I have a question for any one using audio streams.

If you use PlayAudioStreamForPlayer while there is already a stream playing, does it play over the original stream or does it end the original then play the new one?
It ends the original then plays the new one.


Re: Custom Horns [0.3d] - justsomeguy - 30.09.2011

Quote:
Originally Posted by Den_Deluxe
Посмотреть сообщение
its nice but video makes it better
I guess it would be better WITH video but still: Great job!


Re: Custom Horns [0.3d] - vassilis - 30.09.2011

Rofl Sounds Funny Tbh.


Re: Custom Horns [0.3d] - legodude - 30.09.2011

wsorry for no vids or anything, but i don't have any recording software and wasn't planning on installing more bullcrap on my system


AW: Custom Horns [0.3d] - Akmet - 30.09.2011

very nice but: PlayAudioStreamForPlayer(playerid, horns[Horn[playerid]][0]);
the playerid is in the while loop before, so why call the function for the player again?




Re: Custom Horns [0.3d] - SamyRomafia - 30.09.2011

Good, how can i upload a (.mp3) files?


Re: Custom Horns [0.3d] - legodude - 01.10.2011

you can't on my site. but just try a filesharing site with direct linking.
that'll do the job too i think
or if you have a very good one, you can pm me it and ill update the script

Im always keep adding more horns to this script if you send me them.