Detect Player With Weapon
#1

I know it's possible, but I need help coding how to detect if someone has just shot you.. not killed, but just shot

So If Player ID 5 just shot Player ID 3, how would you detect that... and just for example do a printf of it ?

Help will be much appreciated,


Kaleem
Reply
#2

It's imposible to do it. Even if someone would say that it's posible, their's script would be very buggy.
Reply
#3

Try to check which health it takes with each weapon.
I might try to do this too, it's not impossible !
Reply
#4

Quote:
Originally Posted by RaFsTar[PT
]
Try to check which health it takes with each weapon.
I might try to do this too, it's not impossible !
Sorry but imposible. : ) For example you can't get victim id if shooter is aiming with Sawn-off Shotgun. Because when shooter is aiming, his facing angle isn't changing, only his hands are moving. So you can shoot player if he even isn't in front of you.
Reply
#5

It might be possible, but it should be hard. You would need to get the damage of every weapon and controlling the current weapon of the shooting player.
Reply
#6

Quote:
Originally Posted by DeathOnaStick
It might be possible, but it should be hard. You would need to get the damage of every weapon and controlling the current weapon of the shooting player.
Yep that's my point of view !
Reply
#7

Quote:
Originally Posted by DeathOnaStick
It might be possible, but it should be hard. You would need to get the damage of every weapon and controlling the current weapon of the shooting player.
Did you know that damage isn't the same all the time? For example, sometimes you need only 2 shoots with deagle to kill player ( usually 3 ) or... Can I ask you, how could you get damage if killer shoots with hydra?

As I said it's imposible. We should better wait for next samp version, maybe there will be OnPlayerDamage callback... :}
Reply
#8

Quote:
Originally Posted by Blantas ;P*~
Quote:
Originally Posted by DeathOnaStick
It might be possible, but it should be hard. You would need to get the damage of every weapon and controlling the current weapon of the shooting player.
Did you know that damage isn't the same all the time? For example, sometimes you need only 2 shoots with deagle to kill player ( usually 3 ) or... Can I ask you, how could you get damage if killer shoots with hydra?

As I said it's imposible. We should better wait for next samp version, maybe there will be OnPlayerDamage callback... :}
Nothing is impossible !!
Reply
#9

Quote:
Originally Posted by Blantas ;P*~
Quote:
Originally Posted by DeathOnaStick
It might be possible, but it should be hard. You would need to get the damage of every weapon and controlling the current weapon of the shooting player.
Did you know that damage isn't the same all the time? For example, sometimes you need only 2 shoots with deagle to kill player ( usually 3 ) or... Can I ask you, how could you get damage if killer shoots with hydra?

As I said it's imposible. We should better wait for next samp version, maybe there will be OnPlayerDamage callback... :}
This depends from how you hit the player, e.g. with a shotgun, if you have more than one bullet. Nothing else.

Cheers.
Reply
#10

Quote:
Originally Posted by RaFsTar[PT
]
Quote:
Originally Posted by Blantas ;P*~
Quote:
Originally Posted by DeathOnaStick
It might be possible, but it should be hard. You would need to get the damage of every weapon and controlling the current weapon of the shooting player.
Did you know that damage isn't the same all the time? For example, sometimes you need only 2 shoots with deagle to kill player ( usually 3 ) or... Can I ask you, how could you get damage if killer shoots with hydra?

As I said it's imposible. We should better wait for next samp version, maybe there will be OnPlayerDamage callback... :}
Nothing is impossible !!
It seems you are very optimistic. Goodluck making an impossible script.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)