Clear Neon after the destruction of car
#1

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​​?
Here is the installation code of neon:
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 * 
Help to do this?
Reply
#2

Nobody knows?
Reply
#3

try to onVehicleDeath add lines which destroy neons (smth like DeleteObjectToVehicle..... look in samp.wiki)
Reply


Forum Jump:


Users browsing this thread: