22.07.2015, 11:47
Hello, how can I protect object before the shoot?
And next question. It's only work for CreateObject or CreateDynamicObject too?
Код:
new myobject = CreateObject(... public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) { if(hittype == BULLET_HIT_TYPE_OBJECT) { if(hitid == myobject) { return 0; // Protect? } } return 1; }