Hello. I have created a system of neon on transport. How do I do that would be after the destruction of cars, neon disappeared with her?
PHP код:
GivePlayerMoney(playerid,-5000);
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "front", CreateObject(18646,0,0,0,0,0,0));
SetPVarInt(playerid, "front1", CreateObject(18646,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "front"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0);
AttachObjectToVehicle(GetPVarInt(playerid, "front1"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Вы установили неон спереди,*Вы заплатили 5000$");//You set the neon in the front, * You pay $ 5000 *
try to onVehicleDeath add lines which destroy neons (smth like DeleteObjectToVehicle..... look in samp.wiki)