08.04.2015, 00:37
i still have problems with detecing player objects being shot, even in R12-2.
Tried with the code you posted in streamer plugin thread also.
Additional info: Server version: 0.3z R4, debian 6 x32, YSF built on Built on: Apr 7 2015 at 00:50:48.
Tried with the code you posted in streamer plugin thread also.
Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) { if(IsPlayerConnected(playerid)) { if(hittype == BULLET_HIT_TYPE_PLAYER_OBJECT) { print("Detected Player Object"); new streamerid = Streamer_GetItemStreamerID(playerid, STREAMER_TYPE_OBJECT, hitid); if(IsValidDynamicObject(streamerid)) { CallLocalFunction("OnPlayerShootDynamicObject", "dddfff", playerid, weaponid, streamerid, fX, fY, fZ); } } } return 1; }