how can i run Voice function in server LIKE EC have, if someone pop your head it said "HEADSHOT"
PlaySound(...) ?
https://bitbucket.org/vcmpdev/0.4-squirrel/src/40a71b2c56123f580f24392e9a83eaeb3ed9e14f/Functions.cpp?at=newapi&fileviewer=file-view-default#Functions.cpp-99
yes but how does it works ?
Quote from: Nihongo^ on Nov 28, 2016, 02:15 PMyes but how does it works ?
How do you expect it to work?
i mean i want an example like if someone pop your head it said headshot like this ?
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(...);
}
}
bro i dont have any idea about PlayTheDamnSound(...); Code -.-
xD sorry, That's really funny PlayTheDamnSound()..
Quote from: . on Nov 28, 2016, 02:24 PMQuote 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
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.