I'm having issue that the
streamer objects do not call OnPlayerWeaponShot when shooting
streamer objects. I do not have any mapped objects using CreateObject to test against, but I sure know that it works against players, vehicles and world.
PHP код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) {
SendFormattedClientMessage(playerid,0xFFFFFFFF,"%i, %i, %i, %f, %f, %f",weaponid, hittype, hitid, fX, fY, fZ);
return 1;
}
That message is not sent to client.
And if you wonder what is SendFormattedClientMessage, it is this:
PHP код:
#define SendFormattedClientMessage(%1,%2,%3,%4) format(FXF_str,sizeof(FXF_str),%3,%4); SendClientMessage(%1,%2,FXF_str)
Edit:
After some testing I noticed that shots aren't being detected on player objects created with CreatePlayerObject. (0.3z R3-3 Windows Server)
Edit Edit:
After even more testing I found out that YSF R12 is preventing bullets from being detected.
I'll do more testing to see if I can avoid this.
Final Edit:
If you're using YSF R12, It won't detect player objects being hit with weapons.