23.01.2014, 16:45
OnPlayerWeaponShot doesn't get called when the driver of a vehicle fires a weapon, but does get called by a passenger drive-by. Can this be fixed?
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
SendClientMessage(playerid, -1, "OnPlayerWeaponShot has been called");
return 1;
}
The guns on vehicles (seasparrow/hunter guns) work (they call OnPlayerWeaponShot). The reason is WEAPON_M4 IIRC.
|
I have just made a very brief test with OnPlayerWeaponShot. I just created a filterscript with this simple code:
pawn Код:
I have just tested it and armed vehicles (like Rustler, RC Baron, Hydra, Hunter...) do NOT call OnPlayerWeaponShot, just like they don't (at least in previous versions) call OnPlayerGiveDamage. Ohh come on Kalcor, please fix both of these ![]() |
I only tested the seasparrow and hunter, and know it worked. Perhaps you made a mistake, or RC3 changed it. I doubt that though.
|