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.01.5, -0.62.02.03.0);
AttachObjectToVehicle(GetPVarInt(playerid"front1"), GetPlayerVehicleID(playerid), -0.01.5, -0.62.02.03.0);
PlayerPlaySound(playerid11330.00.010.0);
SendClientMessage(playerid0xFFFFFFAA"Вы установили неон спереди,*Вы заплатили 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: 2 Guest(s)