Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Nihongo^ on Nov 28, 2016, 01:34 PM

Title: Voice in server Like ec server have
Post by: Nihongo^ on Nov 28, 2016, 01:34 PM
how can i run Voice function in server  LIKE EC have,  if someone pop your head it said "HEADSHOT"
Title: Re: Voice in server Like ec server have
Post by: . on Nov 28, 2016, 01:39 PM
PlaySound(...) ?


https://bitbucket.org/vcmpdev/0.4-squirrel/src/40a71b2c56123f580f24392e9a83eaeb3ed9e14f/Functions.cpp?at=newapi&fileviewer=file-view-default#Functions.cpp-99
Title: Re: Voice in server Like ec server have
Post by: Nihongo^ on Nov 28, 2016, 02:15 PM
yes but how does it works ?
Title: Re: Voice in server Like ec server have
Post by: . on Nov 28, 2016, 02:18 PM
Quote from: Nihongo^ on Nov 28, 2016, 02:15 PMyes but how does it works ?

How do you expect it to work?
Title: Re: Voice in server Like ec server have
Post by: Nihongo^ on Nov 28, 2016, 02:21 PM
i mean i want an example like if someone pop your head it said headshot like this ?
Title: Re: Voice in server Like ec server have
Post by: . on Nov 28, 2016, 02:24 PM
Quote from: Nihongo^ on Nov 28, 2016, 02:21 PMi mean i want an example like if someone pop your head it said headshot like this ?

Seriously dude? You can't even come up with that?

function onPlayerKill(killer, player, reason, body_part)
{
    if (body_part == BODYPART_HEAD)
    {
        PlayTheDamnSound(...);
    }
}
Title: Re: Voice in server Like ec server have
Post by: Nihongo^ on Nov 28, 2016, 02:31 PM
bro i dont have any idea about PlayTheDamnSound(...); Code -.- 
Title: Re: Voice in server Like ec server have
Post by: Mötley on Nov 28, 2016, 02:43 PM
xD sorry, That's really funny PlayTheDamnSound()..
Title: Re: Voice in server Like ec server have
Post by: Nihongo^ on Nov 28, 2016, 02:45 PM
Quote from: . on Nov 28, 2016, 02:24 PM
Quote from: Nihongo^ on Nov 28, 2016, 02:21 PMi mean i want an example like if someone pop your head it said headshot like this ?

Seriously dude? You can't even come up with that?

function onPlayerKill(killer, player, reason, body_part)
{
    if (body_part == BODYPART_HEAD)
    {
        PlayTheDamnSound(...);
    }
}
there's no Fucntion call PLAY THE DAMN SOUND btw that's what i want

https://forum.vc-mp.org/?topic=2329.msg17207#msg17207

Solved
Title: Re: Voice in server Like ec server have
Post by: . on Nov 28, 2016, 03:28 PM
That function was always there :-\ https://bitbucket.org/vcmpdev/0.4-squirrel/src/40a71b2c56123f580f24392e9a83eaeb3ed9e14f/Functions.cpp?at=newapi&fileviewer=file-view-default#Functions.cpp-99

Was added last year as an Aprils fool joke but stayed there.