14.04.2019, 17:39
hi guyz , i have this callback :
and this is my object OnGameModeInit :
but the OnPlayerShootDynamicObject will not called when i shoot the object ! whats the problem!
Code:
public OnPlayerShootDynamicObject(playerid, weaponid, objectid, Float:x,Float:y,Float:z) { for(new i = 0; i < 20 ; i++) { if(IsValidDynamicObject(RobberyCamera[i]) && objectid == RobberyCamera[i]) { SendClientMessage(playerid,COLOR_GREY,"Object Removed"); DestroyDynamicObject(RobberyCamera[i]); } } return 1; }
Code:
new RobberyCamera[20]; RobberyCamera[0] = CreateDynamicObject(2921, 1028.75061, -945.85205, 47.29134, 0.00000, 0.00000, 140.93999);