O veiculo й dinamico...
Sabe algum lugar que eu posso ver se veiculos dinamicos aceitam OnPlayerWeaponShot
Ou de testar isso?
Baseado no que vocк me passou tentei fazer o meu, mas continua o mesmo problema de nem tirar lataria:
PHP код:
if(hittype == BULLET_HIT_TYPE_VEHICLE)
{
GetDynamicVehicleHealth(hitid, VehicleInfo[hitid][vHealth]);
switch(weaponid)
{
case 24: (VehicleInfo[hitid][vHealth] -= DEAGLE_VEHDAMAGE);
case 25: (VehicleInfo[hitid][vHealth] -= SHOTGUN_VEHDAMAGE);
case 27: (VehicleInfo[hitid][vHealth] -= COMBATSHOTGUN_VEHDAMAGE);
case 29: (VehicleInfo[hitid][vHealth] -= MP5_VEHDAMAGE);
case 30: (VehicleInfo[hitid][vHealth] -= AK47_VEHDAMAGE);
case 31: (VehicleInfo[hitid][vHealth] -= M4_VEHDAMAGE);
case 33: (VehicleInfo[hitid][vHealth] -= RIFLE_VEHDAMAGE);
case 34: (VehicleInfo[hitid][vHealth] -= SNIPER_VEHDAMAGE);
case 38: (VehicleInfo[hitid][vHealth] -= MINIGUN_VEHDAMAGE);
}
if(VehicleInfo[hitid][vHealth] < 452) { VehicleInfo[hitid][vHealth] = 452; }
SetDynamicVehicleHealth(hitid, VehicleInfo[hitid][vHealth]);
}