Hi, i am trying to get the actor handle of the player who is shooting at my car
Here is what i tried but it doesn't work and it wouldn't be very efficient either.
I found this: http://ugbase.eu/index.php?threads/releas-who-shoots-cs.2319/ but it can only detect the player shooting at me not at my car, is there any way to do this? I also want to be able to detect if someone pops my tires.
Here is what i tried but it doesn't work and it wouldn't be very efficient either.
Code:
FOR 12@ = 0 to 999
IF
SAMP.IsPlayerConnected(12@)
THEN
IF 13@ = SAMP.GetActorHandleByPlayerID(12@)
THEN
if
051C: has_car_been_damaged_by_char 0@ char 13@
then
15@ = samp.GetPlayerNickname(12@)
chatmsg "%s" -1 15@
end
end
end
end
I found this: http://ugbase.eu/index.php?threads/releas-who-shoots-cs.2319/ but it can only detect the player shooting at me not at my car, is there any way to do this? I also want to be able to detect if someone pops my tires.