SA-MP Forums Archive
Clear Neon after the destruction of car - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Clear Neon after the destruction of car (/showthread.php?tid=246162)



Clear Neon after the destruction of car - -=Dark=- - 03.04.2011

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?


Re: Clear Neon after the destruction of car - -=Dark=- - 03.04.2011

Nobody knows?


Re: Clear Neon after the destruction of car - marrcko - 03.04.2011

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