VehicleShot - 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: VehicleShot (
/showthread.php?tid=618012)
VehicleShot -
StR_MaRy - 29.09.2016
hey guys how can i do when a player is in "IsAFarmerCar" if i shot that vehicle that player who is in the car getting a message like "Name attacked your work vehicle, use /panel to report him"
some idea's ?
Re: VehicleShot -
J0sh... - 29.09.2016
Quote:
Originally Posted by StR_MaRy
hey guys how can i do when a player is in "IsAFarmerCar" if i shot that vehicle that player who is in the car getting a message like "Name attacked your work vehicle, use /panel to report him"
some idea's ?
|
OnPlayerWeaponShot -> hitid = vehicle id
loop
get owner of vehicle
send message
Re: VehicleShot -
SickAttack - 29.09.2016
You could use the math plugin to get a vehicle's driver:
https://sampforum.blast.hk/showthread.php?tid=270508