OnPlayerShootDynamicObject not called
#1

hi guyz , i have this callback :
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;
}
and this is my object OnGameModeInit :
Code:
new RobberyCamera[20]; 
RobberyCamera[0] = CreateDynamicObject(2921, 1028.75061, -945.85205, 47.29134,   0.00000, 0.00000, 140.93999);
but the OnPlayerShootDynamicObject will not called when i shoot the object ! whats the problem!
Reply


Messages In This Thread
OnPlayerShootDynamicObject not called - by PoniStar - 14.04.2019, 17:39
Re: OnPlayerShootDynamicObject not called - by PoniStar - 14.04.2019, 18:46
Re: OnPlayerShootDynamicObject not called - by NaS - 14.04.2019, 19:38
Re: OnPlayerShootDynamicObject not called - by PoniStar - 16.04.2019, 13:32
Re: OnPlayerShootDynamicObject not called - by PoniStar - 16.04.2019, 17:10
Re: OnPlayerShootDynamicObject not called - by PoniStar - 17.04.2019, 14:52
Re: OnPlayerShootDynamicObject not called - by FireBoy89 - 17.04.2019, 15:23
Re: OnPlayerShootDynamicObject not called - by PoniStar - 17.04.2019, 16:22

Forum Jump:


Users browsing this thread: 1 Guest(s)