drive by Killerid detection - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: drive by Killerid detection (
/showthread.php?tid=540125)
drive by Killerid detection -
PawnoQ - 02.10.2014
hi,
how can i detect drive byers?
If i drive by as a driver and other vehicles explode due to my shots it will bring an invalid killerid (killed by explosion).
How can i avoid that and do it like i detect the drive byer?
I tried with the Callback OnPlayerWeaponShot but this callback does not work if the driver byer is the driver.
Please help.
Re: drive by Killerid detection -
Eth - 02.10.2014
:P
check this out
https://sampforum.blast.hk/showthread.php?tid=497553
Re: drive by Killerid detection -
PawnoQ - 02.10.2014
thx but i dont think this will help me much.
This callback doesnt support vehicles.
If 2 players sit in vehicles and theyre drive bying each other no player is hurt or takes damage.
thats my problem.
And its nonsense to check in the callback on player death if a players stage is passenger as when a player dies his state is gonna be wasted and not passenger anymore even if he is still sitting in a vehicle dead.
Any other ideas?
thanks