Headshot!
#1

Hey
I'm wondering if there is any way to detect where the player aims or if the player is aiming at another players head?
Because i want that if you shoot someone in head, they will die.
And also when the shot is fired i want a gametext that shows "Headshot!" (I can add that by myself if you tell me where).
And if its possible, it would play a default sound i have in my computer. (Headshot voice from CS lol)
Reply
#2

i dont know how to do it but its impossible to add sounds from ur own pc
________
Dating Advice Advice
Reply
#3

Quote:
Originally Posted by [AC
Etch ]
i dont know how to do it but its impossible to add sounds from ur own pc
Well, Is there any way to detect where the player aims or if the player is aiming at another players head?
Because i want that if you shoot someone in head, they will die.
Reply
#4

Quote:
Originally Posted by [NWA
Hannes ]
Quote:
Originally Posted by [AC
Etch ]
i dont know how to do it but its impossible to add sounds from ur own pc
Well, Is there any way to detect where the player aims or if the player is aiming at another players head?
Because i want that if you shoot someone in head, they will die.
i am joining ur question too , it will be cool if u can do that
________
UGGS
Reply
#5

Quote:
Originally Posted by [NWA
Hannes ]
Hey
I'm wondering if there is any way to detect where the player aims or if the player is aiming at another players head?
Because i want that if you shoot someone in head, they will die.
And also when the shot is fired i want a gametext that shows "Headshot!" (I can add that by myself if you tell me where).
And if its possible, it would play a default sound i have in my computer. (Headshot voice from CS lol)
There's no way to detect where the player is really aiming in the current version of SA-MP. However you can speculate if he is aiming someone and maybe do a random Headshot instant kill.
Reply
#6

Quote:
Originally Posted by wafffllesss
There's no way to detect where the player is really aiming in the current version of SA-MP. However you can speculate if he is aiming someone and maybe do a random Headshot instant kill.
How would you do that?
By the way i still really want a function to get where the player is aiming on another player or if player is aiming at another players head.
Reply
#7

Quote:
Originally Posted by [NWA
Hannes ]
Quote:
Originally Posted by wafffllesss
There's no way to detect where the player is really aiming in the current version of SA-MP. However you can speculate if he is aiming someone and maybe do a random Headshot instant kill.
How would you do that?
First you will need to know where the player is aiming, then compare their Z coords, detect if he shoot and BANG butttt... there's a major problem doing that. if someone is in the line of fire. lets say: your target is in top of a building, someone is in your way to the target, but you aim the target. you shoot, your friend in your front die. Capisco?

Everyone in the way of you and your target are going to die, even if you don't shoot them.
Reply
#8

Quote:
Originally Posted by wafffllesss
Quote:
Originally Posted by [NWA
Hannes ]
Quote:
Originally Posted by wafffllesss
There's no way to detect where the player is really aiming in the current version of SA-MP. However you can speculate if he is aiming someone and maybe do a random Headshot instant kill.
How would you do that?
First you will need to know where the player is aiming, then compare their Z coords, detect if he shoot and BANG butttt... there's a major problem doing that. if someone is in the line of fire. lets say: your target is in top of a building, someone is in your way to the target, but you aim the target. you shoot, your friend in your front die. Capisco?

Everyone in the way of you and your target are going to die, even if you don't shoot them.
Mwahahaha rail gun
Btw can you give me code for it?
Reply
#9

Quote:
Originally Posted by [NWA
Hannes ]
Quote:
Originally Posted by wafffllesss
Quote:
Originally Posted by [NWA
Hannes ]
Quote:
Originally Posted by wafffllesss
There's no way to detect where the player is really aiming in the current version of SA-MP. However you can speculate if he is aiming someone and maybe do a random Headshot instant kill.
How would you do that?
First you will need to know where the player is aiming, then compare their Z coords, detect if he shoot and BANG butttt... there's a major problem doing that. if someone is in the line of fire. lets say: your target is in top of a building, someone is in your way to the target, but you aim the target. you shoot, your friend in your front die. Capisco?

Everyone in the way of you and your target are going to die, even if you don't shoot them.
Mwahahaha rail gun
Btw can you give me code for it?
look at my Killable NPC's FS, there is a system there working for NPC's. just edit for what you need.
Reply
#10

Quote:
Originally Posted by [AC
Etch ]
i dont know how to do it but its impossible to add sounds from ur own pc
it is possible: http://forum.sa-mp.com/index.php?topic=106960.0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)