how to detect if a player shot a specific object
#1

i would like to know if there is any way to detect if a player is shooting a specific object or attached object !
Reply
#2

put Healt to the object and put in a pawn code if there will shoot on that obeject then it says (there is shootin on that object)
Reply
#3

Quote:
Originally Posted by Hurdehack
View Post
put Healt to the object and put in a pawn code if there will shoot on that obeject then it says (there is shootin on that object)
You clearly have no idea what you're talking about.

This isn't really possible with SA:MP. You'd have to access the collision callback or however it works
Reply
#4

amm so that's not possible ! i wanted to create a head shot system by attaching objects to players head and if they're shotted thy die
Reply
#5

There's a headshot script somewhere. Use the search function.
Reply
#6

It's possible. I've remade NPC health loss with a algorithm for this, though yeah, I'd advise you look at RyDeR`'s Un-occupied vehicle shooting script (shooting the petrol caps), it'll have all the necessary functions for this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)