When bullet collides with custom object then OnPlayerWeaponShot isn't called. Is there any fix or workaround?
Hmm, i never knew that. Well you can use ColAndreas i guess.
It works fine for me. Maybe you have a mistake in your code. Try this:
Code:
public OnPlayerWeaponShot(playerid,weaponid,hittype,hitid,Float:fX,Float:fY,Float:fZ)
{
printf("playerid=%d,weaponid=%d,hittype=%d,hitid=%d,Float:fX=%f,Float:fY=%f,Float:fZ=%f",playerid,weaponid,hittype,hitid,fX,fY,fZ);
return 1;
}
For me it won't be called when hitting custom object.