Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: ngocson389 on Jun 21, 2017, 09:48 AM

Title: Custom Sound Problem~
Post by: ngocson389 on Jun 21, 2017, 09:48 AM
Hi Guy. I did add my sound in store but why i cant use it.
When i take sound in forum it work. idk why.
Thank for help.
Title: Re: Custom Sound Problem~
Post by: . on Jun 21, 2017, 12:22 PM
Quote from: ngocson389 on Jun 21, 2017, 09:48 AMHi Guy. T did add my sound in store but why i cant use it.
When i take sound in forum it work. idk why.
Thank for help.


The text is too small to read. Please make it bigger!!! Because we're all blind 8) and stupid here.
Title: Re: Custom Sound Problem~
Post by: KAKAN on Jun 21, 2017, 12:53 PM
Quote from: . on Jun 21, 2017, 12:22 PM... 8) ...
How big can that 8) get?
Title: Re: Custom Sound Problem~
Post by: Derwaish. on Jun 21, 2017, 01:25 PM
Quote from: KAKAN on Jun 21, 2017, 12:53 PM
Quote from: . on Jun 21, 2017, 12:22 PM... 8) ...
How big can that 8) get?
use [size=50pt][/size]
Title: Re: Custom Sound Problem~
Post by: Murdock on Jun 21, 2017, 03:05 PM
Quote from: ngocson389 on Jun 21, 2017, 09:48 AMHi Guy. T did add my sound in store but why i cant use it.
When i take sound in forum it work. idk why.
Thank for help.


Which guy are you talking to? Who is T?
Title: Re: Custom Sound Problem~
Post by: ngocson389 on Jun 23, 2017, 04:29 AM
wrong type :v it is I
Title: Re: Custom Sound Problem~
Post by: EK.IceFlake on Jun 23, 2017, 08:02 AM
Quote from: ngocson389 on Jun 23, 2017, 04:29 AMwrong type :v it is I
Who is I in that case?
Title: Re: Custom Sound Problem~
Post by: EightyVice on Jun 23, 2017, 08:20 AM
Well add the audio file and rename it s<id>_<name> as that id must be more than or = 50000 , but dont make 2 files with the same ID
as example
s50000_headshot.wav
and then you can use it in Sound Functions
and a  example for playing a sound at a certain position
PlaySound( 1, 50000, Player.Pos);you can see another functions from here (http://wiki.vc-mp.org/index.php?search=sound&title=Special%3ASearch&go=Go)
Title: Re: Custom Sound Problem~
Post by: EK.IceFlake on Jun 23, 2017, 09:36 AM
Quote from: Zeyad Ahmed on Jun 23, 2017, 08:20 AMWell add the audio file and rename it s<id>_<name> as that id must be more than or = 50000 , but dont make 2 files with the same ID
as example
s50000_headshot.wav
and then you can use it in Sound Functions
and a  example for playing a sound at a certain position
PlaySound( 1, 50000, Player.pos);you can see another functions from here (http://wiki.vc-mp.org/index.php?search=sound&title=Special%3ASearch&go=Go)
There is no member CPlayer::pos or SqPlayer::pos.
Title: Re: Custom Sound Problem~
Post by: PunkNoodle on Jun 23, 2017, 12:03 PM
Quote from: EK.IceFlake on Jun 23, 2017, 09:36 AM
Quote from: Zeyad Ahmed on Jun 23, 2017, 08:20 AMWell add the audio file and rename it s<id>_<name> as that id must be more than or = 50000 , but dont make 2 files with the same ID
as example
s50000_headshot.wav
and then you can use it in Sound Functions
and a  example for playing a sound at a certain position
PlaySound( 1, 50000, Player.pos);you can see another functions from here (http://wiki.vc-mp.org/index.php?search=sound&title=Special%3ASearch&go=Go)
There is no member CPlayer::pos or SqPlayer::pos.
You could have been more explicit, I'm sure he won't understand what you are trying to tell him.

@Zeyad it's not "pos" but "Pos" all the functions in VC:MP are capitalised.

Therefore:
PlaySound( 1, 50000, player.Pos);
Title: Re: Custom Sound Problem~
Post by: kennedyarz on Jun 23, 2017, 01:39 PM
Quote from: EK.IceFlake on Jun 23, 2017, 09:36 AM
Quote from: Zeyad Ahmed on Jun 23, 2017, 08:20 AMWell add the audio file and rename it s<id>_<name> as that id must be more than or = 50000 , but dont make 2 files with the same ID
as example
s50000_headshot.wav
and then you can use it in Sound Functions
and a  example for playing a sound at a certain position
PlaySound( 1, 50000, Player.pos);you can see another functions from here (http://wiki.vc-mp.org/index.php?search=sound&title=Special%3ASearch&go=Go)
There is no member CPlayer::pos or SqPlayer::pos.

You have an obsecion with SLC's plugin
Title: Re: Custom Sound Problem~
Post by: EK.IceFlake on Jun 23, 2017, 02:40 PM
Quote from: kennedyarz on Jun 23, 2017, 01:39 PM
Quote from: EK.IceFlake on Jun 23, 2017, 09:36 AM
Quote from: Zeyad Ahmed on Jun 23, 2017, 08:20 AMWell add the audio file and rename it s<id>_<name> as that id must be more than or = 50000 , but dont make 2 files with the same ID
as example
s50000_headshot.wav
and then you can use it in Sound Functions
and a  example for playing a sound at a certain position
PlaySound( 1, 50000, Player.pos);you can see another functions from here (http://wiki.vc-mp.org/index.php?search=sound&title=Special%3ASearch&go=Go)
There is no member CPlayer::pos or SqPlayer::pos.

You have an obsecion with SLC's plugin
Try using it once ;)
Title: Re: Custom Sound Problem~
Post by: DizzasTeR on Jun 23, 2017, 03:46 PM
Quote from: kennedyarz on Jun 23, 2017, 01:39 PMYou have an obsecion with SLC's plugin

Indeed we do, because you can't.